User Tools

Site Tools


installingonrhel4

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
installingonrhel4 [2007/05/14 08:36]
morten
installingonrhel4 [2007/07/12 10:18]
rogeraas Updated to NAV 3.2.2
Line 1: Line 1:
 ====== Installing NAV on RedHat Enterprise Linux 4 ====== ====== Installing NAV on RedHat Enterprise Linux 4 ======
-  * Mostly maintained by Roger Aas at the University College ​of Haugesund/​Stord.+  * Mostly maintained by Roger Aas at Stord/​Haugesund ​University College.
 <​code>​ <​code>​
 +###
 +### NAV 3 installation
 +###
 +### for CentOS 4 or Red Hat Enterprise Linux 4 Advanced Server
 +###
 +### Roger Aas, Stord/​Haugesund University College
 +###
 +###
 +### 12.07.2007:
 +###   - Updated for NAV 3.2.2
 +###   - Tested for CentOS 4.5
 +###   - Updated seven packages:
 +###     - Java 1.5.0_11 -> 1.5.0_12
 +###     - SNMP_Session 1.08 -> 1.10
 +###     - CGI.pm 3.25 -> 3.29
 +###     - IPy 0.52 -> 0.54
 +###     - JavaSNMP 1.4.1 -> 1.4.2
 +###     - gammu 1.08 -> 1.11
 +###     - tomcat 5.5.20 -> 5.5.23
 +### 22.02.2007:
 +###   - Updated for NAV 3.2.1
 +###   - Use the default LVM setup
 +###   - Small change in sample firewall setup
 +###   - Set options for Tomcat
 +###   - Place jdbc and snmp jars in nav java folder
 +###   - New security setup for postgresql for nav 3.2.1
 +###   - No in-built backup of the database
 +###   - Updated two packages:
 +###     - Java 1.5.0_09 -> 1.5.0_11
 +###     - DB_File 1.814 -> 1.815
 +### 24.11.2006:
 +###   - Fixes to make Arnold work (Thanks Kjartan@UiS)
 +### 23.11.2006 by Roger Aas:
 +###   - Build Java SNMP Package from source
 +###   - That means Java SDK instead of JRE to have Java compiler
 +###   - Removed all the rest of the vi edits
 +###   - Added "​Site-specific"​ information
 +###   - Fix database backup problem (from NAV 3.2 this goes out)
 +### 20.11.2006 by Roger Aas:
 +###   - Finished update to NAV 3.1.1
 +###   - Tested for RHEL4 Update 4 and CentOS 4.4
 +###   - Removed CentOS mirror setup, not necessary anymore
 +###   - Configured and started snmpd
 +###   - Configured syslog to accept messages from remote hosts
 +###   - Added sample firewall setup
 +###   - Removed some 3.0.0 patches
 +###   - Added simple autostart
 +###   - Updated some packages:
 +###     - Java 1.5.0_06 -> 1.5.0_09
 +###     - CGI.pm 3.15 -> 3.25
 +###     - IPy 0.42 -> 0.52
 +###     - gammu 1.04 -> 1.08
 +###     - tomcat 5.5.12 -> 5.5.20
 +### 14.11.2006 by Morten Brekkevold:
 +###   - Updated for NAV 3.1.1.
 +###   - NOT TESTED
 +### 05.01.2006:
 +###   - Tested for RHEL 4 Update 2
 +###   - Fix for pkgSkipList edit for Red Hat
 +###   - Updated some packages:
 +###     - Java 1.5.0_05 -> 1.5.0_06
 +###     - New revision of rrdtool
 +###     - SNMP_Session 1.07 -> 1.08
 +###     - DB_File 1.811 -> 1.814
 +###     - CGI.pm 3.11 -> 3.15
 +###     - Cheetah 0.9.18 -> 1.0
 +###     - gammu 0.96 -> 1.04
 +### 19.10.2005:
 +###   - Added warning about SELinux and firewall
 +###   - Rewrote the introduction
 +### 17.10.2005:
 +###   - tested for CentOS 4.2
 +###   - Fixed yum repository setup for CentOS
 +###   - Shortened it a little
 +###   - rrdtool 1.0.50 again, this time working :-)
 +### 13.10.2005:
 +###   - Backrev'​ed rrdtool, new version did not include perl modules
 +###     and that broke cricket (note to self: must test much more)
 +### 12.10.2005:
 +###   - Reworked to include installation on CentOS 4.1
 +###   - Updated some packages, most notable Java and Tomcat
 +###   - Easier file editing
 +###   - More valuable(?) information :-)
 +###
 +### For feedback please contact me on the NAV3 mailing list or directly
 +### at <roger at hsh.no>
  
 # NB! # NB!
