Get the disk health status with SMART monitor tools on Debian and Ubuntu Linux

Disk SMART status

Every current disk includes a built-in monitoring feature known as SMART that keeps track of faults. On Linux, there is a software package called smartmontools that may be used to query the SMART status of the disk to see if it will fail soon. Installation apt-get install smartmontools Usage First we need to know the ... Read more

How to convert RPM software packages to Debian (.deb)

Maybe you have had this problem: you are using Debian or Ubuntu Linux and a software package you would like to install is only available in RPM format. The solution is the handy tool called alien, which converts .rpm files to .deb files. Install alien: apt-get install alien Converting an rpm package to Debian format: ... Read more

How to enable verbose logging in pure-ftpd on Debian and Ubuntu

PureFTPD Verbose Log

To turn on verbose logging (e.g. to debug FTP connection or authentication problems) in pure-ftpd FTP server on Debian and Ubuntu Linux. Enable debug log in pure-ftpd Execute the following command as root user in the shell to enable verbose logging: echo 'yes' > /etc/pure-ftpd/conf/VerboseLog and then restart pure-ftpd, for init based systems: service pure-ftpd-mysql ... Read more

How to Backup/Clear/Restore a SpamAssassin Bayes Database

SpamAssassin Bayes Database

Sometimes you might have to work with the Spamassin Bayes Token database. This is the database that is used by the SpamAssassin Self Learning (Bayesian) Classifier to store the ham and spam tokens. This tutorial will show you how to make a backup of that database. E.g. when you want to move it to a ... Read more

Debugging of ISPConfig 3 server actions in case of a failure

The follwing article describes the steps that can be taken to debug the ISPConfig 3 server scripts. Enable the debug Loglevel in ISPConfig Login to the ISPConfig intterface and set the log level to Debug under System > System > Server Config (see also chapter 4.9.2.2 of the ISPConfig 3 manual) for the affected server. After ... Read more

Apache mod-security installation on Debian 6.0 (squeeze)

Install the apache mod-security 2 module with apt from the Debian repositories apt-get install libapache-mod-security Create the folder for the mod-security configuration files mkdir /etc/apache2/mod-security chmod 600 /etc/apache2/mod-security Download and unpack the mod-security rules cd /tmp wget http://www.modsecurity.org/download/modsecurity-core-rules_2.5-1.6.1.tar.gz tar fvx modsecurity-core-rules_2.5-1.6.1.tar.gz mv *.conf /etc/apache2/mod-security/ ln -s /var/log/apache2 /etc/apache2/logs Configure apache to load the activated mod-security ... Read more

How to get detailed information about the harddisk installed on a Linux server

Detailed information about the hard disk type, disk vendor etc. of the disk used on a Linux system can be aquired with the linux tool hdparm. If hdparm is not installed on your server, it can be installed with this command (on Debian and Ubuntu systems): apt-get install hdparm For other Linux distributions, use the ... Read more