Install RKHunter

RKHunter
what is RKHunter and how to install it?

what is RKHunter and how to install it?

You can install RKHunter on Linux Server by using following steps.

1 Login to your server as root

2. cd /usr/local/src

3 Download RKHunter and extract the archive

wget http://downloads.rootkit.nl/rkhunter-1.1.4.tar.gz

Some time above URL is not working fine due to that you can also use following URL to download the tar file.

Download the Latest TAR FILE

wget –no-check-certificate http://downloads.sourceforge.net/project/rkhunter/rkhunter/1.4.2/rkhunter-1.4.2.tar.gz

tar -xzvf rkhunter-1.4.2.tar.gz

4. Install RKHunter

cd rkhunter-1.4.2

./installer.sh

Or

./installer.sh –layout default –install 

Note :  – – layout and – – install need to be use

You can also set the cron to receive the RKHunter result.

vi /etc/cron.daily/rkhunter.sh
#!/bin/bash
(/usr/local/bin/rkhunter –update && /usr/local/bin/rkhunter –check –nocolors –skip-keypress –summary 2>&1 | mail -s “RKhunter Scan Details” server@ktchost.com)

 

chmod a+x /etc/cron.daily/rkhunter.sh

As RKHunter now updated its version therefore it could be possible that above steps or URL won’t work therefore please refer to the following new steps to install RKHunter

root@server [~]# cd /usr/local/src

root@server[~]#wget http://downloads.sourceforge.net/project/rkhunter/rkhunter/1.3.8/rkhunter-1.3.8.tar.gz

root@server [~]#tar -xvf rkhunter-1.3.8.tar.gz

root@server [~]#cd rkhunter-1.3.8

root@server [/usr/local/src/rkhunter-1.3.8]#./installer.sh –layout default –install

Now run the rkhunter

root@server [/usr/local/src/rkhunter-1.3.8]# /usr/local/bin/rkhunter -c

 

About Anant 373 Articles
Senior technical writer