Line 480: Line 566:
 up2date perl-libwww-perl # Cricket needs it? + perl-HTML-Parser perl-URI perl-HTML-Tagset up2date perl-libwww-perl # Cricket needs it? + perl-HTML-Parser perl-URI perl-HTML-Tagset
 up2date db4-devel # Checked out, DB_File needs it to compile up2date db4-devel # Checked out, DB_File needs it to compile
-up2date mysql # Checked out, gammu 1.0 needs it to install+up2date mysql # Checked out, gammu needs it to install
 up2date samba-client # Arnold uses nmblookup up2date samba-client # Arnold uses nmblookup
 # CentOS4: # CentOS4:
Line 492: Line 578:
 yum -y install perl-libwww-perl # Cricket needs it? + perl-HTML-Parser perl-URI perl-HTML-Tagset yum -y install perl-libwww-perl # Cricket needs it? + perl-HTML-Parser perl-URI perl-HTML-Tagset
 yum -y install db4-devel # Checked out, DB_File needs it to compile yum -y install db4-devel # Checked out, DB_File needs it to compile
-yum -y install mysql # Checked out, gammu 1.0 needs it to install+yum -y install mysql # Checked out, gammu needs it to install
 yum -y install samba-client # Arnold uses nmblookup yum -y install samba-client # Arnold uses nmblookup
  
  
 ### ###
-### Install and configure NAV 3.2.1 and dependencies+### Install and configure NAV and dependencies
 ### ###
  
Line 510: Line 596:
 ## Install Java Developer Kit ## Install Java Developer Kit
 ## ##
-wget http://​ans.hsh.no/​home/​roger/​nav3/​jdk-1_5_0_11-linux-i586-rpm.bin +wget http://​ans.hsh.no/​home/​roger/​nav3/​jdk-1_5_0_12-linux-i586-rpm.bin 
-chmod 755 jdk-1_5_0_11-linux-i586-rpm.bin +chmod 755 jdk-1_5_0_12-linux-i586-rpm.bin 
-./jdk-1_5_0_11-linux-i586-rpm.bin+./jdk-1_5_0_12-linux-i586-rpm.bin
  yes  yes
  
Line 544: Line 630:
  
 # Checked out, cricket/​compile needs it # Checked out, cricket/​compile needs it
-wget http://​ans.hsh.no/​home/​roger/​nav3/​SNMP_Session-1.08.tar.gz +wget http://​ans.hsh.no/​home/​roger/​nav3/​SNMP_Session-1.10.tar.gz 
-tar xvzf SNMP_Session-1.08.tar.gz +tar xvzf SNMP_Session-1.10.tar.gz 
-cd SNMP_Session-1.08+cd SNMP_Session-1.10
 perl Makefile.PL perl Makefile.PL
 make make
Line 571: Line 657:
  
 # CGI CPAN Perl module # CGI CPAN Perl module
-wget http://​ans.hsh.no/​home/​roger/​nav3/​CGI.pm-3.25.tar.gz +wget http://​ans.hsh.no/​home/​roger/​nav3/​CGI.pm-3.29.tar.gz 
-tar xvzf CGI.pm-3.25.tar.gz +tar xvzf CGI.pm-3.29.tar.gz 
-cd CGI.pm-3.25+cd CGI.pm-3.29
 perl Makefile.PL perl Makefile.PL
 make make
