Removing old kernels

On Debian/Ubuntu we would need to search for installed kernel packages, something like this: root@server:~# dpkg --list |grep linux-image ii  linux-image-3.2.0-23-generic         3.2.0-23.36                                      Linux kernel image for version 3.2.0 on 64 bit x86 SMP ii  linux-image-3.2.0-56-generic         3.2.0-56.86                                      Linux kernel image for version 3.2.0 on 64 bit x86 SMP ii  linux-image-3.2.0-57-generic         3.2.0-57.87                                     …

TIP: Debian/Ubuntu prevent accidental halts/reboots

If you’re connected to a server via SSH as root and accidentaly you type in “reboot” or “poweroff” this might really happend. To avoid this you could simply install a package: apt-get install molly-guard After this, if you type, for instance, “reboot” you will be prompted with your server’s hostname…

PHP upgrade

If you run your PHP scripts on a Debian system, and you installed PHP from the Dotdeb repo you should do a dis-upgrade as the new 5.3.17 and 5.4.7 versions are available. For a list of changes check out the Dotdeb website
Tips & Tricks