| Mobile | RSS

SELinux

SCP-secure copy

scp command is to copy files and directories securely between remote hosts without logging into the remote systems explicitly.scp command uses ssh to transfer data between hosts.So it requires password for authentication.scp encrypts both files and password exchanged to perform secure transfer. The general syntax for scp command is scp [options] [[user@]host1:]filename1 … [[user@]host2:]filename2 eg: [...]

[ More ] June 30th, 2011 | No Comments | Posted in Glossaries |
tcpdump

tcpdump practical approach

tcpdump is a common command line packet analyzer.It allows the user to intercept and display TCP/IP and other packets being transmitted or received over a network to which the computer is attached.tcpdump works on most UNIX like operating systems. USAGE: #tcpdump                               –Display standard tcpdump output #tcpdump -v ,-vv, -vvv           [...]

[ More ] June 30th, 2011 | 1 Comment | Posted in Networking |
LVM management

Create Logical volume (LVM2)

First we need to find out which disks and partitions are being used. So we could use the following commands #df -h [This  will display which partitions  are being used] #fdisk -l [This will show which disks are being used and disks that are not mounted.] Now we can start the lvm implementation,we have two [...]

[ More ] June 30th, 2011 | No Comments | Posted in OS Internals |
mrtg configuration

How to Install and Configure MRTG

Let see how to install and configure mrtg with this article. Required packages mrtg-2.10.15-1.i386.rpm net-snmp net-snmp-utils Prerequisite: snmp should be configured and running Change the permissions of the directory #chmod 777 /var/www/mrtg Generate a configuration file #cfgmaker –output=/etc/mrtg/mrtg.cfg -ifref=ip –global “workdir: /var/www/mrtg” –global ‘options[_]: growright,bits’ user@192.168.0.10 Edit the configuration file and make the necessary changes. [...]

[ More ] June 30th, 2011 | No Comments | Posted in Applications, Networking |
email icon

Virtusertable configuration in sendmail

virtusertable is used to do aliases to virtual domains hosted on the same server. In this case we use  mail1.domain.org as main host and mail2.domain.org as virtual host. Before creating virtusertable mapping ,you need to create a file virtusertable in /etc/mail/.In virtusertable each entry should be a single line.The entry in left hand side denotes [...]

[ More ] June 30th, 2011 | No Comments | Posted in Applications, Server Building |
LVM management

How to mark volume groups as active or inactive

How to mark volume groups as active or inactive in Linux using lvchange command in Linux

[ More ] June 30th, 2011 | No Comments | Posted in OS Internals |
redhat cluster suite

Fencing process in Redhat Cluster

Fencing is the disconnection of a node from the cluster’s shared storage. Fencing cuts off I/O from shared storage, thus ensuring data integrity. There are two fencing programs fenced Configured with CMAN/DLM GULM Configured with GULM servers When the cluster manager determines that a node has failed, it communicates to other cluster-infrastructure components that the [...]

[ More ] June 29th, 2011 | 2 Comments | Posted in OS Internals, Server Building |
Asterisk server

Asterisk server installation

Asterisk is a software implementation of a telephone private branch exchange (PBX) originally created in 1999 by Mark Spencer of Digium. Like any PBX, it allows attached telephones  to make calls to one another, and to connect to other telephone services including the public switched telephone network (PSTN) and Voice over Internet Protocol (VoIP) services. [...]

[ More ] June 29th, 2011 | 1 Comment | Posted in Applications, Server Building |
keyboard and mouse

Sharing keyboard and mouse between different machines using synergy

Synergy is software client/server application for several operating systems (GNU/Linux, Mac OS X, Microsoft Windows and more) which allows you to control multiple computers through the same keyboard and mouse. Moreover, your computers will be able to share their clipboards among themselves, enabling you,like, to copy text from a Linux application and paste it into [...]

[ More ] June 29th, 2011 | No Comments | Posted in Applications |
JDK installation in Linux

JDK installation in Linux

1. Download jdk from http://java.sun.com/javase/downloads/ into /root/Downloads/ 2. Create a directory ‘java’ in /usr mkdir /usr/java cd /usr/java cp /root/Downloads/jdk-6u<version>-linux-i586.bin . 3. Make the file executable chmod a+x jdk-6u<version>-linux-i586.bin 4. Run java self extracting binary ./jdk-6u<version>-linux-i586.bin The binary code licence is displayed , prompted to agree to its terms.The installer copy files into jdk-6u<version> directory. [...]

