#!/bin/sh # # This is for 2.0 V="2.0" if [ -z "$1" ] then REL="C" else REL="$1" fi echo "" echo "Installing Astium $V$REL, please wait...." echo "" if selinuxenabled then echo "Please set SELINUX=disabled in /etc/sysconfig/selinux." echo "Then REBOOT and try installing again." exit 1 fi ifconfig eth0 > /dev/null 2>&1 if [ "$?" = "1" ] then echo "Sorry, your system does not have an eth0 interface. This is required." echo "The Astium wil NOT work without an eth0 interface. STOP." exit 1 fi # remove some conflicting packages (because we use a newer libevent). Don't worry, you can reinstall them later if you wish. #rpm -e nfs-utils --nodeps #rpm -e system-config-nfs --nodeps # The following package is required #echo "NOTE: due to a bug in CentOS 5.4 we now try to install yum-priorities twice" #echo " Some errors may be shown, you can ignore those." # install yum-priorities yum -y install yum-priorities rpm -q yum-priorities if [ $? -eq 1 ] then rpm -Uvh ftp://yum.neonova.nl/pub/dist/Neonova-CentOS/2.0/CentOS5/neonova/A/i386/os/Neonova/RPMS/yum-priorities-*.noarch.rpm fi # install some more required packages yum -y install make postgresql-pl # Now, install the NeoNova repository files, and the Astium kernel: rpm -Uvh ftp://yum.astium.nl/pub/dist/Astium/$V/CentOS5/neonova/$REL/i386/os/CentOS/astium-release-$V-*.noarch.rpm rpm -Uvh ftp://yum.astium.nl/pub/dist/Astium/$V/CentOS5/neonova/$REL/i386/os/Neonova/RPMS/astium-repo-$V-*.noarch.rpm rpm -Uvh ftp://yum.neonova.nl/pub/dist/Neonova-CentOS/2.0/CentOS5/neonova/A/i386/os/Neonova/RPMS/neonova-centos-release-2.0-*.noarch.rpm # Install our kernel with zaptel drivers rpm -ivh --force ftp://yum.astium.nl/pub/dist/Astium/$V/CentOS5/neonova/$REL/i386/os/CentOS/kernel-2.6*i686.rpm # update CentOS yum -y update # temp because of bug in CentOS 5.7, they dropped tftp-server from their repos yum -y install xinetd rpm -Uvh ftp://yum.astium.nl/pub/tftp-server-0.49-2.el5.centos.$RELEASE_ARCH.rpm # install postgres yum -y install postgresql-server service postgresql start # Now we're ready to install the Astium yum -y install astium echo "Done. First reboot your machine." echo "Then point your browser to this machine and login using system/admin." echo echo "Are you running behind a firewall, ensure the proper ports are opened." echo "See: http://www.oneip.nl/nl/content/download_astium/installation.php." echo echo "NOTE: The currently supported countries in the Astium are:" echo "" echo " Belgium" echo " Germany" echo " Latvia" echo " Netherlands" echo " Netherlands Antilles" echo " United Kingdom" echo " South Africa" echo "" echo "If you want your country to be supported, just send an email to: support@oneip.nl" echo ""