Let's Share Knowledge And Make A Difference

  • Monitor your network and systems like a hawk

    There are some perfact open souce solution for monitoing your Network devices and server system's health. Nagios, Cacti, WhatsUpGold and Smokeping are the leading monitoring tools among them...

    Read More
  • Email service and Security

    Now a days life without email service is unthinkable and E-mail service is quite expensive. As always linux gives us the answer with a strong mail service named postfix...

    Read More
  • Data Center Solution

    A data centre is a facility where companies can keep and operate most of the ICT infrastructure that supports their business. IT host the most critical systems that are vital to the continuity of daily operations...

    Read More

Tuesday, February 18, 2014

How to install glances

How to install glances

Introduction:
In short Glances is a command line monitoring tools which present real time report regarding the following uses at a glance.
1. CPU uses,
2. server load,
3. memeory uses,
4. swap memory uses,
5. network interface uses,
6. HDD uses, and
7. Processes uses

On RedHat   
Download the packages:
[root@gw ~]# wget ftp://ftp.univie.ac.at/systems/linux/fedora/epel/6/i386/glances-1.7.3-1.el6.noarch.rpm
[root@gw ~]# wget ftp://ftp.univie.ac.at/systems/linux/fedora/epel/6/x86_64/python-psutil-0.6.1-1.el6.x86_64.rpm

Simply install them:
[root@gw ~]# rpm -ivh python-psutil-0.6.1-1.el6.x86_64.rpm
[root@gw ~]# rpm -ivh glances-1.7.3-1.el6.noarch.rpm
[root@gw ~]# glances

On Debian/Ubuntu/Linux Mint
root@gw~# sudo apt-add-repository ppa:arnaud-hartmann/glances-stable
root@gw~# sudo apt-get update
root@gw~# sudo apt-get install glances

Usage of Glances
root@gw~# glances

 Glances Color Codes
Meaning of Glances color code:
    -> GREEN: OK (everything is fine)
    -> BLUE: CAREFUL (need attention)
    -> VIOLET: WARNING (alert)
    -> RED: CRITICAL (critical)

Reference
http://www.tecmint.com/glances-an-advanced-real-time-system-monitoring-tool-for-linux/

How to configure yum repository (with groupinstall) in redhat 6

How to configure yum repository (with groupinstall) in redhat 6

Create a local repository repository:
First insert the redhat 6.X dvd in the dvdrom and mount it.
[root@gw ~]# mount /dev/dvdrw /mnt/

Copy the Packages folder to a location
[root@gw ~]# cp -Rfv /mnt/Packages /storage/
[root@gw ~]# cd /storage/Packages

Lets install dependencies for createrepo:
[root@gw Packages]# rpm -ivh deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
[root@gw Packages]# rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
[root@gw Packages]# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm
[root@gw Packages]# cd ..
[root@gw storage]# createrepo Packages
[root@gw storage]# cd
[root@gw ~]# vim /etc/yum.repos.d/local.repo
[local_repo]
name=RedHat6
baseurl=file:///storage/Packages/
enabled=1
gpgcheck=0

[root@gw ~]# yum clean all

Testing yum install:
[root@gw ~]# yum list
[root@gw ~]# yum install vim

Unmount the dvd drive
[root@gw ~]# umount /mnt/


Configure yum group install:
Insert the redhat 6.X dvd in the dvdrom and mount it.
[root@gw ~]# mount /dev/dvdrw /mnt/
[root@gw ~]# mkdir -P /storage/Packages_grp
[root@gw ~]# cp -pfr /mnt/Server/* /storage/Packages_grp/
[root@gw ~]# cd /storage/Packages_grp/
[root@gw Packages_grp]# createrepo -g repodata/1a7fc54d30d0d44222742c63069ab0126afef9f160931cc15e564dbe6414f268-comps-rhel6-Server.xml .

Please note that total file name of "-comps-rhel6-Server.xml" may be change to your distribution.
[root@gw Packages_grp]# cd
[root@gw ~]# vim /etc/yum.repos.d/group.repo
[group_repo]
name=RedHat6
baseurl=file:///storage/Packages_grp/
enabled=1
gpgcheck=0

[root@gw yum.repos.d]# yum clean all && yum makecache

Unmount the dvd drive
[root@gw ~]# umount /mnt/

Testing groupinstall:
[root@gw ~]# yum grouplist
[root@gw ~]# yum groupinstall "Web Server"