Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
server-administration:installing-iotop-centos5 [2011-04-28 11:43:04]
garrett.plasky [Pre-Requisites]
server-administration:installing-iotop-centos5 [2012-03-21 15:22:17]
garrett.plasky [Pre-Requisites]
Line 7: Line 7:
 This program also requires a newer Python version than CentOS 5 supplies (2.6 vs 2.4), so we'll grab those from the EPEL repo and install them: This program also requires a newer Python version than CentOS 5 supplies (2.6 vs 2.4), so we'll grab those from the EPEL repo and install them:
  
-<sxh bash; auto-links: false>wget http://download.fedora.redhat.com/​pub/​epel/​5/​i386/​python26-2.6.5-5.el5.i386.rpm \  +<sxh bash; auto-links: false>rpm -ivh ftp://ftp.sunet.se/pub/​Linux/​distributions/​fedora/​epel/​epel/​5/​i386/​python26-2.6.5-5.el5.i386.rpm \  
-ftp://download.fedora.redhat.com/​pub/​epel/​5/​i386/​python26-libs-2.6.5-5.el5.i386.rpm \  +ftp://ftp.sunet.se/pub/​Linux/​distributions/​fedora/​epel/epel/5/x86_64/​python26-libs-2.6.5-5.el5.i386.rpm \  
-ftp://​download.fedora.redhat.com/​pub/​epel/​5/​i386/​libffi-3.0.5-1.el5.i386.rpm +ftp://​ftp.pbone.net/​mirror/​download.fedora.redhat.com/​pub/fedora/​epel/​5/​i386/​libffi-3.0.5-1.el5.i386.rpm</​sxh>​
-rpm -Uvh python26-2.6.5-5.el5.i386.rpm python26-libs-2.6.5-5.el5.i386.rpm ​libffi-3.0.5-1.el5.i386.rpm</​sxh>​+
  
 If these installed successfully,​ you are now ready to install IOTop. If these installed successfully,​ you are now ready to install IOTop.
- 
 ==== Installing & Configuring IOTop ==== ==== Installing & Configuring IOTop ====
  
 Let's install the RPM: Let's install the RPM:
  
-<sxh bash>rpm -ivh http://​guichaz.free.fr/​iotop/​files/​iotop-0.4.1-1.noarch.rpm</​sxh>​+<sxh bash; auto-links: false>rpm -ivh http://​guichaz.free.fr/​iotop/​files/​iotop-0.4.1-1.noarch.rpm</​sxh>​
  
 Now, CentOS will typically keep Python2.4 as your default Python, so we can tell IOTop to use Python 2.6 in two ways. One would be to relink the <​c>/​usr/​local/​bin/​python</​c>​ binary to <​c>/​usr/​local/​bin/​python2.6</​c>,​ or we can simply change the sha-bang at the beginning of the iotop script to use he 2.6 binary instead. We choose the latter so as to not break compatibility with Python2.4-exclusive scripts. Now, CentOS will typically keep Python2.4 as your default Python, so we can tell IOTop to use Python 2.6 in two ways. One would be to relink the <​c>/​usr/​local/​bin/​python</​c>​ binary to <​c>/​usr/​local/​bin/​python2.6</​c>,​ or we can simply change the sha-bang at the beginning of the iotop script to use he 2.6 binary instead. We choose the latter so as to not break compatibility with Python2.4-exclusive scripts.