How to configure Network interfaces in RHEL/CentOS or Fedora Linux

In RHEL/CentOS or Fedora, you can configure network interfaces by using configuration files located in /etc/sysconfig/network-scripts/. For each network interface (e.g., eth0), there should be a corresponding configuration file (e.g., ifcfg-eth0) in the directory. If you would like to configure a network interface, do the following. $ sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0 If you would like to … Read more

How To Add Remi Repository To CentOS/RHEL 5 Or 6

The Remi Repo is a yum repository maintained by a French guy – Remi Collet. The remi repository provides a variety of up-to-date packages that are useful or are a requirement for many popular web-based services. How To add/install remi repository to CentOS/RHEL 5 or 6 For CentOS/RHEL 5 32-64 Bit # wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm # rpm … Read more

How to set up a default gateway on CentOS/RHEL, Fedora linux

CentOS default gateway, what is it and what is its purpose? A computer needs to know the address of at least one gateway in order to connect to another network, this is called the Default Gateway. Whenever a computer tries to connect to a machine on a different network it will connect to the default … Read more

Use Afterglow To Visualize Iptables Logs On CentOS, RHEL, Fedora

Graphviz and Text-CSV perl modules are the prerequisites. Most latest linux distros come with perl preinstalled, if not then install perl as well. # yum install perl # wget http://search.cpan.org/CPAN/authors/id/E/ER/ERANGEL/Text-CSV-0.5.tar.gz # tar zxvf Text-CSV-0.5.tar.gz # cd Text-CSV-0.5 # perl Makefile.PL # make # make install Install graphviz, download the latest version of afterglow and untar … Read more

Install PostgreSQL 9.2 on Fedora, CentOS/RHEL

This is guide, howto install PostgreSQL 9.2 database server on Fedora, CentOS/RHEL. This guide uses PostgreSQL own YUM repos, which are always up-to-date and stable releases are available instantly. [alert type=”warning”]Note: If you are upgrading PostgresSQL (from earlier version), then make sure that you backup (dump and copy) your database and configs.[/alert] 1. Install PostgreSQL 9.2.1 Database Server on Fedora, CentOS/RHEL Change root … Read more

Installing Nagios-3.4 in CentOS 6.3

Nagios is an opensource software used for network and infrastructure monitoring. Nagios will monitor servers, switches, applications and services. It alerts the System Administrator when something went wrong and also alerts back when the issues has been rectified. View also: How to Enable EPEL Repository for RHEL/CentOS 6/5 yum install nagios nagios-devel nagios-plugins* gd gd-devel httpd … Read more

Monitoring Ethernet Activity using Arpwatch in Linux

Arpwatch is an open source computer software program that helps you to monitor ethernet traffic activity (like Changing IP and MAC Addresses) on your network and maintains a database of ethernet/ip address pairings. It produces a log of noticed pairing of IP and MAC addresses information along with a timestamps, so you can carefully watch … Read more

How to Install Nginx on CentOS / RHEL

Normally I install Nginx on CentOS / RHEL via the EPEL repo, however I have recently discovered the Nginx project has it’s own repo available. Note this will install a much newer Nginx version than the one available in the EPEL repo, follow the steps below to install Nginx on CentOS / RHEL. Create the file /etc/yum.repo.d/nginx.repo and populate it … Read more