Posted on January 20, 2009 by
Riyesh .
Scenario
To log into “Server A” from “Server B” without using passwords. Users for both the server will be “root”
Process
Login to “Server B” as root user and generate key for the root user. No need to enter any passphrase while generating this key.
ssh-keygen -t rsa
Once the key is generated, copy the …
Posted on December 23, 2008 by
Riyesh .
Install openvpn using the rpm
Installing OpenVPN from a binary RPM package has these dependencies:
openssl
lzo
pamInstall rpms as root:# rpm -ivh openvpn-2.0.5-1.el4.rf.i386.rpm
installing rpm
rpm -ivh lzo-1.08-4.2.el4.rf.i386.rpm
The main configuration directory for open vpn is /etc/openvpn
Setting up your Certificate Authority (CA) and generating certificates and keys for …
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 .
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 …