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
Last revision Both sides next revision
server-administration:installing-iotop-centos5 [2011-04-28 18:39:59]
garrett.plasky [Pre-Requisites]
server-administration:installing-iotop-centos5 [2011-04-28 18:43:43]
garrett.plasky [Installing & Configuring IOTop]
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; autolinks: false>wget http://download.fedora.redhat.com/pub/epel/5/i386/python26-2.6.5-5.el5.i386.rpm \ +<sxh bash; auto-links: false>wget http://download.fedora.redhat.com/pub/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://download.fedora.redhat.com/pub/epel/5/i386/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://download.fedora.redhat.com/pub/epel/5/i386/libffi-3.0.5-1.el5.i386.rpm
Line 18: Line 18:
 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.