Category Archives: Linux

Stuff about the superior OS

XFCE: Unable to perform shutdown

To fix this issue, add the following lines between <config …..> and </config> in /etc/PolicyKit/PolicyKit.conf <match action=”org.freedesktop.hal.storage.mount-removable”> <return result=”yes”/> </match> <match action=”org.freedesktop.hal.power-management.shutdown”> <return result=”yes”/> </match> <match action=”org.freedesktop.hal.power-management.reboot”> <return result=”yes”/> </match>

Resizing an ext3 filesystem on an lvm

Just a short reference: Keep in mind: There is no longer a need to convert the filesystem to ext2 to resize it. resize2fs can handle ext3 just fine. First, unmount the filesystem in question, unless you have and trust online resizing (I can’t subscribe to either). Then check it for errors like this: # e2fsck […]

Moving or removing ~/.xsession-errors

The location of ~/.xsession-errors is, at the time of writing, specified in /etc/X11/Xsession in Debian Squeeze (testing). ERRFILE=$HOME/.xsession-errors To disable logging, change this to ERRFILE=/dev/null I use several computers with the same, networked, home directory, and having all of them output to the same file was a hopeless mess. However, this solved the problem for […]

Wake on Lan on an Intel Mac Mini with Linux

Both Wake on Lan and turning on after a power loss can be enabled on the Intel Mac Mini with the use of the setpci command. I stuffed this into my /etc/rc.local (to run them at boot time. yes, they need to be run on each boot) # reboot on power loss setpci -s 0:1f.0 […]

Improve the mouse response and acceleration in Debian

Note: This information is now slightly outdated, as the patch is already in Debian Squeeze. One of my biggest issues with moving from Windows to Linux as my desktop is how the mouse is handled in xorg. In xorg, the mouse had (and still has, in Debian Lenny) two settings for mouse speed: acceleration and […]

How to kill a process that uses too much CPU

Cleaning up my ‘dump’ directory, I found this aging script I got from somewhere, which will check the current CPU usage of a program and kill it if it uses too much. This is useful if you are for some reason forced to run buggy, closed source software which get stuck in endless loops when […]