Ubuntu Vista

ubuntu_vista.jpg
Mi sa tanto di fake, ma è divertente…

My father heard about Vista coming on the news. Since he was interested in getting it, he asked me to obtain it and install it on his computer and he would give some cash in return. I told him I was going to do that, but instead I burned an Ubuntu CD and installed it.

Later, when he came home from work, I showed him his new “Vista” install, complete with the latest Office and Solitaire.

Well, it’s been a few days since that and now he says Bill Gates is better than Steve Jobs and brags about how OS X on my iMac is obsolete compared to Vista on his PC.

I will continue with the prank for some weeks, after which I’ll tell him the truth and give him back his money.

[Degredo.net]

OpenDNS e dhclient

opendns_logo_300.gif

Alcuni giorni or sono, Andrea scriveva di quanto sono buoni e belli i server di OpenDNS, invitando a passarvi le proprie macchine. Gli indirizzi dei server DNS di OpenDNS sono:

  • 208.67.222.222
  • 208.67.220.220

Se avete un ip statico, nessun problema, basta indicare il tutto nel file resolv.conf:

nameserver 208.67.222.222
nameserver 208.67.220.220

Se utilizzate dhclient, invece, il discorso si complica dato che il file che contiene la lista dei dns da utilizzare per la risoluzione dei nomi da parte del sistema, ovvero resolv.conf, viene rigenerato a ogni acquisizione di un nuovo lease (semplificando, ogni volta che ottenere un indirizzo dinamico), utilizzando le informazioni inviate dal server dhcp.

Questo comportamento è governato dal file dhclient.conf, tramite il quale è possibile intervenire sul meccanismo di acquisizione dei dns, imponendo una scelta predeterminata. Si osservi il seguente blocco di istruzioni contenuto in dhclient.conf:

request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, host-name,
netbios-name-servers, netbios-scope;

E’ fra le opzioni del file di configurazione di dhclient che si nasconde la chiave per risolvere il problema. Basterà eliminare l’istruzione che forza la richiesta dell’elenco dei server DNS, rimuovendo domain.name-servers, preponendo nel contempo alle informazioni fornite dal server dhcpd la nostra lista di server DNS:


prepend domain-name-servers 208.67.222.222, 208.67.220.220;

request subnet-mask, broadcast-address, time-offset, routers,
domain-name, host-name,
netbios-name-servers, netbios-scope;

In pratica, l’istruzione domain-name-servers è stata spostata al di fuori del blocco di richieste effettuate al server dhcp ed è stata istanziata con dei valori predefiniti dall’utente.

Qual’è l’effetto finale?

Semplicemente, il file resolv.conf verrà rigenerato a ogni riacquisizione di lease, utilizzando gli indirizzi dei server OpenDNS indicati dalla direttiva prepend domain-name-server in dhclient.conf.

Upstart in Ubuntu 6.10, codenamed Edgy Eft.

Giusto per capire la differenza fra init e il nuovo Upstart in Edgy:

A dependency-based init daemon would start networking because it’s a dependency of the Apache goal, and would mount the filesystems because they are a dependency of both the Apache and gdm goals. If either gdm or Apache fail to start, this means that networking won’t be available unless it itself is a goal.

An event-based init daemon works the other way around; it starts off with a single event such as “startup” and everything else will be run by that or subsequent events. An event-based init daemon has no need for goals or runlevels, the system will boot as far as it can get with the available hardware; for a distribution, this means that the default installation can be far more flexible.

Networking will always be started if networking hardware is available, assuming the default configuration is for DHCP to be attempted. As with the dependency-based system, if no hardware is connected at boot time, Apache still won’t start. However, with an event-based system, if the network card is plugged in a few minutes later, once it’s been retrieved from the back of the sofa, Apache would be started automatically.

[Via linux.com]

XGL + Compiz + KDE + Ubuntu, il video

Qualcuno, tempo fa, mi chiedeva un video che dimostrasse le capacità di XGL + Compiz. Eccolo. L’ambiente è KDE, qualche effetto qua e la, registrato con recordmydesktop. La qualità non è eccelsa, forse qualche framedrop di troppo, ma non vado troppo d’accordo con queste diavolerie grafiche. Da notare il filmato relativo a una serie di partite di Re-Volt, fatto “girare” con VLC.