Activities

March 2008
M T W T F S S
    May »
 12
3456789
10111213141516
17181920212223
24252627282930
31  

SSH tunneling using putty

This is an example showing the ssh tunneling using putty application on windows. Our senarios is our mysql databae web interface access is limitted to certain ips eventhough we have ssh acccout on that sever.

All the SSH users can have get MySQL DB access and it’s more secure than a normal web access.

There [...]

Depolying Java application using Apache +Tomcat

Apache is very useful for deploying most of the applications. It is easy to configure multiple java applications over a single Apache server using it as a proxy server. Actually Apache will bypass the all the request to tomcat server.Here is the documentation.

There are 3 way to run java application using Apache

1, Using [...]

Disabling USB storage in Linux system

###########How to disable the USB storage device on Linux box ######## Edit vi /etc/modprobe.conf and added the entry install usb_storage wall “Critical device malfunction! Drive will be formated”

A sample entry will like this …

alias scsi_hostadapter sata_via remove snd-via82xx { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; /sbin/modprobe -r –ignore-remove snd-via82xx install [...]

Debian-Package Installations

######### How to install java on debian###################### Add the follwing repository into /etc/apt/sources.list #Local Mirror deb ftp://gulus.usherbrooke.ca/debian/ etch main contrib non-free #deb-src ftp://gulus.usherbrooke.ca/debian/ etch main contrib non-free #Security deb http://security.debian.org/ etch/updates main contrib non-free #deb-src http://security.debian.org/ etch/updates main contrib non-free

#Multimedia, from local mirror deb ftp://gulus.usherbrooke.ca/debian-multimedia/ etch main #deb-src ftp://gulus.usherbrooke.ca/debian-multimedia/ etch main

#Beryl deb http://debian.beryl-project.org [...]

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 [...]

Incremental backup – Re-synchronization over ssh

For doing this, 1, We need 2 Linux box with ssh service enabled 2, An ssh auto login to taking backup from 3,resysc command should be installed in backup server

A, SSH Auto login

############ SSH Auto login ###################

on the Client machine exicute the command from the data which to be taken from

a.) [...]