[ More ] June 29th, 2011 | No Comments | Posted in Applications |
SELinux

Brief history of SELinux

selinux is created by National Security Agency. NSA created a project to enforce Mandatory Access Control (MAC) inside the Linux Kernel which is known as Security Enhanced Linux or SELinux

[ More ] June 29th, 2011 | 1 Comment | Posted in Linux Security |
rsync

Synchronize data between two servers using rsync

Rsync: rsync is an application used in unix systems which synchronize files and directories between two machines.rsync behaves like rcp(remote file copy),but it much faster than rcp.because rsync sends the differences in the files instead of sending entire files. Servers are SERVER_SOURCE & SERVER_DESTINATION Configure SSH key authentication In SERVER_DESTINATION open sshd_config file vi /etc/ssh/sshd_config [...]

cacti installation

Cacti Network graphing Tool Installation

Cacti is a network graphing tool similar to MRTG.It is a complete front end to RRDtool,it stores all of the necessary information to create graphs and populate them with data in MySql database.The front end is completely PHP driven. Requirements MySql server NET-SNMP server (SNMP is used for network management) PHP with net-snmp module Web [...]

[ More ] June 29th, 2011 | No Comments | Posted in Applications |
nagios

Nagios upgradation from Previous Nagios 3.x release

Before upgrading you should have a good backup of existing nagios installation and configuration files.If anything goes wrong,then this will allow you to rollback to your old version. Nagios upgrading don’t even need root access.We can do this as ‘nagios’ user. Become nagios user by su or sudo command su -l nagios Remove the following [...]

[ More ] June 29th, 2011 | No Comments | Posted in Applications |
nagwin

Monitoring windows Machine using Nagios

By using nagios we can monitor private services & attributes like Memory usage CPU load Disk usage Service stats Running processes etc Monitoring private services or attributes of a windows machine requires an agent on it.This agent act as a proxy between the nagios plug-in that does the monitoring and the actual service or attribute [...]

[ More ] June 29th, 2011 | No Comments | Posted in Applications |
WebDav configuration

Setting up WebDAV with Apache web server

WebDAV stands for web based Distributed Authoring and Versioning.And it is a set of extension to the http protocol that allows users to directly edit files on the apache server so that they do not need to be downloaded/uploaded via FTP.apache Enabling WebDAV on apache web server includes the following steps Install mod_dav module Edit [...]

[ More ] June 29th, 2011 | 1 Comment | Posted in Applications, Server Building |
nagios

Nagios installation from source

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. Installation includes the following steps Create user account for nagios #useradd nagiosnagios #passwd nagios Create  group named ‘nagioscmd’and add users naios and apache to this [...]

[ More ] June 29th, 2011 | 1 Comment | Posted in Applications |
raid array

RAID -Redundant array of independent disks

RAID is an acronym for Redundant Array of Independent Disks. With RAID enabled on a storage system you can connect two or more drives in the system so that they act like one big fast drive or set them up so that one drive in the system is used to automatically and instantaneously duplicate (or mirror) your data for real-time backup.

[ More ] June 29th, 2011 | No Comments | Posted in OS Internals |
MySQL installation

MySQL Installation from source

Creating user and group for mysqlmysql #groupadd mysql #useradd -g mysql mysql Get source from http://dev.mysql.com/downloads/mysql/5.0.html#source Unpack the package using the following command #tar -xvf mysql-5.x.x.tar.gz #cd mysql-5.x.x #./configure –prefix=/usr/local/mysql-5.x.x Then compile & install #make #make install Then create a symbolic link ‘mysql’ pointing to mysql-5.x.x(Installation directory) #ln -s /usr/local/mysql-5.0.37/ /usr/local/mysql  (Generally mysql installation path [...]

[ More ] June 29th, 2011 | No Comments | Posted in Applications, Server Building |
php installation from source

PHP Installation from source

Get the source from http://www.php.net/download.php (php-5.x.x.tar.gz) Prerequisites Apache webserver Mysql Installation Goto the directory use this command to unpack the file tar -xvf php-5.x.x.tar.gz cd php-5.x.x ./configure –prefix=/usr/local/php –with-apxs2=/usr/local/apache2/bin/apxs –with-mysql=/usr/local/mysql * –prefix specifies the location where PHP is to be installed . * –with-apxs2 pointing to bin/apxs in the apache installation directory. * –with-mysql to [...]

Related Posts Plugin for WordPress, Blogger...
[ More ] June 29th, 2011 | No Comments | Posted in Applications, Server Building |