installingonrhel4
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| installingonrhel4 [2007/07/12 10:18] – Updated to NAV 3.2.2 rogeraas | installingonrhel4 [2007/07/30 13:39] (current) – Fixed sms daemon rogeraas | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| ### | ### | ||
| ### | ### | ||
| + | ### 27.07.2007: | ||
| + | ### - Tested for RHEL4 Update 5 | ||
| + | ### - No need to make ~/.gnupg anymore | ||
| + | ### - Included a patch for forgetSQL-0.5.1 | ||
| + | ### - Fixed smsd.py setup, now sends SMSes again | ||
| + | ### - Big rewrite mainly because of this fix | ||
| ### 12.07.2007: | ### 12.07.2007: | ||
| ### - Updated for NAV 3.2.2 | ### - Updated for NAV 3.2.2 | ||
| Line 121: | Line 127: | ||
| # | # | ||
| # Boot from RHEL4AS CD1 | # Boot from RHEL4AS CD1 | ||
| - | # Press Enter | + | # " |
| - | # Select | + | # "CD Found", |
| # " | # " | ||
| # " | # " | ||
| # " | # " | ||
| # "Disk Partitioning Setup", | # "Disk Partitioning Setup", | ||
| - | # " | + | # " |
| # " | # " | ||
| - | # " | + | # " |
| # "Disk Setup", | # "Disk Setup", | ||
| # "Boot Loader Configuration", | # "Boot Loader Configuration", | ||
| Line 138: | Line 144: | ||
| # Type in ip-addresses for gateway and DNS servers | # Type in ip-addresses for gateway and DNS servers | ||
| # Press Next | # Press Next | ||
| - | # " | + | # " |
| # " | # " | ||
| # " | # " | ||
| Line 154: | Line 160: | ||
| # | # | ||
| # Boot from CentOS 4 CD1 or DVD | # Boot from CentOS 4 CD1 or DVD | ||
| - | # Press Enter | + | # " |
| - | # Select | + | # "CD Found", |
| # " | # " | ||
| # " | # " | ||
| Line 172: | Line 178: | ||
| # Type in ip-addresses for gateway and DNS servers | # Type in ip-addresses for gateway and DNS servers | ||
| # Press Next | # Press Next | ||
| - | # " | + | # " |
| # " | # " | ||
| # " | # " | ||
| Line 234: | Line 240: | ||
| ## Import RPM Key | ## Import RPM Key | ||
| ## | ## | ||
| - | # gpg on RHEL4/ | ||
| - | mkdir ~/.gnupg | ||
| gpg --import / | gpg --import / | ||
| rpm --import / | rpm --import / | ||
| Line 246: | Line 250: | ||
| sed -e ' | sed -e ' | ||
| # Register with RHN | # Register with RHN | ||
| - | up2date | + | rhn_register |
| # Check available updates | # Check available updates | ||
| up2date -l | up2date -l | ||
| Line 470: | Line 474: | ||
| ## | ## | ||
| - | ## Time to reboot the server | + | ## Time to reboot the server |
| ## | ## | ||
| shutdown -r 0 | shutdown -r 0 | ||
| + | |||
| + | |||
| + | ## | ||
| + | ## Log in with your new user and become root | ||
| + | ## Root access is needed for installing and configuring NAV | ||
| + | ## | ||
| + | su - | ||
| Line 568: | Line 579: | ||
| up2date mysql # Checked out, gammu 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 | ||
| + | up2date pkgconfig # python-gammu needs it to install | ||
| # CentOS4: | # CentOS4: | ||
| yum -y install gcc # + cpp glibc-devel glibc-headers glibc-kernheaders | yum -y install gcc # + cpp glibc-devel glibc-headers glibc-kernheaders | ||
| Line 580: | Line 592: | ||
| yum -y install mysql # Checked out, gammu 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 | ||
| + | yum -y install pkgconfig # python-gammu needs it to install | ||
| Line 591: | Line 604: | ||
| mkdir ~/nav3 | mkdir ~/nav3 | ||
| cd ~/nav3 | cd ~/nav3 | ||
| + | |||
| + | |||
| + | ## | ||
| + | ## Install NAV rpm made by Alexander Krapivin of OILspace Inc., UK | ||
| + | ## | ||
| + | wget http:// | ||
| + | rpm -ivh --nodeps nav-3.2.2-1.noarch.rpm | ||
| + | |||
| + | |||
| + | ## | ||
| + | ## Download NAV source tar and extract patches | ||
| + | ## | ||
| + | wget http:// | ||
| + | tar xvzf nav-3.2.2.tar.gz nav-3.2.2/ | ||
| Line 600: | Line 627: | ||
| ./ | ./ | ||
| yes | yes | ||
| + | |||
| + | |||
| + | ## | ||
| + | ## Install Tomcat | ||
| + | ## | ||
| + | wget http:// | ||
| + | tar --extract --verbose --ungzip --file apache-tomcat-5.5.23.tar.gz --directory /usr/local | ||
| + | |||
| + | |||
| + | ## | ||
| + | ## Install Java SNMP Package | ||
| + | ## | ||
| + | mkdir JavaSNMP | ||
| + | cd JavaSNMP | ||
| + | wget http:// | ||
| + | unzip source_1.4.2.zip | ||
| + | export PATH=$PATH:/ | ||
| + | make SNMPPackage | ||
| + | cp snmp.jar / | ||
| + | cd .. | ||
| Line 608: | Line 655: | ||
| gpg --import RPM-GPG-KEY.dag.txt | gpg --import RPM-GPG-KEY.dag.txt | ||
| rpm --import RPM-GPG-KEY.dag.txt | rpm --import RPM-GPG-KEY.dag.txt | ||
| + | |||
| + | |||
| + | ## | ||
| + | ## Install gammu | ||
| + | ## | ||
| + | wget http:// | ||
| + | rpm -ivh gammu-1.11.0-1.el4.rf.i386.rpm | ||
| + | wget http:// | ||
| + | rpm -ivh gammu-devel-1.11.0-1.el4.rf.i386.rpm | ||
| Line 730: | Line 786: | ||
| wget http:// | wget http:// | ||
| tar xvzf forgetSQL-0.5.1.tar.gz | tar xvzf forgetSQL-0.5.1.tar.gz | ||
| - | cd forgetSQL-0.5.1 | + | # Patch it with patch from NAV source |
| + | cp nav-3.2.2/ | ||
| + | cd forgetSQL-0.5.1/lib | ||
| + | patch < | ||
| + | cd .. | ||
| python setup.py install | python setup.py install | ||
| cd .. | cd .. | ||
| + | # Install Python bindings for gammu | ||
| + | wget http:// | ||
| + | tar xvzf python-gammu-0.20.tar.gz | ||
| + | cd python-gammu-0.20 | ||
| + | python setup.py install | ||
| + | cd .. | ||
| + | |||
| + | |||
| + | ### | ||
| + | ### Nav configuration | ||
| + | ### | ||
| ## | ## | ||
| - | ## Install | + | ## NAV setup |
| ## | ## | ||
| - | |||
| - | # Download and install rpm made by Alexander Krapivin of MSU in Moscow | ||
| - | wget http:// | ||
| - | rpm -ivh --nodeps nav-3.2.2-1.noarch.rpm | ||
| - | |||
| # I want to have the alert emails to give the correct servername in the " | # I want to have the alert emails to give the correct servername in the " | ||
| # I do this by changing line 22 of / | # I do this by changing line 22 of / | ||
| # from " | # from " | ||
| + | # | ||
| # You may want to edit some or all of the files in the directory | # You may want to edit some or all of the files in the directory | ||
| # / | # / | ||
| # NAV installation. | # NAV installation. | ||
| - | + | # | |
| - | # Arnold needs its log file existing | + | # Edit NAV configuration |
| - | touch / | + | |
| - | + | ||
| - | + | ||
| - | ## | + | |
| - | ## Nav configuration | + | |
| - | ## | + | |
| # | # | ||
| # Site-specific: | # Site-specific: | ||
| Line 767: | Line 827: | ||
| -e '/ | -e '/ | ||
| -i / | -i / | ||
| + | # | ||
| + | # Arnold needs its log file existing | ||
| + | touch / | ||
| Line 807: | Line 870: | ||
| ## | ## | ||
| - | ## Install Java SNMP Package | + | ## Configure |
| - | ## | + | |
| - | mkdir JavaSNMP | + | |
| - | cd JavaSNMP | + | |
| - | wget http:// | + | |
| - | unzip source_1.4.2.zip | + | |
| - | export PATH=$PATH:/ | + | |
| - | make SNMPPackage | + | |
| - | cp snmp.jar / | + | |
| - | cd .. | + | |
| - | + | ||
| - | + | ||
| - | ## | + | |
| - | ## Install and configure | + | |
| ## | ## | ||
| # | # | ||
| Line 826: | Line 876: | ||
| # / | # / | ||
| # | # | ||
| - | # | ||
| - | wget http:// | ||
| - | rpm -ivh gammu-1.11.0-1.el4.rf.i386.rpm | ||
| # | # | ||
| # First you have to edit the / | # First you have to edit the / | ||
| - | # I use a Nokia 3410 with a FBUS cable connected to the serial port on the | + | # I use a Nokia 6310i with a DLR3 cable connected to the serial port on the |
| # computer so I make this / | # computer so I make this / | ||
| # | # | ||
| Line 837: | Line 884: | ||
| [gammu] | [gammu] | ||
| port = /dev/ttyS0 | port = /dev/ttyS0 | ||
| - | connection = fbus | + | connection = dlr3 |
| EOF | EOF | ||
| Line 859: | Line 906: | ||
| usermod -G uucp navcron | usermod -G uucp navcron | ||
| # | # | ||
| - | # Now you can test the smsd.pl module to see that it will send SMS' | + | # Now you can test the smsd.py module to see that it will send SMS' |
| # | # | ||
| - | / | + | / |
| # | # | ||
| # Again change " | # Again change " | ||
| Line 867: | Line 914: | ||
| ## | ## | ||
| - | ## Install and configure | + | ## Configure |
| ## | ## | ||
| - | wget http:// | ||
| - | 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 ' | sed -e ' | ||
| Line 978: | Line 1023: | ||
| ## | ## | ||
| shutdown -r 0 | shutdown -r 0 | ||
| + | |||
| + | |||
| + | ## | ||
| + | ## Log in and become root | ||
| + | ## | ||
| + | su - | ||
| Line 1005: | Line 1056: | ||
| ## Go to the webpage and log in as admin (remember to change the password) | ## Go to the webpage and log in as admin (remember to change the password) | ||
| ## and go to Toolbox, Edit database | ## and go to Toolbox, Edit database | ||
| + | |||
| ## Here is a very simple startup that I put on my server. This will | ## Here is a very simple startup that I put on my server. This will | ||
| Line 1017: | Line 1069: | ||
| / | / | ||
| EOF | EOF | ||
| + | |||
| ## | ## | ||
| Line 1025: | Line 1078: | ||
| ## | ## | ||
| # | # | ||
| + | # http:// | ||
| + | # http:// | ||
| # http:// | # http:// | ||
| + | # http:// | ||
| + | # http:// | ||
| # http:// | # http:// | ||
| + | # http:// | ||
| + | # http:// | ||
| # http:// | # http:// | ||
| # http:// | # http:// | ||
| Line 1043: | Line 1102: | ||
| # http:// | # http:// | ||
| # http:// | # http:// | ||
| - | # http://heanet.dl.sourceforge.net/sourceforge/nav/nav-3.2.2-1.noarch.rpm | + | # http://dl.cihar.com/python-gammu/latest/python-gammu-0.20.tar.gz |
| - | # http:// | + | |
| - | # http:// | + | |
| - | # http:// | + | |
| # http:// | # http:// | ||
| # | # | ||
| </ | </ | ||
installingonrhel4.1184235516.txt.gz · Last modified: by rogeraas