Line 607: Line 693:
  
 # Checked out, machinetracker.py needs it # Checked out, machinetracker.py needs it
-wget http://​ans.hsh.no/​home/​roger/​nav3/​IPy-0.52.tar.gz +wget http://​ans.hsh.no/​home/​roger/​nav3/​IPy-0.54.tar.gz 
-tar xvzf IPy-0.52.tar.gz +tar xvzf IPy-0.54.tar.gz 
-cd IPy-0.52+cd IPy-0.54
 python setup.py install python setup.py install
 cd .. cd ..
Line 650: Line 736:
  
 ## ##
-## Install NAV 3.2.1 RPM+## Install NAV RPM
 ## ##
  
 # Download and install rpm made by Alexander Krapivin of MSU in Moscow # Download and install rpm made by Alexander Krapivin of MSU in Moscow
-wget http://​ans.hsh.no/​home/​roger/​nav3/​nav-3.2.1-1.noarch.rpm +wget http://​ans.hsh.no/​home/​roger/​nav3/​nav-3.2.2-1.noarch.rpm 
-rpm -ivh --nodeps nav-3.2.1-1.noarch.rpm+rpm -ivh --nodeps nav-3.2.2-1.noarch.rpm
  
 # I want to have the alert emails to give the correct servername in the "​From:"​ header. # I want to have the alert emails to give the correct servername in the "​From:"​ header.
Line 687: Line 773:
 ## ##
 cat << EOF > /​etc/​profile.d/​nav_environ.sh cat << EOF > /​etc/​profile.d/​nav_environ.sh
-JAVA_HOME=/​usr/​java/​jdk1.5.0_11+JAVA_HOME=/​usr/​java/​jdk1.5.0_12
 PATH=\$PATH:​\$JAVA_HOME/​jre/​bin PATH=\$PATH:​\$JAVA_HOME/​jre/​bin
 export JAVA_HOME export JAVA_HOME
Line 725: Line 811:
 mkdir JavaSNMP mkdir JavaSNMP
 cd JavaSNMP cd JavaSNMP
-wget http://​ans.hsh.no/​home/​roger/​nav3/​source_1.4.1.zip +wget http://​ans.hsh.no/​home/​roger/​nav3/​source_1.4.2.zip 
-unzip source_1.4.1.zip +unzip source_1.4.2.zip 
-export PATH=$PATH:/​usr/​java/​jdk1.5.0_11/bin+export PATH=$PATH:/​usr/​java/​jdk1.5.0_12/bin
 make SNMPPackage make SNMPPackage
 cp snmp.jar /​usr/​local/​nav/​lib/​java cp snmp.jar /​usr/​local/​nav/​lib/​java
Line 741: Line 827:
 #   ​YourMobileNumber #   ​YourMobileNumber
 # #
-wget http://​ans.hsh.no/​home/​roger/​nav3/​gammu-1.08.00-1.el4.rf.i386.rpm +wget http://​ans.hsh.no/​home/​roger/​nav3/​gammu-1.11.0-1.el4.rf.i386.rpm 
-rpm -ivh gammu-1.08.00-1.el4.rf.i386.rpm+rpm -ivh gammu-1.11.0-1.el4.rf.i386.rpm
 # #
 # First you have to edit the /​etc/​gammurc file to support your mobile phone # First you have to edit the /​etc/​gammurc file to support your mobile phone
Line 773: Line 859:
 usermod -G uucp navcron usermod -G uucp navcron
 # #
-WORKAROUND: MetaNAV does not like "smsd dot pl" so please substitute +Now you can test the smsd.pl module to see that it will send SMS'​es:​
-# "​FIXME"​ with "​smsd"​+
 # #
