18/02/2008

Send your hostname over DHCP

A micro-howto on how to make your network admin's life easier and send your hostname via DHCP - so that it shows up in your router's connected devices monitor.

sudo vi /etc/dhclient.conf

and add the following lines:

send host-name "<your hostname>";
send dhcp-client-identifier <your MAC address>;


hint.... HINT... HINT ;-)

Edit: In Ubuntu (and possibly also other Debian-based systems) the file to modify is not /etc/dhclient.conf but rather /etc/dhcp3/dhclient.conf .

03/02/2008

Fusion icon and direct rendering

Compiz is working on both Xanthippe and Tisiphone for a change. The ATI 8.45 driver install on Xanthippe worked similarly to the 8.43 one, bless them, and is at least no worse than its predecessors (video still not working on top of compiz).
For compiz startup, one might use compiz-manager, which is an executable shell script in /usr/bin and can be installed via YaST. After some preliminary tests it starts compiz and fusion-icon, if the latter is present. Alternatively, just start fusion-icon with preselected compiz, this saves you one not entirely necessary compiz restart.
Apparently the newer nVidia drivers have problems with the libgl-indirect rendering, starting compiz in a shell without the "--no-libgl-fallback" option on Tisiphone results in a "No GLXFBConfig for default depth" error, and neither window borders nor keyboard input in X (here fusion-icon is invaluable to restart kwin). As fusion-icon doesn't seem to pass any options per default, it fails reloading compiz properly. So, one has to pass on all necessary compiz option to fusion icon and/or compiz-manager.

Modify (as root) /usr/bin/compiz-manager, add whatever options you deem necessary:
...
COMPIZ_OPTIONS="--no-libgl-fallback --ignore-desktop-hints --replace"
...

Do the same for /usr/lib(64)/python/site-packages/FusionIcon/data.py:
...
compiz_args = ['--replace', '--ignore-desktop-hints', '--no-libgl-fallback']
...

For all lazybones out there - link compiz-manager in the Autostart folder:
$ cd ~/.kde/Autostart
$ ln -s /usr/bin/compiz-manager
or ln -s /usr/bin/fusion-icon

However, Xanthippe ist still behaving a bit weirdly: no Python tweaking whatever can induce her to start compiz properly with fusion-icon, whilst compiz-manager works perfectly. I wonder whether I really want to tackle that one...