September 2019
« Apr    

How to install java on Ubuntu

This small guide shows how to install the original Sun Java 2 Platform Standard Edition 5.0 JRE (Java Runtime Environment) and JDK (Java Developer Kit) on Ubuntu.

The original Sun Java 2 is available in the ‘multiverse’ section of the Ubuntu repositories. To enable this section first add the multiverse repository to the apt sources […]

How to run mulitple Tomcat instance on the same server

I am listing the steps to archive the goal

1, Step 1: Install the Tomcat files

2, Make directories for each instance

3. Editing the server.xml

Tomcat using 2 major port one for listening http request and another for listening shutdown port

in here i put tomcat installation on /usr/local/tomcat5.5.9 folder

now I am going […]

How to monitor SSH Login activities and FTP logins over the web

Basic Idea behind scripts is,

We can able to monitor the activities of ssh logins,any hacking attempt and ftp logins. The steps are involved in this scripts is

1, first check the log log files for whether there is any entry is present

2, If any lines present in the logs regarding the login activities, […]

Memory inspection

A, Cheking memory size and avialbale ususge

$free -m

B, What is the maximum RAM supported by the system?


dmidecode -t 16

C, How many memory slots are available for expansion? $ dmidecode -t 17 | grep Size

D, Detailed memory information

$ cat /proc/meminfo

Check the status of a Crontab entry

How to check a cronjob is working properly

1.From the terminal exicute $ crontab -e * * * * * date >>/home/cronstatus.txt

then save and open the /home/cronstatus.txt using any editor check the time intervel between the date printed on the file.

Note: the above cron job will execute every second .So you need to […]