tag:blogger.com,1999:blog-3302200446977360882024-03-12T18:12:51.266-07:00Open The Linux!Linux is an open-source version of the UNIX operating system.Linux is named after Linus Torvalds,who introduced it!I am a Linux Student.In this blog i will be posting all what i learn about LINUX,OpenSource packages,web tools and what ever i found useful & intresting to be a linux system admin..!!!humanlinuxhttp://www.blogger.com/profile/03340729591318059010noreply@blogger.comBlogger50125tag:blogger.com,1999:blog-330220044697736088.post-33625783447791192552010-03-06T14:12:00.000-08:002010-03-06T14:13:48.795-08:00How to configure NAT with iptables on a VPS<a href="http://techinterplay.com/configure-nat-iptables-vps.html">How to configure NAT with iptables on a VPS</a>humanlinuxhttp://www.blogger.com/profile/03340729591318059010noreply@blogger.com21tag:blogger.com,1999:blog-330220044697736088.post-56304384496282948592009-10-18T07:30:00.002-07:002009-10-18T07:30:22.162-07:00How to install .deb files using dpkg<a href="http://techinterplay.com/2009/08/08/how-to-install-deb-files-using-dpkg/">How to install .deb files using dpkg</a>humanlinuxhttp://www.blogger.com/profile/03340729591318059010noreply@blogger.com7tag:blogger.com,1999:blog-330220044697736088.post-68861881267909950422009-10-18T07:30:00.001-07:002009-10-18T07:30:20.172-07:00How to install winrar for Linux<a href="http://techinterplay.com/2009/10/10/how-to-install-winrar-for-linux/">How to install winrar for Linux</a>humanlinuxhttp://www.blogger.com/profile/03340729591318059010noreply@blogger.com3tag:blogger.com,1999:blog-330220044697736088.post-60632943413882604722009-10-18T07:30:00.000-07:002009-10-18T07:30:18.618-07:00Install file splitter for Linux.<a href="http://techinterplay.com/2009/10/02/install-file-splitter-for-linux/">Install file splitter for Linux.</a>humanlinuxhttp://www.blogger.com/profile/03340729591318059010noreply@blogger.com4tag:blogger.com,1999:blog-330220044697736088.post-13113511599478350792009-10-18T07:28:00.001-07:002009-10-18T07:28:57.159-07:00How to change Linux root password temporarily.<a href="http://techinterplay.com/2009/10/18/how-to-change-linux-root-password-temporarily/">How to change Linux root password temporarily.</a>humanlinuxhttp://www.blogger.com/profile/03340729591318059010noreply@blogger.com5tag:blogger.com,1999:blog-330220044697736088.post-72246490970169001492009-10-18T07:28:00.000-07:002009-10-18T07:28:16.504-07:00“World’s first” 3D camera launched by FUJIFILM<a href="http://techinterplay.com/2009/10/02/worlds-first-3d-camera-launched-by-fujifilm/">“World’s first” 3D camera launched by FUJIFILM</a>humanlinuxhttp://www.blogger.com/profile/03340729591318059010noreply@blogger.com8tag:blogger.com,1999:blog-330220044697736088.post-81281330080262137182009-07-21T06:46:00.000-07:002009-07-21T06:47:22.460-07:00FIX : Unable to open pty: No such file or directory<span class="Apple-style-span" style="font-family: 'Times New Roman'; "><div style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(255, 255, 255); font: normal normal normal 13px/19px Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; padding-top: 0.6em; padding-right: 0.6em; padding-bottom: 0.6em; padding-left: 0.6em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-position: initial initial; "><p mce_style="text-align: justify; " style="text-align: justify; ">While trying to SSH or enter into a VPS from the node, you may get the following error :</p><blockquote mce_style="text-align: justify; " style="text-align: justify; "><p>Unable to open pty: No such file or directory</p></blockquote><p mce_style="text-align: justify; " style="text-align: justify; ">or</p><blockquote mce_style="text-align: justify; " style="text-align: justify; "><p>root@tip~]# vzctl enter 900<br />enter into VE 900 failed<br />Unable to open pty: No such file or directory</p></blockquote><p mce_style="text-align: justify; " style="text-align: justify; ">There is a temporary and permenant fix for this issue.</p><p mce_style="text-align: justify; " style="text-align: justify; "><span mce_name="strong" mce_style="font-weight: bold;" class="Apple-style-span" style="font-weight: bold; ">Temporary Fix :-</span></p><p mce_style="text-align: justify; " style="text-align: justify; ">Execute the following commands from the node</p><blockquote><p mce_style="text-align: justify; " style="text-align: justify; ">vzctl exec <span mce_name="em" mce_style="font-style: italic;" class="Apple-style-span" style="font-style: italic; ">VEID</span> /sbin/MAKEDEV pty</p><p mce_style="text-align: justify; " style="text-align: justify; ">vzctl exec <span mce_name="em" mce_style="font-style: italic;" class="Apple-style-span" style="font-style: italic; ">VEID</span> /sbin/MAKEDEV tty</p><p mce_style="text-align: justify; " style="text-align: justify; ">vzctl enter <span mce_name="em" mce_style="font-style: italic;" class="Apple-style-span" style="font-style: italic; ">VEID</span></p></blockquote><p mce_style="text-align: justify; " style="text-align: justify; ">Where <span mce_name="em" mce_style="font-style: italic;" class="Apple-style-span" style="font-style: italic; ">VEID</span> is the VPS id.</p><p mce_style="text-align: justify; " style="text-align: justify; "><span mce_name="strong" mce_style="font-weight: bold;" class="Apple-style-span" style="font-weight: bold; ">Permanent Fix :-</span></p><p mce_style="text-align: justify; " style="text-align: justify; ">First temporarly fix the issue and enter into the VPS.</p><p mce_style="text-align: justify; " style="text-align: justify; ">1) vzctl enter <span mce_name="em" mce_style="font-style: italic;" class="Apple-style-span" style="font-style: italic; ">VEID</span></p><p mce_style="text-align: justify; " style="text-align: justify; ">2) Edit the file /etc/rc.sysinit of the VPS</p><blockquote><p mce_style="text-align: justify; " style="text-align: justify; ">vi /etc/rc.sysini</p></blockquote><p mce_style="text-align: justify; " style="text-align: justify; ">3) Search for the line <span mce_name="em" mce_style="font-style: italic;" class="Apple-style-span" style="font-style: italic; ">/sbin/start_udev</span> and comment it</p><blockquote><p mce_style="text-align: justify; " style="text-align: justify; ">#/sbin/start_udev</p></blockquote><p mce_style="text-align: justify; " style="text-align: justify; ">4) Add the following two lines under /sbin/start_udev</p><blockquote><div>#/sbin/start_udev</div><div>/sbin/MAKEDEV tty</div><div>/sbin/MAKEDEV pty</div></blockquote><div><span mce_style="font-family: Georgia; line-height: 19px; " style="font-family: Georgia; line-height: 19px; ">Logout from your VPS (Ctrl d)</span></div><p>5) Reboot the VPS and you are done!</p><blockquote><p><span mce_style="font-family: arial; line-height: normal; " style="font-family: arial; line-height: normal; ">vzctl restart VEID</span></p></blockquote></div></span>humanlinuxhttp://www.blogger.com/profile/03340729591318059010noreply@blogger.com2tag:blogger.com,1999:blog-330220044697736088.post-40340491389374752942009-06-18T21:05:00.000-07:002009-07-21T21:30:21.749-07:00Migrating to a Domain<html>
<br /><head>
<br /><meta name="verify-v1" content="A5Dn3OF/WkEdMl+JzofQ3TZdhb5/LCbwV7RPV2MtiCg=" />
<br /><title> My title </title>
<br /></head>
<br /><body>
<br />page contents
<br /></body>
<br /></html>
<br />
<br /><p><span style="font-size:180%;"><strong><span style="color:#cc0000;">My new Blog under construction: Visit : </span></strong></span></p><p><span style="font-size:180%;"><strong><span style="color:#000066;"><a href="http://techinterplay.com/">www.techinterplay.com</a></span></strong></span></p><p></p>humanlinuxhttp://www.blogger.com/profile/03340729591318059010noreply@blogger.com0tag:blogger.com,1999:blog-330220044697736088.post-71694255528929318272009-05-23T03:17:00.000-07:002009-05-23T03:51:54.294-07:00How to enable log rotation on Linux ?<span class="search_hit">logrotate</span> is a program which will automatically backup your old log files and gzip them. You can specifiy how often <span class="search_hit">logrotate</span> should backup your logfiles and how long it should keep them. The advantage of logrotation is that you can save disk space without the deletion of log files. The logrotation can be configured for automatic rotation, compression, removal, and mailing of log files.<br /><br />The default configuration file is /etc/logrotate.conf<br /><br /><div style="text-align: left;"><span style="font-size:85%;"></span><span style="font-size:85%;"></span><blockquote><span style="font-size:85%;"># see "man logrotate" for details</span><br /><span style="font-size:85%;"># rotate log files weekly</span><br /><span style="font-size:85%;">weekly</span><br /><br /><span style="font-size:85%;"># keep 4 weeks worth of backlogs</span><br /><span style="font-size:85%;">rotate 4</span><br /><br /><span style="font-size:85%;"># create new (empty) log files after rotating old ones</span><br /><span style="font-size:85%;">create</span><br /><br /><span style="font-size:85%;"># uncomment this if you want your log files compressed</span><br /><span style="font-size:85%;">#compress</span><br /><br /><span style="font-size:85%;"># RPM packages drop log rotation information into this directory</span><br /><span style="font-size:85%;">include /etc/logrotate.d</span><br /><br /><span style="font-size:85%;"># no packages own wtmp -- we'll rotate them here</span><br /><span style="font-size:85%;">/var/log/wtmp {</span><br /><span style="font-size:85%;"> monthly</span><br /><span style="font-size:85%;"> minsize 1M</span><br /><span style="font-size:85%;"> create 0664 root utmp</span><br /><span style="font-size:85%;"> rotate 1</span><br /><span style="font-size:85%;">}</span><br /><br /><span style="font-size:85%;"># system-specific logs may be also be configured here.</span></blockquote><span style="font-size:85%;"><br /></span>Service or server specific configurations stored in /etc/logrotate.d directory, for example here is sample apache logrotate configuration file:<br /><span style="font-size:85%;"><span style="font-size:100%;">less /etc/logrotate.d/httpd</span><br /><br /><blockquote>/var/log/httpd/*log {<br />monthly<br />rotate 52<br />compress<br />missingok<br />notifempty<br />sharedscripts<br />postrotate<br />/sbin/service httpd reload > /dev/null 2>/dev/null || true<br />endscript<br />}</blockquote><span style="font-size:100%;">Now you need to set a cronjob for the logrotation to run</span>. crontab -e<br /><br /></span><p><code>00 00 * * * /usr/sbin/logrotate -s /home/humanlinux/config/logrotate.status </code></p> <p>Cron ensures that the command runs at midnight everyday. The command has three parts. <code>/usr/sbin/logrotate</code> is the path to logrotate. The <code>-s /home/humanlinux/config/logrotate.status</code> option specifies where logrotate keeps its status information. This file has to be writeable by the user running the cron. </p><br /><span style="font-size:85%;">run the command </span><code>/usr/sbin/logrotate -f </code><span style="font-size:85%;">/etc/logrotate.conf </span>to begin the log rotation<br /><span style="font-size:85%;"><br /><span style="font-size:78%;">Thanks & Regards<br />tell2humanlinux@gmail.com</span><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></span><blockquote></blockquote><br /></div>humanlinuxhttp://www.blogger.com/profile/03340729591318059010noreply@blogger.com2tag:blogger.com,1999:blog-330220044697736088.post-31595918878563672892009-05-23T03:03:00.000-07:002009-05-23T03:16:49.382-07:00How to create a shutdown button on a Linux desktop.<div style="text-align: left;">A shutdown button can be created on a Linux desktop using a single lined script.<br /><br />Open your favorite text editor<br /><br />eg : <span style="font-size:85%;">vi shutdown </span>or<br /> : <span style="font-size:85%;">gedit shutdown</span><br /><br />append the following lines<br /><br /><span style="font-size:85%;">#!/bin/bash<br />poweroff</span><br /><br />save and quit. Move the file location to your desktop<br /><br /><span style="font-size:85%;">chmod 777 shutdown</span><br />chmod +x <span style="font-size:85%;">shutdown</span> (made the file 'shutdown' executable)<br /><br />Now double click on your 'My Computer" icon to open the file browser window.<br /><br />goto <span style="font-size:85%;">Edit-->Preferences-->Behavior-->Run executable text files when they are clicked-->close<br /></span><br />Now you can double click on the 'shutdown' file to shutdown the machine. You can rightclick on it to choose an appropriate icon for the button.<br /><br /></div>humanlinuxhttp://www.blogger.com/profile/03340729591318059010noreply@blogger.com3tag:blogger.com,1999:blog-330220044697736088.post-48754086192366246972009-05-15T19:05:00.000-07:002009-05-15T20:02:59.986-07:00How to assign swap area in Linux to increase speed?<p align="left">We can assign swap area in linux either on a partition or a file.</p><p align="left">I am creating here swap area using a file.</p><p align="left">First we need to create the swap file.</p><p align="left"><span style="font-size:85%;">dd if=/dev/zero of=/swapfile bs=1024 count=2000000</span></p><p align="left">this will create a file 'swapfile' under / of size above 2gb</p><p align="left">Type the following commands :-</p><p align="left"><span style="font-size:85%;">mkswap /swapfile</span></p><p align="left"><span style="font-size:85%;">swapon /swapfile</span></p><p align="left">Now we can add the swap entry on fstab so that on every reboot, system will automatically loads the awap area.</p><p align="left"><span style="font-size:85%;">vi /etc/fstab</span></p><p align="left">append the following line to the bottom</p><p align="left"><span style="font-size:85%;">/swapfile swap swap defaults 0 0</span></p><p align="left">save and quit</p><p align="left">To see the swap usage use the command <span style="font-size:85%;">top</span> </p><p align="left"></p><p align="left"><span style="font-size:78%;">thanks & regards</span></p><p align="left"><span style="font-size:78%;">tell2humanlinux@gmail.com</span></p>humanlinuxhttp://www.blogger.com/profile/03340729591318059010noreply@blogger.com0tag:blogger.com,1999:blog-330220044697736088.post-35708136715387996972009-05-14T04:09:00.000-07:002009-05-14T04:25:35.745-07:00How to reset the lxadmin password?What if the password of lxadmin is lost? <div><br /></div><div>We can reset the lxadmin password using the following commands.</div><div>Login to the server using ssh</div><div><br /></div><div>1) <span class="Apple-style-span" style="font-size: small;">cd /usr/local/lxlabs/lxadmin/httpdocs </span></div><div><br /></div><div>2) <span class="Apple-style-span" style="font-size: small;">/usr/bin/lphp.exe ../bin/common/resetpassword.php master</span></div><div><br /></div><div>3) type your new password.</div><div><br /></div><div>4) After that login to lxadmin at https://xx.xx.xx.xx:7777/ (xx.xx.xx.xx is your server IP address) using username : <span class="Apple-style-span" style="font-size: small;">admin</span> and password : your new password.</div><div><br /></div><div><span class="Apple-style-span" style="font-size: x-small;">thanks & regards</span></div><div><span class="Apple-style-span" style="font-size: x-small;">tell2humanlinux@gmail.com</span></div>humanlinuxhttp://www.blogger.com/profile/03340729591318059010noreply@blogger.com0tag:blogger.com,1999:blog-330220044697736088.post-1728793879703945482009-05-14T04:02:00.000-07:002009-05-14T05:07:17.686-07:00How to put the grub password in linux!In Linux anyone can reset the root password from single usermode . So it is considered as a security fault if the machine is public. There comes the importance of putting the grub password, so that only admin is allowed to login if the machine is rebooted.<br /><br />Here are the steps to put the grub password.<br /><br />1) open the command prompt and type the following commands<br /><br />2) <span style="font-size:85%;">grub</span><br /><br />3) <span style="font-size:85%;">md5crypt</span><br /><br />4) type the password<br /><br />5) copy the encrypted password generated<br /><br />6) Ctrl c<br /><br />7) <span style="font-size:85%;">vi /boot/grub/grub.conf</span><br /><br />8) paste the following line just above the 'title'<br /><br /><span style="font-size:85%;">password --md5</span> "<span style="font-size:85%;">encrypted password here</span>"<br /><br />9) save and quit. Done.<br /><br />I have give the sample grub file here.<br /><br /><span style="font-size:85%;">======================================<br /><br />#boot=/dev/hdb<br />default=0<br />timeout=15<br />splashimage=(hd1,8)/boot/grub/splash.xpm.gz<br />hiddenmenu<br />password --md5 %&mkj89(*$*J)$OO*=*<br /><br />title CentOS (2.6.18-92.el5)<br /> root (hd1,8)<br /> kernel /boot/vmlinuz-2.6.18-92.el5 ro root=LABEL=/ rhgb quiet<br /> initrd /boot/initrd-2.6.18-92.el5.img<br /><br />======================================</span><br /><br /><span style="font-size:78%;">thanks & regards<br />tell2humanlinux@gmail.com</span>humanlinuxhttp://www.blogger.com/profile/03340729591318059010noreply@blogger.com0tag:blogger.com,1999:blog-330220044697736088.post-40750951409261755132009-05-09T15:50:00.000-07:002009-05-11T04:35:57.374-07:00How to install flash player on centos/redhat linux !<div align="left"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_mRjsJ1xLIUg/SgbZRzrsmpI/AAAAAAAAANE/phh9b8yEBu8/s1600-h/firefox.jpg"><img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 320px; height: 240px;" src="http://4.bp.blogspot.com/_mRjsJ1xLIUg/SgbZRzrsmpI/AAAAAAAAANE/phh9b8yEBu8/s320/firefox.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5334189708621421202" /></a>This post can also answer the question " how to fix the firefox error on centos/redhat linux" </div><p align="left">Installing the flash player on centos/redhat linux seems to be very difficult sometimes. But the installation is quite simple :). The flash player may not be installed automatically using firefox. While trying install firefox, you may get the error following error " Firefox could not install this item because "install-0zr..rdf" (provided by the item) is not well-formed or does not exist. Please contact the author about this problem."The Screeshot of error is provided. To fix this issue, you need to upgrade/install certain libraries using yum. I have mentioned the commands below.</p><p align="left">1. First you need to install those libraries (.i386 and .x86_64):</p><p align="left"><span style="font-size:85%;">yum install curl compat-libstdc++-33 glibc nspluginwrapper</span></p><p align="left">2. Once done with the libraries, we need to download the flash player rpm.</p><p align="left"><span style="font-size:85%;">mkdir flash</span></p><p align="left"><span style="font-size:85%;">cd flash</span></p><p align="left">download the rpm inside the folder flash.</p><p align="left">click here to <a href="http://get.adobe.com/flashplayer/">Download</a></p><p align="left">3. Next we need to execute the command below to install the rpm. This command should be executed inside the folder, where the rpm is downloaded. Ours is in the folder 'flash'.</p><p align="left"><span style="font-size:85%;">rpm -ivh flash-plugin-10.0.12.36-release.i386.rpm</span></p><p align="left">(replace with the version of rpm you have downloaded)</p><p align="left">4. Close the Firefox and restart it. You should be able to see the flashes hereafter.</p><p align="left"><span style="font-size:78%;">thanks & regards</span></p><p align="left"><span style="font-size:78%;">tell2humanlinux@gmail.com</span></p>humanlinuxhttp://www.blogger.com/profile/03340729591318059010noreply@blogger.com20tag:blogger.com,1999:blog-330220044697736088.post-42294202901203338872009-05-07T15:20:00.001-07:002009-05-10T05:38:23.800-07:00How to browse files in an ISO image?<div class="thecontent"> <!-- google_ad_section_start --> <p></p><p style="text-align: left;"></p><p style="text-align: left;">Its always easy to do things using the command lines in Linux. To browse files of an ISO image is an easy task in Linux. Open a terminal window and type in the following commands.</p><p style="text-align: left;"><span class="Apple-style-span" style="font-size: small;">sudo mkdir /media/iso</span></p><p style="text-align: left;"><span class="Apple-style-span" style="font-size: small;">sudo modprobe loop</span></p><p style="text-align: left;"><span class="Apple-style-span" style="font-size: small;">sudo mount filename.iso /media/iso -t iso9660 -o loop</span></p><p style="text-align: left;"><span class="Apple-style-span" style="font-size: small;">cd /media/iso</span></p><p style="text-align: left;">Hereafter you will be able to navigate to the /media/iso folder and see the contents of the ISO image. To unmount the ISO, use the following command:</p><p style="text-align: left;"><span class="Apple-style-span" style="font-size: small;">sudo umount /media/iso</span><br /></p><p style="text-align: left;">I will explain the commands and options used specificly:<br /></p><p style="text-align: left;"><span class="Apple-style-span" style="font-size: small;">sudo modprobe loop</span> ->loads/ installs the module for loopback file system support<br /></p><p style="text-align: left;"><span class="Apple-style-span" style="font-size: small;">iso9660</span> -> the file system used by CD roms<br /></p><p style="text-align: left;"><span class="Apple-style-span" style="font-size: small;">-t </span> -> specify the file system type<br /></p><p style="text-align: left;"><span class="Apple-style-span" style="font-size: small;">-o loop</span> -> for additional options while using a loopback filesystem<br /></p><p style="text-align: left;"><br /></p><p style="text-align: left;"><span class="Apple-style-span" style="font-size: x-small;">thanks & regards<br /></span></p><p style="text-align: left;"><span class="Apple-style-span" style="font-size: x-small;">tell2humanlinux@gmail.com</span></p><p></p><p></p></div>humanlinuxhttp://www.blogger.com/profile/03340729591318059010noreply@blogger.com0tag:blogger.com,1999:blog-330220044697736088.post-45757851075970979662009-05-07T14:24:00.000-07:002009-05-07T14:34:34.104-07:00How to change the default text editor in ubuntu!<div style="text-align: left;">In ubuntu , the default text editor for editing the configuration files may be nano. For eg: to set a cronjob <span style="font-size:85%;">crontab -e</span> , the configuration file opens up with the nano text editor. But we can set the default text editor as our favourite editor by using a simple command.<br /><br /><span style="font-size:85%;">update-alternatives -- config editor</span><br /><br />once this command is entered, it asks to enter the no: of our favourite editor. eg:<br /><br /><span style="font-size:85%;">humanlinux@localhost:~# update-alternatives --config editor</span><br /><br /><span style="font-size:85%;">======================================</span><br /><br /><span style="font-size:85%;">There are 3 alternatives which provide `editor'.</span><br /><br /><span style="font-size:85%;"> Selection Alternative</span><br /><span style="font-size:85%;">-----------------------------------------------</span><br /><span style="font-size:85%;"> 1 /usr/bin/vim.tiny</span><br /><span style="font-size:85%;"> 2 /bin/ed</span><br /><span style="font-size:85%;">*+ 3 /bin/nano</span><br /><span style="font-size:85%;">======================================</span><br /><br /><span style="font-size:85%;"><span style="font-size:100%;">Just enter the corresponding no: of your favourite editor.</span></span><br /><span style="font-size:85%;"><span style="font-size:100%;">Here i have choosed 1.</span></span><br /><br /><span style="font-size:85%;">======================================</span><br /><span style="font-size:85%;">Press enter to keep the default[*], or type selection number: 1</span><br /><span style="font-size:85%;">Using '/usr/bin/vim.tiny' to provide 'editor'.</span><br /><span style="font-size:85%;">======================================</span><br /><br /><span style="font-size:85%;"><span style="font-size:78%;">thanks & regards</span></span><br /><span style="font-size:85%;"><span style="font-size:78%;">tell2humanlinux@gmail.com</span></span><br /></div>humanlinuxhttp://www.blogger.com/profile/03340729591318059010noreply@blogger.com0tag:blogger.com,1999:blog-330220044697736088.post-2689226978336572212009-05-05T01:15:00.000-07:002009-05-05T01:44:54.174-07:00how to install csf in ubuntu / linux servers!<div style="text-align: left;"><span style="font-weight: bold;">CSF instllation in ubuntu / linux servers!</span><br /><br />CSF is a firewall that can be installed on linux based severs to enhance the security. It can be installed even on a server based on cPanel. It can be configured to find out hacking attempts through ssh etc. Can be used for ip whitelisting and blacklisting.<br /><br />The csf instllation is quite easy. Just follow the documentation I have given below.<br /><br />1)Create a folder 'csf'<br /><br /><span style="font-size:85%;">mkdir csf<br />cd csf</span><br /><br /><br />2)Download the csf into this directory and instal.<br /><br /><span style="font-size:85%;">wget http://www.configserver.com/free/csf.tgz<br />tar -xzf csf.tgz<br />cd csf<br />sh install.sh<br /></span><br />3)Now we need to test whether we have the required iptables modules in the system<br /><br /><span style="font-size:85%;">perl /etc/csf/csftest.pl</span><br /><br />you may get a result like this<br /><span style="font-size:85%;">======================================================================================<br />root@humanlinux-desktop:/home/hlinux/Downloads/csf/csf# perl /etc/csf/csftest.pl<br />Testing ip_tables/iptable_filter...OK<br />Testing ipt_LOG...OK<br />Testing ipt_multiport/xt_multiport...OK<br />Testing ipt_REJECT...OK<br />Testing ipt_state/xt_state...OK<br />Testing ipt_limit/xt_limit...OK<br />Testing ipt_recent...OK<br />Testing ipt_owner...OK<br />Testing iptable_nat/ipt_REDIRECT...OK<br /><br />RESULT: csf should function on this server<br />=======================================================================================<br /></span><br /><br />Don't worry if you cannot run all the features, so long as the script doesn't<br />report any FATAL errors<br /><br />4)You should not run any other iptables firewall configuration script. For<br />example, if you previously used APF+BFD you can remove the combination (which<br />you will need to do if you have them installed otherwise they will conflict<br />horribly):<br /><br /><span style="font-size:85%;">sh /etc/csf/remove_apf_bfd.sh</span><br /><br />5)That's it. You can then configure csf and lfd by edit the files<br />directly in /etc/csf/*, or on cPanel servers use the WHM UI<br /><br />csf installation for cPanel is preconfigured to work on a cPanel server with all<br />the standard cPanel ports open.<br /><br />csf installation for DirectAdmin is preconfigured to work on a DirectAdmin<br />server with all the standard DirectAdmin ports open.<br /><br />csf auto-configures your SSH port on installation where it's running on a non-<br />standard port.<br /><br />csf auto-whitelists your connected IP address where possible on installation.<br /><br />You should ensure that kernel logging daemon (klogd) is enabled. Typically, VPS<br />servers have this disabled and you should check /etc/init.d/syslog and make<br />sure that any klogd lines are not commented out. If you change the file,<br />remember to restart syslog.<br /><br />See the readme.txt file for more information.<br /><br /><span style="font-weight: bold;">Webmin Module Installation/Upgrade:-</span><br /><br />To install or upgrade the csf webmin module:<br /><br />Install csf as above<br />Install the csf webmin module in:<br /> Webmin > Webmin Configuration > Webmin Modules ><br /> From local file > /etc/csf/csfwebmin.tgz > Install Module<br /><br /><br /><span style="font-weight: bold;">Uninstallation of CSF :( :-</span><br /><br />Removing csf and lfd is even more simple:<br /><br />On cPanel servers:<br /><span style="font-size:85%;"><br />cd /etc/csf<br />sh uninstall.sh<br /></span><br />On DirectAdmin servers:<br /><span style="font-size:85%;"><br />cd /etc/csf<br />sh uninstall.directadmin.sh<br /></span><br />On generic linux servers:<br /><br /><span style="font-size:85%;">cd /etc/csf<br />sh uninstall.generic.sh<br /></span><br /><br />un-installation Completed<br /><span style="font-size:85%;"><br />ref: http://www.configserver.com/free/csf/install.txt</span><br /><span style="font-size:78%;"><br />thanks & regards<br />tell2humanlinux@gmail.com<br /></span><br /><br /><br /></div>humanlinuxhttp://www.blogger.com/profile/03340729591318059010noreply@blogger.com11tag:blogger.com,1999:blog-330220044697736088.post-36515824066625060062009-05-03T21:01:00.000-07:002009-05-03T21:18:37.627-07:00Baseline Monitoring for troubleshooting in Linux!The Baseline Monitoring is useful in :-<div><br /></div><div><ul><li>troubleshooting<br /></li><li>essential for healthy systems<br /></li><li>help plan for further growth<br /></li><li>can aide with security<br /></li></ul><br /></div><div>A good baseline monitoring of systems is very helpful in troubleshooting. A good baseline of system activity and use can be used to compare when a system appears to be behaving erretically, or more activity to report when a system is operating outside of specified parametres.</div><div><br /></div><div>It can aslo be used to tighten the security. As we can build up trends for our systems and networks over time, using these we can more easily spot events outside of the norm which could be attempts to gain access to our systems or a rogue system already under the control of external influences.</div><div><br /></div><div>Deciding what to monitor is very dependant on the work that a system does. For database servers or file servers then disk space, service availability and load might be important. For a desktop system we might justcheck to see that its up and running.</div><div><br /></div><div>Data gained from longer monitoring can be used outside of the purely technical. We can use it to measure the growth of system load over time, and to predict when a new server of file store might be required. We can use to how improvements made are impacting service availability and therefore helping work flow and numerous others.</div><div><br /></div><div><span class="Apple-style-span" style="font-size:x-small;">thanks & regards </span></div><div><span class="Apple-style-span" style="font-size:x-small;">tell2humanlinux@gmail.com</span></div>humanlinuxhttp://www.blogger.com/profile/03340729591318059010noreply@blogger.com4tag:blogger.com,1999:blog-330220044697736088.post-61554067090945358042009-05-03T20:52:00.000-07:002009-05-03T20:57:20.877-07:00Get free Ubuntu stickers ! :)<div>Get ubuntu stickers for free! All you need to do is to mail a self addressed stamped envelope to your local address: The addresses for different countries are give here!</div><div><br /></div><div><span class="Apple-style-span" style="font-weight: bold;">Argentina</span></div><div><br /></div><div>Ubuntu Sticker Offer</div><div>Av. Maipu 2259 PB C</div><div>ZIP: 1636</div><div>Buenos Aires</div><div>Argentina</div><div><br /></div><div>Thanks to the Ubuntu Argentina Team!</div><div><br /></div><div><br /></div><div><br /></div><div><span class="Apple-style-span" style="font-weight: bold;">Australia</span></div><div><br /></div><div>Sticker Offer</div><div>P.O Box 1412</div><div>Lavington, NSW 2641</div><div><br /></div><div>Thanks to the Ubuntu Australia Team!</div><div><br /></div><div><br /></div><div><br /></div><div><span class="Apple-style-span" style="font-weight: bold;">Belgium</span></div><div><br /></div><div>Powered by Ubuntu - stickers </div><div>p/a Lange Vesting 100</div><div>8200 Brugge</div><div>Belgium</div><div><br /></div><div>Thanks to the Ubuntu Belgium Team!</div><div><br /></div><div><br /></div><div><br /></div><div><span class="Apple-style-span" style="font-weight: bold;">Bolivia</span></div><div><br /></div><div>Rolando Espinoza La Fuente</div><div>Calle 16 de Julio #424 / Zona Central </div><div>Cochabamba, Cochabamba</div><div>Bolivia</div><div><br /></div><div>Thanks to the Bolivian Ubuntu LoCo Team!</div><div><br /></div><div><br /></div><div><span class="Apple-style-span" style="font-weight: bold;"><br /></span></div><div><span class="Apple-style-span" style="font-weight: bold;">Brazil</span></div><div><br /></div><div>Comunidade UbuntuBR</div><div>A/C Etiquetas Ubuntu</div><div>Av. Rui Barbosa, 2095 cj63</div><div>Santana - Sao Jose dos Campos/SP</div><div>CEP: 12211-000</div><div><br /></div><div>Thanks to the Ubuntu Brazil Team!</div><div><br /></div><div><br /></div><div><br /></div><div><span class="Apple-style-span" style="font-weight: bold;">Canada</span></div><div><br /></div><div>Ubuntu Sticker Offer</div><div>2448 Cadboro Bay Rd.</div><div>Victoria BC</div><div>V8S 4C1</div><div>Canada</div><div><br /></div><div>Thanks to the Ubuntu Canada Team!</div><div><br /></div><div><span class="Apple-style-span" style="font-weight: bold;"><br /></span></div><div><span class="Apple-style-span" style="font-weight: bold;">Chile</span></div><div><br /></div><div>Stickers Ubuntu Chile</div><div>Arlegui #573 E-11</div><div>Viña del Mar</div><div>CHILE</div><div><br /></div><div>Thanks to the Ubuntu Chile Team!</div><div><br /></div><div><br /></div><div><br /></div><div><span class="Apple-style-span" style="font-weight: bold;">Colombia</span></div><div><br /></div><div>Javier A Miranda R </div><div>Carrera 118Bis N°89A-26</div><div>Int. 4, Apto. 102 </div><div>Bogota, DC -111011</div><div>COLOMBIA</div><div><br /></div><div>Thanks to the Colombian Ubuntu Team!</div><div><br /></div><div><br /></div><div><br /></div><div><span class="Apple-style-span" style="font-weight: bold;">France</span></div><div><br /></div><div>Ubuntu-Sticker</div><div>105, rue de l'Ourcq</div><div>75019 Paris</div><div>France</div><div><br /></div><div>http://www.ubuntu-fr.org/contact</div><div><br /></div><div>Thanks to the French Ubuntu Team!</div><div><br /></div><div><br /></div><div><br /></div><div><span class="Apple-style-span" style="font-weight: bold;">Germany</span></div><div><br /></div><div>http://ubuntu.kamerastars.de</div><div><br /></div><div>Thanks to the German Ubuntu Team!</div><div><br /></div><div><br /></div><div><br /></div><div><span class="Apple-style-span" style="font-weight: bold;">Hungary</span></div><div><br /></div><div>Ubuntu Hungarian LoCo Team</div><div>ORY Mate</div><div>H-1163 Budapest</div><div>Gordonka u. 32.</div><div>Hungary</div><div><br /></div><div>Thanks to the Hungarian Ubuntu Team!</div><div><br /></div><div><br /></div><div><br /></div><div><span class="Apple-style-span" style="font-weight: bold;">India</span></div><div><br /></div><div>Baishampayan Ghose</div><div>214/4, Sher-e-Punjab Society</div><div>Andheri (E), Mumbai --- 93</div><div>India</div><div><br /></div><div>Thanks to the Ubuntu Indian LoCo Team!</div><div><br /></div><div><br /></div><div><br /></div><div><span class="Apple-style-span" style="font-weight: bold;">Italy</span></div><div><br /></div><div>Palma Salvatore</div><div>Via Magna Grecia, 14</div><div>87029 Scalea (CS)</div><div>Italy</div><div><br /></div><div>Thanks to the Italian Ubuntu LoCo Team!</div><div><br /></div><div><br /></div><div><br /></div><div><span class="Apple-style-span" style="font-weight: bold;">Mexico</span></div><div><br /></div><div>Stickers Ubuntu</div><div>Avenida Adolfo Lopez Mateos Condominio 1 Casa 41</div><div>Fraccionamiento Rancho San Lucas</div><div>Metepec, Mexico</div><div>CP: 52172</div><div><br /></div><div>Thanks to the Mexican Ubuntu LoCo Team!</div><div><br /></div><div><br /></div><div><br /></div><div><span class="Apple-style-span" style="font-weight: bold;">Netherlands</span></div><div><br /></div><div>Ubuntu Stickers</div><div>Hyacintstraat 13</div><div>4587 AV Kloosterzande</div><div>The Netherlands</div><div><br /></div><div>Thanks to the Dutch Ubuntu Team!</div><div><br /></div><div><br /></div><div><span class="Apple-style-span" style="font-weight: bold;"><br /></span></div><div><span class="Apple-style-span" style="font-weight: bold;">New Zealand</span></div><div><br /></div><div>Ian Beardslee c/o C/- Catalyst IT </div><div>PO Box 11053</div><div>Manners St</div><div>Wellington New Zealand</div><div><br /></div><div>Thanks to the New Zealand Ubuntu Team!</div><div><br /></div><div><br /></div><div><span class="Apple-style-span" style="font-weight: bold;"><br /></span></div><div><span class="Apple-style-span" style="font-weight: bold;">Norway</span></div><div><br /></div><div>Ubuntu Stickers Scandinavia</div><div>c/o FreeCode AS </div><div>Nydalsveien 30 B </div><div>0484 OSLO</div><div><br /></div><div>Thanks to the Norwegian Ubuntu Team!</div><div><br /></div><div><br /></div><div><br /></div><div><span class="Apple-style-span" style="font-weight: bold;">Peru</span></div><div><br /></div><div>Gonzalo L. Campos Medina</div><div>Av. Peru K-134 / Urb. Garibaldi</div><div>ILO, ILO</div><div>PERU</div><div><br /></div><div>Thanks to the Peruvian Ubuntu Team!</div><div><br /></div><div><br /></div><div><br /></div><div><span class="Apple-style-span" style="font-weight: bold;">Serbia</span></div><div><br /></div><div>Ivan Jelic</div><div>Bore Stefanovica 2/1</div><div>36000 Kraljevo</div><div>Serbia</div><div><br /></div><div>Thanks to the Serbian Ubuntu Team!</div><div><br /></div><div><br /></div><div><br /></div><div><span class="Apple-style-span" style="font-weight: bold;">Switzerland</span></div><div><br /></div><div>Pro-OpenSource</div><div>Stichwort: Ubuntu-Stickers</div><div>c/o Ruben Richiger</div><div>Dietlistrasse 2</div><div>9000 St. Gallen</div><div><br /></div><div>Thanks to the Swiss Ubuntu Team! </div><div><br /></div><div><br /></div><div><br /></div><div><span class="Apple-style-span" style="font-weight: bold;">Tunisia</span></div><div><br /></div><div>Ubuntu Stickers</div><div>B.P. 57 Monastir République</div><div>5060 Monastir</div><div>Tunisie</div><div><br /></div><div>Thanks to the Tunisian Ubuntu Team! </div><div><br /></div><div><br /></div><div><br /></div><div><span class="Apple-style-span" style="font-weight: bold;">Turkey</span></div><div><br /></div><div>Atila Sendil</div><div>TUPRAS Gn.Md.</div><div>Bilgi Sistemleri Md.</div><div>Korfez / Kocaeli</div><div><br /></div><div>Thanks to the Turkish Ubuntu Team!</div><div><br /></div><div><br /></div><div><br /></div><div><span class="Apple-style-span" style="font-weight: bold;">United Kingdom</span></div><div><br /></div><div>The Linux Emporium</div><div>Bridge House</div><div>17a Maybrook Road</div><div>Sutton Coldfield</div><div>Birmingham</div><div>B76 1AL UK</div><div><br /></div><div>Thanks to the United Kingdom Ubuntu Team!</div><div><br /></div><div><br /></div><div><span class="Apple-style-span" style="font-weight: bold;">United States</span></div><div><br /></div><div>System76, Inc. (Free Stickers)</div><div>1582 S. Parker Rd. Ste. 310</div><div>Denver, Colorado 80231</div><div><br /></div><div><br /></div><div><span class="Apple-style-span" style="font-weight: bold;">Venezuela</span></div><div><br /></div><div>Nathalie Colina</div><div>Calle Dabajuro</div><div>Casa # 4</div><div>Urbanizacion El Señorial</div><div>Puerta Maraven </div><div>Punto Fijo, Estado Falcón</div><div>Venezuela</div><div><br /></div><div>Thanks to the Venezuelan Ubuntu Team!</div><div><br /></div><div><span class="Apple-style-span" style="font-size: small;">ref:http://system76.com/article_info.php?tPath=3&articles_id=9&osCsid=5f9879db81c873e7a8e169de0963010a</span></div><div><br /></div><div><span class="Apple-style-span" style="font-size: x-small;">thanks & regards </span></div><div><span class="Apple-style-span" style="font-size: x-small;">tell2humanlinux@gmail.com</span></div><div><br /></div>humanlinuxhttp://www.blogger.com/profile/03340729591318059010noreply@blogger.com0tag:blogger.com,1999:blog-330220044697736088.post-60947094863549473362009-04-30T05:37:00.000-07:002009-05-02T01:50:16.228-07:00How to monitor a system remotely using conky?<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_mRjsJ1xLIUg/SfmdyNwsQUI/AAAAAAAAAMU/O0_zSviGXoU/s1600-h/conky.png"><img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 320px; height: 200px;" src="http://4.bp.blogspot.com/_mRjsJ1xLIUg/SfmdyNwsQUI/AAAAAAAAAMU/O0_zSviGXoU/s320/conky.png" alt="" id="BLOGGER_PHOTO_ID_5330465119982600514" border="0" /></a><br /><div style="text-align: justify;"><span style="font-weight: bold;">How to monitor a linux machine remotely using conky or just an "easy way"!</span><br /><br />Here are the steps to remotely monitor a linux machine using conky. The example here is done on an Ubuntu Box.<br /><br />1)Install conky on the system(remote server/system) you need to monitor<br /> <br /><span style="font-size:85%;">sudo apt-get install conky</span> <br /><br />2)Then install the "xauth" program onto the system(remote server/system) tunneling X (file server)<span style="font-size:85%;"><span style="font-weight: bold;"><br /><br /></span></span><span style="font-size:85%;"> <span>sudo apt-get install xauth</span></span><br /><br />3)Then we have to edit the ssh server side file /etc/ssh/sshd_config and make sure "<span style="font-size:85%;"><span>X11Forwarding yes</span></span>" is enabled<br /><br />4)Then from your local system , you can log into the remote system via SSH with the -X flag. Example:<br /><br /><span style="font-size:85%;"><span style="font-weight: bold;"> </span><span>ssh -X username@192.168.1.100</span></span><br /><br />the user name should be the user of the (remote server/system)<br /><br />5)once you are logged-in to the remote system, just type <span style="font-size:85%;"><span>conky</span></span> on the command prompt. You will be able to see the services like:-<br /><br /><ul><li>uptime</li><li>frequency</li><li>RAM usage</li><li>SWAP usage</li><li>CPU usage</li><li>Processes</li><li>File systems:</li><li>Networking:</li><li>and currently running processes of the remote system</li></ul>All in GUI on your local system. Happy Monitoring :)<br /><br /><br /><span style="font-size:78%;">thanks & regards<br />tell2humanlinux@gmail.com</span><br /></div>humanlinuxhttp://www.blogger.com/profile/03340729591318059010noreply@blogger.com7tag:blogger.com,1999:blog-330220044697736088.post-33154710981479082582009-04-30T01:54:00.000-07:002009-04-30T02:08:35.151-07:00Fixing Opera error in Ubuntu!<p>Is your Opera browser not working on your ubuntu desktop?. Then this post may help you.</p><p>In some cases when we click on the opera icon , it wont respond. And if we type 'opera' in the terminal it shows the following error.</p><p><span style="font-size:85%;"><strong>human@localhost:~$ opera </strong></span><span style="font-size:85%;"><strong><br /></strong></span></p><span style="font-size:85%;"><strong>ERROR: ld.so: object 'libjvm.so' from LD_PRELOAD cannot be preloaded: ignored.</strong></span><span style="font-size:85%;"><strong><br /></strong></span><span style="font-size:85%;"><strong>ERROR: ld.so: object 'libawt.so' from LD_PRELOAD cannot be preloaded: ignored.</strong></span><span style="font-size:85%;"><strong><br /></strong></span><span style="font-size:85%;"><strong>/home/human/lib/opera/9.64/opera: error while loading shared libraries: libqt-mt.so.3: cannot open shared object file: No such file or directory</strong></span><strong><br /></strong><strong><br /></strong><br />This happens when some libraries get corrupted ,broken or missing.To fix this just do the following steps.<br /><br /><p>1)human@localhost:~# <span style="font-size:85%;"><strong>sudo apt-get install libqt3-mt</strong></span></p><p>If you get the following message</p><p><span style="font-size:85%;">"You might want to run `apt-get -f install' to correct these:</span></p><p><span style="font-size:85%;">The following packages have unmet dependencies:</span></p><p><span style="font-size:85%;"> libqt3-mt: Depends: libaudio2 but it is not going to be installed</span><span style="font-size:85%;"><br /></span></p><span style="font-size:85%;">E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution)."</span><br /><br /><br />2)then execute the following comand<br />human@localhost:~# <strong><span style="font-size:85%;">sudo apt-get -f install</span></strong><br /><p>It will automatically install the needed packages and the issue must be fixed by now.<br /></p><p><span style="font-size:78%;">thanks & regards</span></p><p><span style="font-size:78%;">tell2humanlinux@gmail.com</span></p>humanlinuxhttp://www.blogger.com/profile/03340729591318059010noreply@blogger.com0tag:blogger.com,1999:blog-330220044697736088.post-43787687467310193252009-04-26T13:43:00.000-07:002009-05-02T01:50:51.916-07:00How to install AIDE?<div style="text-align: justify;"><span class="Apple-style-span" style="font-weight: bold;">What is AIDE:-</span></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><span class="Apple-style-span" style="font-weight: bold;">AIDE</span> (Advanced Intrusion Detection Environment) is an intrusion detection program. It is a free replacement for Tripwire.It can find out any changes made on the system binaries, libraries, header files , and configuration files etc by "comparing" regularly with the database of these files which was made at the time of its instllation.</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><span class="Apple-style-span" style="font-weight: bold;">How Does AIDE works:-</span></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Once AIDE is installed, It creates a database of the files specified in AIDE’s configuration file. The AIDE database stores various file attributes like permissions, inode number, user, group, file size, mtime and ctime, atime, growing size, number of links and link name. AIDE also creates a cryptographic checksum or hash of each file using message digest algorithms like sha, md5, rmd160, tiger etc. Also acl, xattr and selinux can be used if enabled during compile time.This databse is created before the server/system is bought into the network.The AIDE should be installed to the system before it is exposed to the internet.</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">So Initially the administrator need to create an AIDE database on a new server before it is setup for networking eg hosting.This AIDE database is an excat summary of the Linux system before it is bought into the network.This database(db) will hold information about system binaries, libraries, header files etc that are expected to remain the same throughout.Suppose someone has broken-into the system, though it is easier to manipulate file dates, sizes etc, it will be quite difficult for him to manipulate cryptographic checksum like md5. Thus by rerunning AIDE after a break-in, the administrator can quickly identify changes to files with high degree of accuracy.</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><span class="Apple-style-span" style="font-weight: bold;">How to Install AIDE in UBUNTU?</span></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">1)You need the root access to install AIDE:- <span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-style: italic;">sudo su -</span></span></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">2)Install These prerequisites (packages) for AIDE:</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">GCC compiler for C : <span class="Apple-style-span" style="font-style: italic;"><span class="Apple-style-span" style="font-size:small;">apt-get install gcc byacc</span></span></div><div style="text-align: justify;">GNU Flex :<span class="Apple-style-span" style="font-size:small;"> <span class="Apple-style-span" style="font-style: italic;">apt-get install flex</span></span></div><div style="text-align: justify;">GNU Bison <span class="Apple-tab-span" style="white-space: pre;"> </span> : <span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-style: italic;">apt-get install bison</span></span></div><div style="text-align: justify;">GNU Make : <span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-style: italic;">apt-get install make</span></span></div><div style="text-align: justify;">Mhash library : <span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-style: italic;">apt-get install libmhash2 libmhash-dev</span></span></div><div style="text-align: justify;">PostgreSQL Development Library : <span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-style: italic;">apt-get install postgresql-server-dev-8.3<br /></span></span></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Some of the above packages maybe already installed on your box, in that case when you execute the above commands it shows " 0 upgraded".so need not worry about that packages.</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Or else you can check manually whether the packages are installed or not by using the follawing command: <span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-style: italic;">dpkg –get-selections </span><span class="Apple-style-span">| </span><span class="Apple-style-span" style="font-style: italic;">grep gcc</span></span></div><div style="text-align: justify;"><span class="Apple-style-span" style="font-size: medium;"><br /></span></div><div style="text-align: justify;">If the result is : gcc-4.3 install<br /></div><div style="text-align: justify;">then gcc is installed otherwise if you get no output ,then it means that gcc is not installed.</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><div style="text-align: justify;">3)Once all the packages are installed then download aide from <a href="http://sourceforge.net/projects/aide">here</a> . The downloaded packaege will be zipped in tar.</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">4)Create a folder 'downloades' and extract the tar achieve into this folder using the command: <span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-style: italic;">tar -xzvf aide-x.xx.x.tar.gz</span></span> (replace x with version number)</div><div style="text-align: justify;">Now you wil get the folder aide-x.xx.x </div><div style="text-align: justify;">goto that folder by: <span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-style: italic;">cd aide-x.xx.x</span></span></div><div style="text-align: justify;">Then execute the following commands :<br /><br /></div><div style="text-align: justify;"><span class="Apple-style-span" style="font-style: italic;font-size:85%;" >./configure</span><br /></div><div style="text-align: justify;"><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-style: italic;">make</span></span></div><div style="text-align: justify;"><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-style: italic;">make install</span></span></div><div style="text-align: justify;"><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-style: italic;">make clean</span></span></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">5)NOw you need to open the aide configuration file and determine the location where the aide database is stored. Go to that location</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">6)To initialise the database perform:</div><div style="text-align: justify;"><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-style: italic;">aide -i</span></span></div><div style="text-align: justify;"><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-style: italic;">mv aide.db.new aide.db</span></span></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">7)Now we can check wether the AIDE works by using the following command:-</div><div style="text-align: justify;"> aide</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">8)Configuration of AIDE</div><div style="text-align: justify;">AIDE has its config file located inside (if installed via package management software like synaptic, config file is /etc/aide/aide.conf) /usr/local/etc/aide.conf .</div><div style="text-align: justify;">And it’s default executable is located inside /usr/local/bin/aide.</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">9)Explanation of the aide.conf file</div><div style="text-align: justify;"><span class="Apple-style-span" style="font-size: small;">database=file:/var/lib/aide/aide.db</span></div><div style="text-align: justify;">location of the database to be read (This is the database taken as benchmark)</div><div style="text-align: justify;"><span class="Apple-style-span" style="font-size: small;">database_new=file:/var/lib/aide/aide.db.comp</span></div><div style="text-align: justify;">location of the database for –compare is read (This is not present by default and is used only when we have to compare two distinct databases.)</div><div style="text-align: justify;"><span class="Apple-style-span" style="font-size: small;">database_out=file:/var/lib/aide/aide.db.new</span></div><div style="text-align: justify;">location of the database to be written</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">10)Useful Commands</div><div style="text-align: justify;"><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-style: italic;">aide -C</span></span> : Performs a check on the filesystem ? (also same as: aide)</div><div style="text-align: justify;"><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-style: italic;">aide -i</span></span> : Initialises or creates the benchmark database supplied by database_out directive (here it is aide.db.new)</div><div style="text-align: justify;"><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-style: italic;">aide -u -c /etc/aide.conf</span></span> : update the database and use the specified config file</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">11)Usage</div><div style="text-align: justify;">Before putting one’s server into the network, the admin will have to save a secure configuration of the system by:</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-style: italic;">aide -i</span></span></div><div style="text-align: justify;"><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-style: italic;">mv aide.db.new aide.db</span></span></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">The second command transfers the server’s earlier state(aide.db database) with the new one(aide.db.new). So be careful when you do this. It is advisable to keep a backup of the earlier database.</div><div style="text-align: justify;">Next time in-order to check for any break-in perform</div><div style="text-align: justify;"><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-style: italic;">aide </span></span></div><div style="text-align: justify;">or</div><div style="text-align: justify;"><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-style: italic;">aide -C</span></span></div><div style="text-align: justify;">To compare the current database with some earlier backed-up database, give the path of the backed-up database to database_new option in aide.conf and perform:</div><div style="text-align: justify;"><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-style: italic;">aide –compare</span></span></div><div style="text-align: justify;">The task of saving the old database and comparing with a new one has to be done periodically (preferably daily with the help of a cron task).</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><div style="text-align: justify;">Reference Links</div><div style="text-align: justify;">http://www.cs.tut.fi/~rammer/aide.html</div><div style="text-align: justify;">http://supportsages.com/blog</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><span class="Apple-style-span" style="font-size: small;">thanks & regards</span></div><div style="text-align: justify;"><span class="Apple-style-span" style="font-size: small;">tell2humanlinux@gmail.com</span></div><div style="text-align: justify;"><br /></div></div><div style="text-align: justify;"><span class="Apple-style-span" style="font-style: italic;font-size:100%;" ><div style="text-align: justify;"><span class="Apple-style-span" style="font-style: normal;"><br /></span></div></span></div></div>humanlinuxhttp://www.blogger.com/profile/03340729591318059010noreply@blogger.com0tag:blogger.com,1999:blog-330220044697736088.post-41192507166404267322009-04-22T12:50:00.000-07:002009-05-02T01:50:51.916-07:00Antivirus For Linux!<div style="text-align: justify;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_mRjsJ1xLIUg/Se-Ct_bQz8I/AAAAAAAAAMM/yk897dd_HXw/s1600-h/img2.png"><img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 200px; height: 200px;" src="http://1.bp.blogspot.com/_mRjsJ1xLIUg/Se-Ct_bQz8I/AAAAAAAAAMM/yk897dd_HXw/s200/img2.png" alt="" id="BLOGGER_PHOTO_ID_5327620610834091970" border="0" /></a><br />These days I was dealing with some security related packages. I had gone through the changes to be made on IPTABLE to enhance the firewall, and a little bit about SELinux.I came to know about ClamAV, an anti-virus package for Linux..<br /><br /><span style="font-weight: bold;">Clam AntiVirus (ClamAV)</span> is a free, cross-platform antivirus software tool-kit. One of its main uses is on mail servers as a server-side email virus scanner. The application was developed for Unix and has third party versions available for AIX, BSD, HP-UX, Linux, Mac OS X, OpenVMS, OSF and Solaris.<br /><br /><br /><span style="font-weight: bold;">ClamAv has the following features!</span><br /><br /></div><ol style="text-align: justify;"><li>a command line scanner</li><li>automatic database updater</li><li>scalable multi-threaded daemon</li><li>running on an anti-virus engine from a shared library</li><li>a Milter interface for sendmail</li><li>on-demand scanning</li><li>supports many document formats, including Microsoft Office, HTML, Rich Text Format and Portable Document Format.</li><li>It also support for Zip, RAR, Tar, Gzip, Bzip2, OLE2, Cabinet, CHM, BinHex, SIS formats, most mail file formats, ELF executables and Portable Executable files compressed with UPX, FSG, Petite, NsPack, wwpack32, MEW, Upack and obfuscated with SUE, Y0da Cryptor.<br /></li></ol><div style="text-align: justify;"><br />The ClamAV virus database is updated several times each day and as of 25 December 2008 contained 479,371 virus signatures.<br /><br />Latest Stable Release:<br /><br />Latest ClamAV® stable release is: 0.95.1<br />Total number of signatures: 545288<br />ClamAV Virus Databases:<br />main.cvd ver. 50 released on 15 Feb 2009 16:47 :0500<br />daily.cvd ver. 9274 released on 22 Apr 2009 13:17 :0400 <span style="font-size:78%;">(on 04/23/09)</span><br /><br />Download the production quality stable release <a href="http://sourceforge.net/project/downloading.php?groupname=clamav&filename=clamav-0.95.1.tar.gz&use_mirror=biznetnetworks">here</a><br /><br />Download the latest virus database:<br /><br /><a href="http://db.local.clamav.net/main.cvd">main.cvd</a> ver. 50 released on 15 Feb 2009 16:47 :0500<br /><a href="http://db.local.clamav.net/daily.cvd">daily.cvd</a> ver. 9274 released on 22 Apr 2009 13:17 :0400<br /><br /><span style="font-weight: bold;">How to install clamAV in Debain </span><span style="font-weight: bold;">?</span><br /><br />The Debian packages are maintained by Stephen Gran. ClamAV has been officially included in the Debian distribution starting from the sarge release. Run <em>apt-cache search clamav</em> to find the name of the packages available for installation.<br /><br />You can also use one of the Debian volatile repositories to keep your ClamAV installation updated on your system.<br /></div><p style="text-align: justify;"> Always choose the mirror near to you.<br />Edit <span style="font-size:85%;">/etc/apt/sources.list</span> and add a line like this to it:</p><div style="text-align: justify;"> </div><p style="text-align: justify;"><span style="font-size:85%;"><em>stable/etch</em>:</span></p><div style="text-align: justify;"> </div><p style="text-align: justify;"><span style="font-size:85%;">deb http://volatile.debian.org/debian-volatile etch/volatile</span> main contrib non-free</p><div style="text-align: justify;"> Then run <span style="font-size:85%;">apt-get update</span> and <span style="font-size:85%;">apt-get install clamav</span><br />If you need clamd, you may also want to run <span style="font-size:85%;">apt-get install clamav-daemon</span><br /><br /><span style="font-weight: bold;">How to install clamAV in Ubuntu?</span><br /><br /></div><p style="text-align: justify;">The Ubuntu packages are maintained by Ubuntu MOTU Developers. ClamAV has been officially included in the Ubuntu distribution since the first Ubuntu release. Run <span style="font-size:85%;"><em>apt-cache search clamav</em></span> to find the name of the packages available for installation.</p><p style="text-align: justify;"><br /></p><p style="text-align: justify;">The released set (release, *-updates, and *-security) are patched for security updates. Following extensive testing of clamav and the packages that use it in the backports repository, they may be updated to a newer version. These are official Ubuntu packages and supported by community developers.<br /></p><div style="text-align: justify;"><br /></div><p style="text-align: justify;">The Ubuntu backports repository will contain the newest clamav version that has been at least lightly tested to work with that version. These packages can be installed by enabling the backports repository in your system. These are official Ubuntu packages and supported by community developers.<br /></p><div style="text-align: justify;"><br /><span style="font-weight: bold;">How to install calmAV in Redhat/Fedora ?</span><br /><br /></div><p style="text-align: justify;">Two very good repositories are maintained by Dag Wieers dag at wieers*com:</p><div style="text-align: justify;"> </div><p style="text-align: justify;"><span style="font-size:85%;">http://packages.sw.be/clamav/ </span></p><div style="text-align: justify;"> </div><p style="text-align: justify;">and Oliver Falk:</p><div style="text-align: justify;"> </div><p style="text-align: justify;"><span style="font-size:85%;">SRPMS: http://filelister.linux-kernel.at/?current=/packages/SRPMS/<br />FC devel: http://rpms.linux-kernel.at/?current=/lkernAT/fedora/core/development/i386<br />FC 3: http://rpms.linux-kernel.at/?current=/lkernAT/fedora/core/3/i386<br />RedHat 8.0: http://rpms.linux-kernel.at/?current=/lkernAT/redhat/extras/8.0/i386</span></p><div style="text-align: justify;"><br /><span style="font-weight: bold;">How to install clamAV in Mandriva ? </span></div><p style="text-align: justify;">Official Mandriva packages for cooker and supported updates (2006.0 and newer) are maintained by Oden Erikkson. For updates, use the software package manager or urpmi:</p><div style="text-align: justify;"> </div><p style="text-align: justify;"><span style="font-size:85%;"><em>urpmi.update—update</em></span></p><div style="text-align: justify;"> </div><p style="text-align: justify;"><span style="font-size:85%;"><em>urpmi—update—auto clamd</em></span></p><div style="text-align: justify;"> </div><p style="text-align: justify;">Unofficial packages for current and several older Mandriva distributions are maintained by Bill Randle and are available from his web server.</p><p style="text-align: justify;"><br /></p><div style="text-align: justify;"> </div><p style="font-weight: bold; text-align: justify;">How to install clamAV in SuSe ?</p><p style="text-align: justify;">Official SuSe packages for clamAV are maintained by Reinhard Max.</p><p style="text-align: justify;">You can get it from <a href="ftp://ftp.suse.com/pub/projects/clamav">here</a> .</p><p style="text-align: justify;"><br /></p><p style="text-align: justify;"><span style="font-size:85%;">Thanks & regards</span></p><p style="text-align: justify;"><span style="font-size:85%;">tell2humanlinux@gmail.com</span></p>humanlinuxhttp://www.blogger.com/profile/03340729591318059010noreply@blogger.com1tag:blogger.com,1999:blog-330220044697736088.post-53374487420792717282009-04-19T06:28:00.000-07:002009-04-22T13:52:55.734-07:00Open Source antivirus - ClamWare .<div style="text-align: justify;"><span class="Apple-style-span" style="font-size:large;"><span class="Apple-style-span" style="font-weight: bold;">ClamWin</span></span> is free, open source antivirus software for Microsoft Windows,(dont worry you can run it on Ubuntu using Wine).I Liked ClamWin because , it is OpenSource and also its PORTABLE. Yes, it has a portable version that can be used from a USB flash drive. Scan baby Scan!!!</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">some of the features of ClamWin are:<br /></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><ol><li style="text-align: justify;">Standalone virus-scanner<br /></li><li style="text-align: justify;">Scanning scheduler.<br /></li><li style="text-align: justify;">Automatic virus database updates on a regular basis.<br /></li><li style="text-align: justify;">Context menu integration for Windows Explorer.<br /></li><li style="text-align: justify;">Add-in for Microsoft Outlook.<br /></li><li style="text-align: justify;">And is portable that can be used from a USB flash drive :)<br /></li><li style="text-align: justify;">Extensions availabe to scan file that are downloaded.<br /></li><li style="text-align: justify;">Addin to Microsoft Outlook to remove virus-infected attachments automatically.<br /></li><li style="text-align: justify;">Standalone virus scanner and right-click menu integration to Microsoft Windows Explorer<br /></li></ol></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">The latest version of Clamwin Free Antivirus is 0.95.1.Please note that ClamWin Free Antivirus does not include an on-access real-time scanner. You need to manually scan a file in order to detect a virus or spyware.ClamWin Free Antivirus is based on ClamAV engine and uses GNU General Public License.<br /></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><a href="http://www.clamwin.com/content/view/18/46/">Download ClamWare.</a></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><div style="text-align: justify;"><span class="Apple-style-span" style="font-size:large;"><span class="Apple-style-span" style="font-weight: bold;">Portable ClamWin on a USB or Removable Drive:</span></span></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Follow this guide to make your own portable ClamWin</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><div style="text-align: justify;">You can take ClamWin Free Antivirus with you on a USB pen drive, CD or DVD<br /></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">1)Install ClamWin on a host PC with Windows XP or higher<br /></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">2)Copy all the files from "c:\program files\clamwin" to a "clamwin" folder on a removable drive. unins000.exe and unins000.dat files are not needed<br /></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">3)Copy the following files:<br /></div><div style="text-align: justify;">Microsoft.VC80.CRT.manifest<br /></div><div style="text-align: justify;">msvcm80.dll<br /></div><div style="text-align: justify;">msvcm80.dll<br /></div><div style="text-align: justify;">msvcr80.dll<br /></div><div style="text-align: justify;">from "c:\program files\clamwin\bin\Microsoft.VC80.CRT" to the "clamwin\bin" folder on your removable drive.<br /></div><div style="text-align: justify;"><br /></div></div><div style="text-align: justify;"><div style="text-align: justify;">4)Copy this <a href="http://www.clamwin.com/images/stories/ClamWin.conf">ClamWin.conf</a> (right-click to Save) file to "clamwin\bin" folder on the removable drive (note Standalone=1 setting)<br /></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">5)Create the folowing foldres on the removable drive:<br /></div></div><div style="text-align: justify;"><div style="text-align: justify;">"clamwin\log"<br /></div><div style="text-align: justify;">"clamwin\db"<br /></div><div style="text-align: justify;">"clamwin\quarantine"<br /></div><div style="text-align: justify;"><br /></div></div><div style="text-align: justify;">6)Copy the database files (main.cvd and daily.cvd) from your database directory on the host PC (default location is "C:\Documents and Settings\All Users\.clamwin\db") to the "clamwin\db" folder on the removable drive.<br /></div><div style="text-align: justify;"><div style="text-align: justify;"><br /></div></div><div style="text-align: justify;">That's it, you can now run clamwin.exe from clamwin folder on your removable drive.<br /></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Notes:</div><div style="text-align: justify;">It may take a while to load ClamWin.exe depending on the removable drive speed</div><div style="text-align: justify;">If you use ClamWin Free Antivirus on a read-only drive (CD or DVD) your need to burn the latest database before use and won't be able to change preferences.</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Tip: <a href="http://portableapps.com/download">Click</a> here to see the list of some portabe softwares.</div></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><div style="text-align: justify;">thanks & regards</div><div style="text-align: justify;"><div style="text-align: justify;">tell2humanlinux@gmail.com</div></div></div>humanlinuxhttp://www.blogger.com/profile/03340729591318059010noreply@blogger.com1tag:blogger.com,1999:blog-330220044697736088.post-43245479484707569152009-04-18T05:51:00.000-07:002009-05-02T01:50:51.917-07:00nagios installation steps!<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_mRjsJ1xLIUg/SenclTuL_VI/AAAAAAAAALk/rWWQtLkCA8I/s1600-h/nagios.jpg"><img style="cursor:pointer; cursor:hand;width: 400px; height: 300px;" src="http://4.bp.blogspot.com/_mRjsJ1xLIUg/SenclTuL_VI/AAAAAAAAALk/rWWQtLkCA8I/s400/nagios.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5326030567849590098" /></a><br />Nagios is a popular open source computer system and network monitoring software application. It watches hosts and services, alerting users when things go wrong and again when they get better.Nagios, originally created under the name NetSaint, was written and is currently maintained by Ethan Galstad, along with a group of developers actively maintaining both official and unofficial plugins.Nagios was originally designed to run under Linux, but also runs well on other Unix variants.Nagios is free software licensed under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.<br /><br /><a href="http://www.nagios.org/download/download.php">Download nagios 3.1.0(latest)</a><br /><br />As a newbie i decided to install the nagios in my ubuntu 9.04 to monitor my own system services & i succedeed in it. The nagios documentation was pretty simple to follow. But i have written a documentation of my own. This documentaion is for those who are lazy(like me :)) to read whole crap given in the official documentaion.Here i just posted the step by step instllation.<br /><br />N.B: This is the documentaion for Ubuntu. If need to install on other distros goahead and follow this <a href="http://nagios.sourceforge.net/docs/3_0/quickstart.html">Documentation</a>.<br />And use sudo in appropriate places.<br /><br />Lets begin:<br /><br />1)Nagios need Apache & gdlibrary to work. <br /><br />sudo apt-get install apache2 (will install apache 2)<br /><br />sudo apt-get install build-essential<br /><br />sudo apt-get install libgd2-xpm<br /><br />2)Create an Account for nagios<br /><br />sudo useradd -m nagios ( -m is used to create home if donot exist)<br /><br />passwd nagios<br /><br />If you are using server edition do the next step , else skip it and goto a).<br /><br />/usr/sbin/groupadd nagios<br />/usr/sbin/usermod -G nagios nagios<br /><br />a)Create a new nagcmd group for allowing external commands to be submitted through web interfacw. Add both nagios & Apache user to the group.<br /><br />/usr/sbin/groupadd nagcmd<br /><br />/usr/sbin/usermod -a -G nagcmd nagios<br /><br />/usr/sbin/usermod -a -G nagcmd www-data<br /><br /><br />3)Download nagios & Plugins<br /><br />mkdir ~/downloads<br />cd ~/downloads<br /><br />download the nagios & plugins in this folder(downloads). Extract the package.<br /><br />wget -c http://osdn.dl.sourceforge.net/sourceforge/nagios/nagios-3.0.6.tar.gz<br /><br />wget http://osdn.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.11.tar.gz<br /><br />Extract the packages:<br /><br />tar xzf nagios-3.0.6.tar.gz<br /><br />cd nagios-3.0.6<br /><br />Run the Nagios configure script, passing the name of the group you created earlier like so:<br /><br />./configure --with-command-group=nagcmd<br /><br />Compile the Nagios source code.<br /><br />make all<br />make install<br />make install-init<br />make install-config<br />make install-commandmode<br /><br />4)Don't start Nagios yet, we have to do some more.<br /><br />Edit the /usr/local/nagios/etc/objects/contacts.cfg config file with your favorite editor and change the email address associated with the nagiosadmin contact definition to the address you'd like to use for receiving alerts.<br /><br />vi /usr/local/nagios/etc/objects/contacts.cfg<br /><br />just change the email address you need to receive the alerts.<br /><br />5)Configure the webinterface.<br /><br />dont leave the current directory ( ~/downloads/nagios-3.0.6)<br /><br />make install-webconf<br /><br />Create a nagiosadmin account for logging into the Nagios web interface. Remember the password you assign to this account - you'll need it later.<br /><br />htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin<br /><br />Restart Apache to make the new settings take effect.<br /><br />sudo /etc/init.d/apache2 reload (restart)<br /><br />6)Compile and install nagios plugin<br /><br />Extract the Nagios plugins..<br /><br />cd ~/downloads<br />tar xzf nagios-plugins-1.4.11.tar.gz<br />cd nagios-plugins-1.4.11<br />Compile and install the plugins.<br /><br />./configure --with-nagios-user=nagios --with-nagios-group=nagios<br />make<br />make install<br /><br />7)login to your web interface(Browser)<br /><br />You should now be able to access the Nagios web interface at the URL below. You'll be prompted for the username (nagiosadmin) and password you specified earlier.<br /><br />http://localhost/nagios/<br /><br />type the nagiosadmin username & password<br /><br />Click on the "Service Detail" navbar link to see details of what's being monitored on your local machine. It will take a few minutes for Nagios to check all the services associated with your machine, as the checks are spread out over time<br /><br />DONE! :)<br /><br />For detailed instllation documentation refer: <a href="http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html">here</a><br /><br />thanks & regards<br />tell2humanlinux@gmail.comhumanlinuxhttp://www.blogger.com/profile/03340729591318059010noreply@blogger.com0