Monday, 3 December 2012

Install TCPtrack


Tcptrack is an excellent tool to monitor your server network connections and bandwidth quickly, installation is pretty easy and can be done either via rpm or source.

Install Tcptrack from rpm

Download Tcptrack rpm  from http://packages.sw.be/tcptrack/ by selecting your OS and arch :
$ cd /usr/src
$ wget http://packages.sw.be/tcptrack/tcptrack-1.1.5-1.2.el5.rf.i386.rpm
$ rpm -ivh tcptrack-1.1.5-1.2.el5.rf.i386.rpm

Install TCPtrack from source

Download TCPtrack source from :  http://www.rhythm.cx/~steve/devel/tcptrack/release/
$ tar zxvf tcptrack-1.3.0.tar.gz
$ cd tcptrack-1.3.0
$ ./configure ; make & make install

Run ‘ tcptrack -h ‘ to list help menu :

Usage: tcptrack [-dfhvp] [-r <seconds>] -i <interface> [<filter expression>]

TCPtrack can monitor only one nic at once with only one parameter to run (if you have two nic ie.. eth0 & eth1 )
    # tcptrack -i eth0
    # tcptrack -i eth1

Tcptrack can also take a pcap filter expression as an argument. The format of this filter expression is the same as that of tcpdump(8) and other libpcap-based sniffers. The following example will only show connections from host 68.36.45.78:
    # tcptrack -i eth0 src or dst 68.36.45.78

To monitor the specific ports (ie..port 80 and 22):
    # tcptrack -i eth0 port 80
    # tcptrack -i eth0 port 22

Tcptrack is little resouce intensive, try to use -f option for fast  average recalculation under less resource usage.

link -- http://www.gnutoolbox.com/tcptrack/

install softaculous on cpanel server


Note: Before starting the installation make sure ionCube Loaders are enabled.

WHM >> Tweak Settings >> Ioncube loader

Run this below commands in screen

wget -N http://files.softaculous.com/install.sh
chmod 755 install.sh
./install.sh

Now go to : WHM > Plugins > Softaculous - Instant Installs

Install Teamspeak on cent OS


The first step would be creating a directory for your TS3 installation.

 cd /home
 mkdir teamspeak3

 cd teamspeak3

 wget http://ftp.4players.de/pub/hosted/ts3/releases/beta-5/teamspeak3-server_linux-amd64-3.0.0-beta5.tar.gz

 tar zxvf teamspeak3-server_linux-amd64-3.0.0-beta5.tar.gz

 cd teamspeak3-server_linux-amd64

 create a ts3server.ini

 ./ts3server_linux_amd64 createinifile=1

Now close it by pressing Ctrl-C. Don’t forget to copy/paste the admin
login and password since you’ll need it later. it looks like this.

——————————————————————
I M P O R T A N T
——————————————————————
Server Query Admin Acccount created
loginname= “serveradmin”, password= “42ds23ak”
——————————————————————

Now that youv’e setup everything (including your license key), it’s time
to start TS3 using screen so that it runs in the background. Don’t worry
you can switch your to it anytime you want.

Let’s first create a file. I named mine /ts3-server/.

 vi ts3-server

Add the following line.

 screen -A -m -d -S ts3-server ./ts3server_linux_amd64

Save your file and then chmod it so it’s recognized as an executable by
your system.

 chmod +x ts3_run

To go back to your TS3′s screen, just type…

 screen -r ts3-server

To close your TS3 screen without closing your server, just type…

Ctrl-A-D

Install node.js in CentOS server


Get the latest stable version from http://nodejs.org/download/

 cd /usr/local/src
 wget node-v0.6.8.tar.gz --> get the latest version
 tar zxvf node-v0.6.8.tar.gz
 cd node-v0.6.8
 ./configure
 make
 make install

Install maldetect


 wget http://www.rfxn.com/downloads/maldetect-current.tar.gz
 tar -xzvf maldetect-current.tar.gz
 cd maldetect-*
 sh install.sh

 maldet --scan-all  /home/*/public_html/      ---> To scan
 maldet --report 122111-1532.827                -----> To see the report
 maldet -q 122111-1532.8272                         ----> To remove the Infected files

maldet(7488): {scan} quarantine is disabled! set quar_hits=1 in conf.maldet or to quarantine results run: maldet -q 125211-1258.7488


Infected file lists in

 cd /usr/local/maldetect/sess/

There is a file that start with session.