How to debug a POP3 connection/server?
You can do that quite easily with your windows/linux client by just using telnet:(bold text are commands from us, the rest are responses from the ...
How to "hard" reboot a server?
your server is still able to login you via ssh but doesn´t do anything about the reboot command?
Well, you can try this little c programm, ...
How to create MySQL dumps?
As you have to move a MySQL database from one server to another you might run into troubles. Tools like phpMyAdmin may help you on ...
How do I create a Debian mirror?
This is a bit more complicated, but here you go:First we install the package from the debian team which helps us setting up the mirror:aptitude ...
How to install mplayer on Kubuntu and Ubuntu?
edit /etc/apt/sources.list and uncomment the lines for universe (remove the "#" in front of the lines)
add a line similar to universe see the example: ...
How do I install ASSP?
Hello!
Well this is not that complicated, just stick with this and you will be fine.
install perl and cpan on your system ( e.g. ...
How do I upgrade CPAN?
Hi!
well, first of all, be sure what you are doing! Usually your distribution comes with some version of CPAN and works best with that version, of ...
How do I install killall in Debian Etch?
Hello,
today I found out, that after upgrading my Sarge boxes to Etch the killall tool is missing, which is usually quite handy at times, so ...
How do I change the timezone within Debian?
well that one is pretty simple, just call:
tzconfig
and set it to whatever you please. If you do not want to use UTC time on your ...
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 fix the index of an avi (divx) file?
Hello,
well this problem seems to be pretty common, especially with downloaded files from the internet, so here is how you can fix it:
browse to http://www.mplayer.at ...
How to setup a transparent proxy with squid?
There are a few ways to achieve a transparent proxy, the one I am describing here is with the Linux system being the gateway and ...
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 flush the exim mail queue?
Hi Folks,
well, here is something to get you started:
exim -qf
exim -qff
The first command will rerun the mail queue and the second one will also try ...
How do I install mplayer on Mac OS X?
Hi fellow Mac users,
the problem is that the mplayer builds supplied by the mplayer people themselves are really outdated so it is suggested to stick ...
How do I install rtorrent with xmlrpc?
Hi there,
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
for Etch:
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.
resn0w:
browse to http://blog.iphone-dev.org/post/126908912/redsn0w-in-june
read the text
do the magic!
purplera1n:
works with Windows XP, Windows 7 ...
How to unlock your iPhone 3G / 3Gs?
Thanks again to the iPhone dev team there is already a solution for this, once you have jailbreaked your iPhone: make sure your iPhone indeed runs ...
How to use suspend to disk in Mac OS X?
Usually your Mac Book does a special thing, that is called "safe suspend", what happens here is that the RAM content gets written on the ...
How to create ext3 filesystem using mke2fs?
well, sometimes on older / embedded system mkfs.ext3 might not be available, but mke2fs, so what you do it create and ext2 with journal, which ...
How do I remove all messages from exim queue?
this is also quite simple:
exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash
this should / will also work:
exim -bp | exiqgrep -i ...
How to enable Time Machine on unsupported volumes?
Just run that command in terminal and you can use any device for Time Machine backups:
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1
...
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 do I convert an ext2 to an ext3 file system?
first of all: check if your kernel supports ext3!(most kernels since 2006 do that anyhow, so you should be fine)
optional step: touch /forcefsckand reboot(this will ...
How to install glusterfs in Debian Lenny?
cd /usr/src
wget "http://ftp.gluster.com/pub/gluster/glusterfs/2.0/LATEST/glusterfs-2.0.8.tar.gz"
wget "http://download.gluster.com/pub/gluster/glusterfs/fuse/fuse-2.7.4glfs11.tar.gz"
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
cd fuse-2.7.4glfs11
./configure && make && ...
How to stop ssh brute force attacks?
well, there are a few way, the way of my choosing is to just use the recent module from iptables:
iptables -A INPUT -p tcp --dport ...
How to run MacFUSE on Snow Leopard 64 bit?
Hi folks,
well, I ran into this problem some time ago and well, you could built it yourself from the google code project, but that is ...
How do I disable the PHP error reporting?
This is quite easy, just add this to your PHP file:
error_reporting("E_ALL") ;
you can also achieve this via .htaccess if AllowOverride is set correctly:
php_flag display_errors off
If ...
How to fix broken sasl after system update?
If you get error message like these on Debian Lenny/Etch (after an system upgrade):
No run directory defined for , cannot stop
No run directory defined for ...
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 fix "warning: not set-gid or not owner+group+world executable"?
In my case it appeared in the logs for two files:postfix/postfix-script: warning: not set-gid or not owner+group+world executable: /usr/sbin/postqueuepostfix/postfix-script: warning: not set-gid or not owner+group+world ...
How do I flush the postfix queue?
This task is pretty straight forward:
postqueue -f
Afterwards you might want to tail the maillog and see what happens.Or you might also want to use this ...
How to reset the CPAN configuration?
This is pretty easy, so here we go, in CPAN you just issue the following command:
o conf init
That´s it, CPAN should now start to ask ...
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 install Tomcat5.5 in Debian Lenny?
here are a few hints to get you started:
you need to change your /etc/apt/sources.list so it does include the non-free repository,so it will look like ...
How to install PHP 5.3 next to 5.2.x or 4.x?
There are certain ways to achieve this, since the main reason for me doing that is testing, I choose the way with the least effort ...
How to monitor MySQL replication with Nagios?
Well, I wrote that script quite a while ago, it worked for me, so here you are:
#!/usr/bin/php -q
<?php
$host = $argv[1];
$user = $argv[2];
$pass = $argv[3];
$link = ...
How to format a USB stick with NTFS in Windows XP?
While sadly Microsoft has removed FAT32 support from everything but USB sticks, they also didn´t include the ability to format a USB stick with NTFS. ...
How to install Debian Lenny from a USB stick?
Hi there,the only hard thing here is preparing the USB stick, but actually the Debian guys took care of most of the process so, here ...
How to convert an ext3 partition to ext4?
Well, this is actually not too hard and ext4 gives better performance in various cases, so an update to ext4 is surely not a bad ...
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
cd /usr/src
wget "http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.36.tar.bz2"
tar -jxf linux-2.6.36.tar.bz2
cd ...
How to disable screen blank(ing) in Debian?
This is easy to achieve to just edit this file with your favorite editor:
vi /etc/console-tools/config
change BLANK_TIME and POWERDOWN_TIME to 0:
BLANK_TIME=0
POWERDOWN_TIME=0
reboot, done! ...
How do I upgrade from Debian Lenny to Squeeze?
Here you go:
(please do that in textmode and not in your GUI, so KDE or whatever can be restarted without any issues)
vi /etc/apt/sources.list
(change lenny to ...
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 install Openfire server on Debian Lenny / Squeeze?
This isn´t that hard, so here we go:edit /etc/apt/sources.list to make the entries look like this one:
deb http://ftp.at.debian.org/debian/ lenny main contrib non-free
After that run the ...
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 duplicate / copy partition table?
In Linux there is a small helpful tool for this, called sfdisk. It is able to diplays and manipulate the partiation table.This comamnd reads the ...
How to install mailparse module for PHP?
pecl install mailparse
Thats about it. If you move from a major PHP version to another, like from 5.2.x to 5.3.x you have to remove it ...
How to convert a subversion repository to fsfs?
This is actually not that hard, but might be time consuming, depending on your repository size. Anyhow, the bdb database works fine, but in my ...
How to hide TabWidget of tabhost?
Or how to hide the tabbar, tabgroup, whatever you may call it :)First of all, there are different ways to achieve this, I will only ...
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
git ...
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:
flush privileges;
...
How to run virt-manager on Mac OS X?
There is no easy solution for this at the moment and there is no real alternative on Mac OS X either,but you can just forward ...
How to repair GRUB with a live cd?
There are many things that could go wrong with a GRUB installation and one way to get the system booting is some kind of a ...
How to start a virtual machine (guest) at boot time?
This is pretty simple:
virsh autostart VMNAME
Just replace VMNAME with the name you have given your instance and running the command should output a message like ...
How to show ip routes in Mac OS X?
Fire up your terminal an enter the following command:
netstat -nr
Or you could limit it a bit to this:
netstat -rnf inet
Or mabye you are just looking ...
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 edit a very large file?
I had to remove one line of a 20GB MySQL dump file and was wondering how I could do this.
Actually there are a few ways, ...
How to test STARTTLS on a mailserver?
You might want to test if STARTTLS works on your setup, or maybe some other server and see the internals.From a Linux box this is ...
How to bind postfix to an IP / interface?
Also a pretty basic thing, here you are:Edit the main.cf with your favorite editor, for me that is vi and on Debian the file path ...
How to clean drives from software raid (mdadm)?
Software raid is really great in Linux, but once you need to repurpose old drives,or lets say some other implementation of software raid has fucked ...
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:
GRUB_GFXMODE=1920x1080
GRUB_GFXPAYLOAD_LINUX=1920x1080x32
reboot and that ...
How to duplicate / copy GPT partition table?
sfdisk doesn´t do the trick on GPT tables, so this will not work.
This is also easy, we need to install
aptitude install sgdisk
and then run this ...
How to fix "/bin/sh: msgfmt: not found"?
This is a compilation caused because a tool is missing, which is easy to fix in Debian:(this happend to me while compiling git)
aptitude install gettext ...
How to get list of user-agents from nginx log?
This is actually easy to do and works with our precious cli tools:
awk -F'"' '/GET/ {print $6}' /var/log/nginx/access.log | cut -d' ' -f1 | sort ...
How do I send an email with attachment from commandline?
Well this is easy with mutt, so first we install mutt:
aptitude install mutt
After that we run the following command:
echo "message body" | mutt -a "/path/to/file.jpg" ...
How to boot Raspberry Pi without starting x-server?
You can set this in the raspi-config:
sudo raspi-config
Under 3, "Boot Options", you can set to only load console without X.
Alternatively this command should also do ...
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:
RedHat/CentOS/Fedora:
yum install dovecot-mysql
Debian:
apt-get install dovecot-mysql
If you compiled dovecot from source, you need ...
How to fix apt-key expired for deb.sury.org B188E2B695BD4743?
Hello,
the error message is something along the lines of: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <deb@sury.org>
How to fix? Pretty easy, get the new key for ...