Monday, October 22, 2012

How to install and use Rkhunter

rkhunter is a shell script which carries out various checks on the local system to try and detect known rootkits and malware. It also performs checks to see if commands have been modified, if the system startup files have been modified, and various checks on the network interfaces, including checks for listening applications. 

  rkhunter has been written to be as generic as possible, and so should run on most Linux and UNIX systems. It is provided with some support scripts should certain commands be missing from the system, and some of these are perl scripts. rkhunter does require certain commands to be present for it to be able to execute. Additionally, some tests require specific commands, but if these are not present then the test will be skipped. rkhunter needs to be run under a Bourne-type shell, typically bash or ksh. rkhunter can be run as a cron job or from the command-line. 

INSTALLATION

1. cd /usr/local/src ;
2. wget http://sourceforge.net/projects/rkhunter/files/latest  /download ;
3. tar -xzvf rkhunter-1.4.0.tar.gz ;
4. rm -f rkhunter-1.3.8.tar.gz ;
5. cd rkhunter-1.3.8 ;
6. sh installer.sh --layout /usr --install ;
7. rkhunter --update ;

USAGE

# rkhunter -c --sk

How to install and use Maldetect

Linux Malware Detect (LMD) is a malware scanner for Linux released under the GNU GPLv2 license, that is designed around the threats faced in shared hosted environments. It uses threat data from network edge intrusion detection systems to extract malware that is actively being used in attacks and generates signatures for detection.
Installation Steps
---------------------------
1. wget http://www.rfxn.com/downloads/maldetect-current.tar.gz
2. tar -xzvf maldetect-current.tar.gz
3. sh install.sh

How to start scanning...
-----------------------------
maldet -a  your desired directory  (run it on a screen.)

Eg: maldet -a /home

Installation Of Minecraft Server on Linux

What is Minecraft Server?

Minecraft servers allow players to play online games with other people. They may either be run on a hosted Minecraft server service, a dedicated server, a Virtual Private Server or a home machine.

Steps

1.Installing Java
To check if Java has been installed type the following into the terminal:
which java
If not you will need to install it, the following will install Java-JDK 1.6:

yum install java-1.6.0-openjdk

2.mkdir minecraft

3.cd minecraft

4.Time to get Minecraft:
  wget http://www.minecraft.net/download/minecraft_server.jar

5.Once it has finished downloading you will need to make sure Minecraft has the correct permissions:

chmod +x minecraft_server.jar

6.Launching Minecraft
Launching the Minecraft server on a Linux server is different from launching on a Windows based server because when you close the SSH terminal Minecraft will also close. To get around this we will need to install "screen" which will keep the Minecraft server running after the SSH terminal is closed. To install screen:

yum install screen

Now that screen is installed we will use it run the server:

screen

Starting up Minecraft now:
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
(*1024 value can be changed depending on how much RAM your VPS has)
Ex. 512MB VPS - java -Xmx512M -Xms512M -jar minecraft_server.jar nogui
Ex. 2048MB VPS - java -Xmx2048M -Xms2048M -jar minecraft_server.jar nogui

Your Minecraft server is now up and running and you will be able to play with all your friends.