How do I flush the qmail queue?
Well, you just have to send the ALARM signal to qmail-send process:
killall -ALRM qmail-send
that´s already it. Alternatively you can try:
/var/qmail/bin/qmail-tcpok(this is the standard ...
How do I delete the qmail queue?
that is pretty simple too, but remember: ALL emails will be deleted and gone forever:
/etc/init.d/qmail stop ( or qmailctl stop)
cd /var/qmail/queue ( be ...
How do I install MySQL 4.1 on Debian Etch / Debian 4.0?
Hi Folks,I ran into that problem and here is a quite easy solution, thanks to www.mytso.net: edit /etc/apt/sources.list add the following line: deb http://debian.mytso.net/etch / edit /etc/apt/preferences add the following ...
How do I install rtorrent with xmlrpc?
well on Debian (Etch/Lenny) this is not that hard:
aptitude install libsigc++-2.0-dev build-essential libncurses5-dev libcurl4-openssl-dev libwww-dev libwww-ssl-dev subversion
aptitude install libsigc++-2.0-dev build-essential libncurses5-dev libcurl3-dev libwww-dev ...
How do I set a smarthost in qmail?
Hi Folks,this is also quite easy: echo ":HOSTNAME" >/var/qmail/control/smtproutes (e.g. echo ":mx1.gosi.at" >/var/qmail/control/smtproutes ) ...
How do I resize a Virtual VMware Disk?
Also that isn´t really hard, there is a tool for this, called vmware-vdiskmanager.
shut down the VM machine
locate the regarding disk image (in Debian: /var/lib/vmware/Virtual Machines/VMNAME/*.vmdk) ...
How to jailbreak a iPhone 3Gs with iPhone OS 3.0?
well, so far there are two solutions: purplera1n from geogot and redsn0w from the iphone-dev team.
browse to http://blog.iphone-dev.org/post/126908912/redsn0w-in-june
read the text
do the magic!
works with Windows XP, Windows 7 ...
How to disable fsck upon startup?
not that this is recommended but with a journaling file system you should be fine in most cases, so:
tune2fs -i 0 -c 0 /dev/sda
How to undelete removed/deleted files on an ext3 fs?
Well, there are three ways I know and have succeeded so far:
Follow this instructions: http://www.xs4all.nl/~carlo17/howto/undelete_ext3.html
the other way is to scan the partition/drive for file signatures ...
How to install glusterfs in Debian Lenny?
tar -zxf glusterfs-2.0.8.tar.gz
tar -zxf fuse-2.7.4glfs11.tar.gz
aptitude install sshfs build-essential flex bison byacc libdb4.6 libdb4.6-dev libfuse-dev
./configure && make && ...
How do I disable the PHP error reporting?
This is quite easy, just add this to your PHP file:
you can also achieve this via .htaccess if AllowOverride is set correctly:
php_flag display_errors off
How to recover the MySQL root password?
Well, this happens from time to time and is actually easy to fix, so here you are:
/etc/init.d/mysql stopmysqld_safe --skip-grant-tables &
mysql -u root
you should now be ...
How to change file encoding to utf-8 via vim?
There are a few ways to achieve that, here is for a single file:
vi filename.php:set bomb:set fileencoding=utf-8:wq
This way is a bit more automated:
vi --run-command=':set bomb, ...
How to compile a custom kernel in Debian Lenny / Etch?
This is usually quite straight forward, since Debian brings utilities with it to do this:
aptitude install build-essential kernel-package fakeroot libncurses5-dev bzip2
tar -jxf linux-2.6.36.tar.bz2
How to disable screen blank(ing) in Debian?
This is easy to achieve to just edit this file with your favorite editor:
change BLANK_TIME and POWERDOWN_TIME to 0:
reboot, done! ...
How to fix "undefined reference to crypt'" while compiling qmail with vpopmail?
If you have a problem like this:
./load qmail-tcpto ip.o now.o open.a lock.a substdio.a error.a str.a fs.a auto_qmail.o
/home/vpopmail/lib/libvpopmail.a(vpopmail.o): In function mkpasswd3':
/usr/local/src/vpopmail-5.4.4/vpopmail.c:602: undefined reference to crypt'
/home/vpopmail/lib/libvpopmail.a(vauth.o): In ...
How to completely uninstall xcode?
This is actully quite easy and might be necessary from time to time.Open a Terminal and enter the following command:
sudo /Developer/Library/uninstall-devtools --mode=all
This will take some ...
How to checkout a specific git tag?
After you have created a local copy of the repository you can checkout a specif tag, so there you go:
git clone http://git.gosi.at/testrepo testrepo
git tag -l
How to activate TRIM in Mac OS X?
Owners of Macbooks who upgraded to an SSD might want to use this feature and here are two ways to achieve that:
There is a tool ...
How to change MySQL user password?
Connect to your database and run the following command:
update mysql.user set password=PASSWORD("ENTER-PASSWORD-HERE") where User='ENTER-USERNAME';
After that you might want to run:
How to fix "Failed to fetch Packages 404 Not Found"?
Depending on which Debian mirror you are using, the error message looks like this:
W: Failed to fetch http://ftp.debian.org/debian/dists/lenny/main/binary-i386/Packages 404 Not Found
W: Failed to fetch http://ftp.debian.org/debian/dists/lenny/main/binary-amd64/Packages ...
How to setup framebuffer in grub / console in Debian Wheezy?
First install the frame buffer console
aptitude install fbterm
edit the following file: vi /etc/default/grub and change the following lines to the resolution you would like:
reboot and that ...
How to flush DNS cache in OS X El Capitan?
Open a Terminal (in /Applications/Utilities/ or search with Spotlight) and run the following command:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder;
How to fix “Unknown database driver ‘mysql'"?
If you didn´t compile dovecot from source, you need to install the dovecot-mysql package:
yum install dovecot-mysql
apt-get install dovecot-mysql
If you compiled dovecot from source, you need ...