Monday, June 09, 2008

Knoppix 5.3.1, HDD-installed, USB stick workaround

Knoppix 5.3.1 is one of the coolest Linux distributions around as a live CD. Some folks say you should keep it that way: don't install it to your hard disk drive as a bootable OS. I'll leave that question up to you, but I have found a workaround for two likely problems that could occur if one were to HDD install. The problems can occur due to how Knoppix handles permissions for USB drives and the sound system.

As a live CD, Knoppix gives permissions to the user named "knoppix." If you HDD install Knoppix, these permissions are still given to the user named "knoppix". This causes a problem because most people are not going to log in with a userid of "knoppix". If you have problems with a USB stick or audio in Knoppix, look to see if the permissions file is not set up properly.

The problem is that this bug had been around since at least Knoppix 5.0.

Here's the fix:

Edit the file /etc/udev/knoppix.rules.
(You might try sudo gedit /etc/udev/knoppix.rules )

For the items which say "knoppix" in the original file, change them to $USER.

ACTION=="add",SUBSYSTEM=="block",KERNEL=="[sh]d*" RUN+="/bin/sh -c '/usr/sbin/rebuildfstab -u knoppix -g knoppix -i &'" ACTION=="remove",SUBSYSTEM=="block", RUN+="/bin/sh -c '/usr/sbin/rebuildfstab -r -u knoppix -g knoppix -i &'"

change it to:

ACTION=="add",SUBSYSTEM=="block",KERNEL=="[sh]d*" RUN+="/bin/sh -c '/usr/sbin/rebuildfstab -u $USER -g $USER -i &'" ACTION=="remove",SUBSYSTEM=="block", RUN+="/bin/sh -c '/usr/sbin/rebuildfstab -r -u $USER -g $USER -i &'"


No comments: