Posted on December 23, 2008 by
Riyesh .
Please follow the steps to install BFD
Download Source package from source
wget http://www.r-fx.ca/downloads/bfd-current.tar.gz
Extract the source
tar -zxf bfd-current.tar.gz
cd bfd*
./install.sh
adding Ips to ignore.hosts file
echo IP >> /usr/local/bfd/ignore.hosts
replace ‘ALERT_USR=”0″‘ ‘ALERT_USR=”1″‘ — /usr/local/bfd/conf.bfd
/usr/local/sbin/bfd -s
Finished
Posted on December 22, 2008 by
Riyesh .
This comes into picture when one Admin doesn’t have physical access to a system in which Linux needs to be installed. Here we need help from one person who is having physical access to that remote machine to get it booted from bootable media and to type the command shown …
Posted on December 22, 2008 by
Riyesh .
Please follow the below steps to disable a specific command(s) for a certain user.
# su – riyesh
$ which rm (Here rm command as an example)
$ mkdir ~/bin
$ ln -s /bin/* ~/bin/ (/bin is the PATH for rm)
$ rm -rf ~/bin/rm
Take the output of $PATH for this user
$ echo $PATH > …
Posted on December 22, 2008 by
Riyesh .
Edit /etc/grub.conf
dma=off apci=off apm=off
edit /etc/hdparm.conf
command_line {
hdparm -d1 /dev/cdrom
}
command_line {
hdparm -d1 /dev/cdrom1
}
Edit sysctl.conf
dev.cdrom.check_media = 0
Posted on December 22, 2008 by
Riyesh .
Hi.. Guys
Please follow the steps to install SSL certificate on Apache
# cd /usr/local/apache
# mkdir cert
# cd cert
1. Generate your own Certificate Authority (CA)
# openssl genrsa -out ca.key 4096
# openssl req -new -x509 -days 365 -key ca.key -out ca.crt
2.Generate a server key and request for signing (csr)
# openssl genrsa -out server.key …
Posted on December 22, 2008 by
Riyesh .
1.Download the compatibility plugin and Local Auto Responder plugin from http://squirrelmail.org
2.Extract it to the Squirrelmail – plugins directory
cd /var/www/html/squirrelmail/plugins
# tar xzf compatibility-2.0.9-1.0.tar.gz
# cd compatibility
3.Patch it to your squirrelmail version
# patch -p0 < patches/compatibility_patch-1.4.11.diff
patching file ../../functions/strings.php
4.Configure the Squirrelmail to include the plugin
# cd ../../config
# ./conf.pl
5.Extract Local Auto Responder Plugin
# cd ../plugins/
# …
Posted on December 22, 2008 by
Riyesh .
Hi guys…
On this documentation… Will help you to setup linux server as a network gateway without installing any proxy softwares….
#!/bin/sh
# The interface conneected to Your LAN
INTIF=”eth1?
# The interface conneected to Internet (ppp0 or eth)
EXTIF=”eth0?
# If you have a static IP (Public IP), Use the following line. Otherwise comment following line …
Posted on December 22, 2008 by
Riyesh .
screen is a UNIX utility for giving remote assistance/administration. Suppose an unskilled colleague of your own is struggling with a server at some remote location with no idea of troubleshooting a problem.
If you are able to solve that with keeping your colleague to watch how you are sorting out the issues …
Posted on December 22, 2008 by
Riyesh .
ltiple Shell login by the same user on a Linux box you have to set a maximum number of logins in /etc/security/limits.conf for a user or a group.
For example:
# groupadd salesgroup
# useradd -G salesgroup salesman1
# useradd -G salesgroup salesmanager
# echo “@salesgroup – maxlogins 10? >> /etc/security/limits.conf
# echo “salesman1 – maxlogins 5? >> …
Posted on December 22, 2008 by
Riyesh .
One of the “must do’s” on setting a secure apache webserver environment is to disable directory browsing. As a default Apache will be compiled with this option enabled, but its always a good idea to get rid of this setting unless its really necessary.
If you are on an RPM installation …