Thursday, October 29th, 2009
I have moved to Debian as my primary distro and using squeeze (currently labelled testing, but soon to be stable) on my laptop. Unfortunely my laptop has a nvidia graphics card, and it pains me to have to enable the non-free repositories. Virtual Richard Stallman (vrms) got pissed.
On laptops, there usually is a Fn button [...]
Wednesday, October 28th, 2009
To disbale the PC speaker, just blacklist the module pcspkr
echo “blacklist pcspkr” >> /etc/modprobe.d/blacklist.conf
rmmod pcpskr
Thursday, September 3rd, 2009
I have a Dell Latitude D620 and a D-Port replicator and had never succeeded in getting the sound jack on the dock to work. I found a solution on Ubuntu forums: http://ubuntuforums.org/showthread.php?t=80193
Its quite simple. You just have to enable IEC958
Open Volume control
If you dont see the “Switches” tab:
Click Preferences and check “IEC958″
Open the Switches tab [...]
Friday, August 28th, 2009
Installing cups and HP 1018 on Debian Lenny on a NSLU-2. I used the foo2zjs driver, but you could also use hplib.
Install cups and foo2zjs. Go and have a cup of coffee or an icecream – this will take a while
apt-get install cupsys foo2zjs
Now install the hp1018 driver.
getweb 1018
By default cups doesnt allow anything but [...]
Error:
MailScanner: Attempt to hide real filename extension (document.xml.rel)
This is becuase M$ Office 2007 documents (.docx, .xlsx etc, etc.) seem to be archived XML documents and MailScanner does not like that.
The solution is to put this in filename.rules.conf
allow \.xml\.rel$ - -
allow \.rel$ - -
allow \.docx$ - -
allow \.xlsx$ - -
allow \.xml\d*\.rel$ - -
allow \.x\d+\.rel$ - -
allow [...]
If you have multiple mail relays and are (like me) using postfix and MailScanner here is a (very) simple bash script to cynronize the configs. Just put it in your crontab.
SERVER=server.domain.tld
# Sync files for postfix
/usr/bin/rsync root@$SERVER:/etc/postfix/main.cf /etc/postfix/main.cf
/usr/bin/rsync root@$SERVER:/etc/postfix/relay_domains /etc/postfix/relay_domains
/usr/bin/rsync root@$SERVER:/etc/postfix/relay_recipients /etc/postfix/relay_recipients
/usr/bin/rsync root@$SERVER:/etc/postfix/sender_access /etc/postfix/sender_access
/usr/bin/rsync root@$SERVER:/etc/postfix/transport /etc/postfix/transport
/usr/bin/rsync root@$SERVER:/etc/postfix/virtual /etc/postfix/virtual
# postmap
/usr/sbin/postmap /etc/postfix/relay_domains
/usr/sbin/postmap /etc/postfix/relay_recipients
/usr/sbin/postmap /etc/postfix/sender_access
/usr/sbin/postmap /etc/postfix/transport
/usr/sbin/postmap /etc/postfix/virtual
# sync files [...]
I have decided to start blogging again, but since I am a systems administrator – the logical thing to do is to start blogging about tech stuff. Wich I will.
I have recently set up a monitoring system on one of the sites I work on. The choice was Hobbit (a few days later the project [...]