To do this, type /set irc_conf_mode 1

To re-enable join/part messages do /set irc_conf_mode 0

The setting is automagically remembered by XChat

Windows 7 autologin

Short and simple: to allow automatically logging in on Windows 7, you need to press Win+R to open the run menu, then type “control userpasswords2″ without the quotes and run it.

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>

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.

Continue Reading »

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 me:

ERRFILE=$HOME/.xsession-errors-$(hostname -s)
rm -f "$ERRFILE"

This makes a separate .xsession-errors for each of my machines and also removes the file each time X is started so it doesn’t grow too big. If X itself crashes, the errors to to /var/log/messages anyway, so there’s no need to save the .xsession-errors for this.

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 0xa4.b=0

# wake on lan
setpci -d 8086:27b9 0xa4.b=0
ethtool -s eth1 wol g

Don’t ask me what they mean. I have no idea.

Note: this requires ethtool to be installed

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 threshold. Simply put, what these do is that whenever the mouse is moving faster than the threshold, it gets accelerated by the acceleration value, and otherwise it’s unaccelerated.

While this may work for some people, I found it horribly annoying. Before anyone jumps up and bites me, I do know that I can set the threshold to 0 and get some sort of normal acceleration, but I hate that one too. Luckily, Simon Thum has come up with a solution. Continue Reading »

A quick reference on how to compile Debian packages from source, and possibly patching them along the way. Continue Reading »

Enlightened XFCE4

A howto stolen from http://ubuntuforums.org/showthread.php?t=101066 for later use. All credit to its writer, Iandefor. Continue Reading »

The ultimate .bat-file for completely resetting and fixing all sorts of stupid Windows Update errors Continue Reading »