Ad Ad Ad Ad

This Site For sale

This domain for  sale… Please contact riyesh@gmail.com

Enable/ disable ping requests in linux

 Ping Requests use ICMP protocols. This is enabled/disabled using sysctl values.
To Disable Ping:
 
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
 
To Enable Ping:
 
echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all

SSH login using Public/Private key authentication

 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 …

Collecting User IP!

A sample BASH CGI script for collecting IPs of your colleagues in your network.
Prerequisites
1) apache/cgi configuration
2) a Mysql installation
Then create script “getip.sh” under “/var/www/cgi-bin/”  ( set location of cgi-bin directory  as per the apache configuration)
#!/bin/bash #Getting IP address CGI-BASH-script#Jadu Saikia http://unstableme.blogspot.com/ #MySQL settings
# MHOME=  ( location of mysql …

ubuntu internet sharing

 The following will explain how to share your Internet connection:
Note: Type all the following commands in a root terminal, DO NOT use sudo.
1. Start by configuring the network card that interfaces to the other computers on you network:
# ifconfig ethX ip 
where ethX is the network card and ip is your …

Open VPN installation

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 …

Installing Linux Remotly

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 …

Cacti Installation

 Cacti uses RRDTool to generate graphs for network statistics like bandwidthd. 
 
Requirements:

Mysql
Php
Rrdtool
net-snmp
net-snmp-devel.i386
net-snmp-libs.i386
net-snmp-perl.i386
net-snmp-utils.i386
php-snmp
Apache with PHP Support
 
MySQL configuration for cacti:
 
mysql -u root -p
mysql> create database cacti;
mysql> grant all on cacti.* to cactiuser@’localhost’ identified by ‘cactipassword’;
mysql> flush privileges;
 
RRDTool Installation
 
Requirements:

tcl
tcl-devel
 
[root]# cd /usr/local/src/
[root]# wget http://oss.oetiker.ch/rrdtool/pub/rrdtool.tar.gz
[root]# tar -zxf rrdtool.tar.gz
[root]# cd rrdtool*
[root]# ./configure
[root]# make
[root]# make install
[root]# make site-perl-install
 
   …