Archive for August, 2006

Disable System Beep in VMWARE

By Jonesy • Aug 11th, 2006 • Category: Linux

If you, like me, can’t stand that obnoxious system beep in VMWare and have discovered that you can’t cut speaker wires inside a VM, you will probably appreciate this tip. Add the following line to your preferences file (~/.vmware/preferences on linux, preferences.ini on windows):
mks.noBeep = TRUE
Now your internal speaker will no longer drive you crazy [...]



Linux Innuendo

By Jamsi • Aug 4th, 2006 • Category: News

who | grep -i brunette | date; cd ~; unzip; touch; strip; finger; mount; fsck; gasp; yes; uptime; umount; sleep



Removing mail from the Exim mail queue

By Jamsi • Aug 4th, 2006 • Category: Linux

Jonesy came through again with a command that helped me out big time. I had all this mail queued up that I wanted to remove.
mailq |grep -B1 your@address.com|awk ‘{print $2 “-D”}’ |grep -v “^-D$” |sed ’s/-D$//g’ |awk ‘{print “/usr/sbin/exim -Mrm “$1}’|sh
Pretty much this will remove all items that are stuck in the EXIM queue that [...]



Command to move large emails from the queue

By Jamsi • Aug 4th, 2006 • Category: Linux

To delete large emails from a postfix or sendmail queue;
find . -size +1000k 2>/dev/null |sed -e ’s/^\.\///g;p;s/^d/q/g’ | xargs rm -rf
(cd /var/spool/mqueue; find . -size +1000k 2>/dev/null |sed -e ’s/^\.\///g;p;s/^d/q/g’ | awk ‘{print “mv ” $1 ” /folder/to/move/to/”}’ |sh)