This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
installingonrhel4 [2007/05/16 06:39] morten something got lost in conversion from moinmoin, re-uploading |
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.2.1 installation | + | ### NAV 3 installation |
### | ### | ||
### for CentOS 4 or Red Hat Enterprise Linux 4 Advanced Server | ### for CentOS 4 or Red Hat Enterprise Linux 4 Advanced Server | ||
### | ### | ||
- | ### Roger Aas, Stord/Haugesund College | + | ### 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: | ### 22.02.2007: | ||
### - Updated for NAV 3.2.1 | ### - Updated for NAV 3.2.1 | ||
Line 555: | 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 567: | 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 585: | 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 619: | 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 646: | 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 682: | 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 725: | 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 762: | 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 800: | 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 816: | 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 848: | 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 861: | 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 975: | 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 1006: | 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 1018: | 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 1024: | 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 1036: | 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> |