-# Now you can test the FIXME.pl module to see that it will send SMS'​es:​ +/​usr/​local/​nav/​bin/​smsd.pl -t YourMobileNumber
-+
-/​usr/​local/​nav/​bin/​FIXME.pl -t YourMobileNumber+
 # #
 # Again change "​YourMobileNumber"​ with the phone number of your mobile # Again change "​YourMobileNumber"​ with the phone number of your mobile
Line 786: Line 869:
 ## Install and configure Tomcat ## Install and configure Tomcat
 ## ##
-wget http://​ans.hsh.no/​home/​roger/​nav3/​apache-tomcat-5.5.20.tar.gz +wget http://​ans.hsh.no/​home/​roger/​nav3/​apache-tomcat-5.5.23.tar.gz 
-tar --extract --verbose --ungzip --file apache-tomcat-5.5.20.tar.gz --directory /usr/local+tar --extract --verbose --ungzip --file apache-tomcat-5.5.23.tar.gz --directory /usr/local
 # Let Tomcat only listen to the localhost address # Let Tomcat only listen to the localhost address
-sed -e '​s/​port="​8080"/​port="​8080"​ address="​127.0.0.1"/'​ -i /​usr/​local/​apache-tomcat-5.5.20/​conf/​server.xml+sed -e '​s/​port="​8080"/​port="​8080"​ address="​127.0.0.1"/'​ -i /​usr/​local/​apache-tomcat-5.5.23/​conf/​server.xml
 # Link in the NAV servlets # Link in the NAV servlets
-ln -s /​usr/​local/​nav/​apache/​webapps/​*.war /​usr/​local/​apache-tomcat-5.5.20/webapps+ln -s /​usr/​local/​nav/​apache/​webapps/​*.war /​usr/​local/​apache-tomcat-5.5.23/webapps
  
  
Line 900: Line 983:
 ## Start Tomcat ## Start Tomcat
 ## ##
-/​usr/​local/​apache-tomcat-5.5.20/​bin/​startup.sh+/​usr/​local/​apache-tomcat-5.5.23/​bin/​startup.sh
  
  
Line 931: Line 1014:
 # Start NAV # Start NAV
 . /​etc/​profile.d/​nav_environ.sh . /​etc/​profile.d/​nav_environ.sh
-/​usr/​local/​apache-tomcat-5.5.20/​bin/​startup.sh+/​usr/​local/​apache-tomcat-5.5.23/​bin/​startup.sh
 /​usr/​local/​nav/​bin/​nav start /​usr/​local/​nav/​bin/​nav start
 EOF EOF
Line 943: Line 1026:
 # #
 # http://​java.sun.com # http://​java.sun.com
-# http://​gicl.cs.drexel.edu/​people/​sevy/​snmp/​source_1.4.1.zip 
 # http://​dag.wieers.com/​packages/​RPM-GPG-KEY.dag.txt # http://​dag.wieers.com/​packages/​RPM-GPG-KEY.dag.txt
 # http://​dag.wieers.com/​packages/​rrdtool/​rrdtool-1.0.50-3.el4.rf.i386.rpm # http://​dag.wieers.com/​packages/​rrdtool/​rrdtool-1.0.50-3.el4.rf.i386.rpm
Line 949: Line 1031:
 # http://​dag.wieers.com/​packages/​rrdtool/​rrdtool-devel-1.0.50-3.el4.rf.i386.rpm # http://​dag.wieers.com/​packages/​rrdtool/​rrdtool-devel-1.0.50-3.el4.rf.i386.rpm
 # http://​dag.wieers.com/​packages/​perl-TimeDate/​perl-TimeDate-1.16-1.2.el4.rf.noarch.rpm # http://​dag.wieers.com/​packages/​perl-TimeDate/​perl-TimeDate-1.16-1.2.el4.rf.noarch.rpm
-# http://​www.switch.ch/​misc/​leinen/​snmp/​perl/​dist/​SNMP_Session-1.08.tar.gz+# http://​www.switch.ch/​misc/​leinen/​snmp/​perl/​dist/​SNMP_Session-1.10.tar.gz
 # ftp://​ftp.uninett.no/​pub/​CPAN/​modules/​by-module/​MD5/​GAAS/​MD5-2.03.tar.gz # ftp://​ftp.uninett.no/​pub/​CPAN/​modules/​by-module/​MD5/​GAAS/​MD5-2.03.tar.gz
 # ftp://​ftp.uninett.no/​pub/​CPAN/​modules/​by-module/​DB_File/​DB_File-1.815.tar.gz # ftp://​ftp.uninett.no/​pub/​CPAN/​modules/​by-module/​DB_File/​DB_File-1.815.tar.gz
-# ftp://​ftp.uninett.no/​pub/​CPAN/​modules/​by-module/​CGI/​CGI.pm-3.25.tar.gz+# ftp://​ftp.uninett.no/​pub/​CPAN/​modules/​by-module/​CGI/​CGI.pm-3.29.tar.gz
 # ftp://​ftp.uninett.no/​pub/​CPAN/​modules/​by-module/​Pg/​pgsql_perl5-1.9.0.tar.gz # ftp://​ftp.uninett.no/​pub/​CPAN/​modules/​by-module/​Pg/​pgsql_perl5-1.9.0.tar.gz
 # http://​initd.org/​pub/​software/​psycopg/​psycopg-1.1.21.tar.gz # http://​initd.org/​pub/​software/​psycopg/​psycopg-1.1.21.tar.gz
-# http://​cheeseshop.python.org/​packages/​source/​I/​IPy/​IPy-0.52.tar.gz+# http://​cheeseshop.python.org/​packages/​source/​I/​IPy/​IPy-0.54.tar.gz
 # http://​heanet.dl.sourceforge.net/​sourceforge/​py-rrdtool/​py-rrdtool-0.2.1.tar.gz # http://​heanet.dl.sourceforge.net/​sourceforge/​py-rrdtool/​py-rrdtool-0.2.1.tar.gz
 # http://​heanet.dl.sourceforge.net/​sourceforge/​pysnmp/​pysnmp-2.0.9.tar.gz # http://​heanet.dl.sourceforge.net/​sourceforge/​pysnmp/​pysnmp-2.0.9.tar.gz
Line 961: Line 1043:
 # http://​forgethtml.sourceforge.net/​forgethtml-cvs-2004-10-21.tar.gz # http://​forgethtml.sourceforge.net/​forgethtml-cvs-2004-10-21.tar.gz
 # http://​heanet.dl.sourceforge.net/​sourceforge/​forgetsql/​forgetSQL-0.5.1.tar.gz # http://​heanet.dl.sourceforge.net/​sourceforge/​forgetsql/​forgetSQL-0.5.1.tar.gz
-# http://​heanet.dl.sourceforge.net/​sourceforge/​nav/​nav-3.2.1-1.noarch.rpm +# http://​heanet.dl.sourceforge.net/​sourceforge/​nav/​nav-3.2.2-1.noarch.rpm 
-# http://​dag.wieers.com/​packages/​gammu/​gammu-1.08.00-1.el4.rf.i386.rpm +# http://​gicl.cs.drexel.edu/​people/​sevy/​snmp/​source_1.4.2.zip 
-# http://​www.apache.org/​dist/​tomcat/​tomcat-5/​v5.5.20/​bin/​apache-tomcat-5.5.20.tar.gz+# http://​dag.wieers.com/​packages/​gammu/​gammu-1.11.0-1.el4.rf.i386.rpm 
 +# http://​www.apache.org/​dist/​tomcat/​tomcat-5/​v5.5.23/​bin/​apache-tomcat-5.5.23.tar.gz
 # http://​heanet.dl.sourceforge.net/​sourceforge/​cricket/​cricket-1.0.5.tar.gz # http://​heanet.dl.sourceforge.net/​sourceforge/​cricket/​cricket-1.0.5.tar.gz
 # #
 </​code>​ </​code>​
- 
installingonrhel4.txt · Last modified: 2007/07/30 13:39 by rogeraas