How to install Zenoss 2.x on Suse Linux Enterprise Server 10 Service Pack 1
(SLES10 sp1)
By Brad Bothun - brad at bothun dot org
I created these instructions from memory after fighting with the install for an
entire day. Feel free to tweak!
Install SLES10 sp1 with the following changes to the default settings:
1. Remove Novell AppArmor
2. Remove Print Server
3. Add C/C++ Compiler and tools
4. Turn off software firewall
Once the installation is complete:
Install some dependencies from Yast:
yast -i openssl openssl-devel net-snmp perl-Digest-HMAC perl-DBI perl-Net-SNMP
perl-Crypt-DES pyxml mysql-client mysql mysql-devel
yast -i gmp gmp-devel
(These can also be installed manually from Yast)
Start MySQL:
/etc/init.d/mysql start
Assign a password for the MySQL root user:
/usr/bin/mysqladmin -u root password 'newmysqlpassword'
Create a user and group for Zenoss:
useradd -m zenoss
passwd zenoss
groupadd zenoss
Setup the zenoss environment:
vi /home/zenoss/.bashrc
Paste in the following lines:
export ZENHOME="/opt/zenoss"
export PATH="${ZENHOME}/bin:${PATH}"
export PYTHONPATH="/opt/zenoss/lib/python"
export LD_LIBRARY_PATH="/opt/zenoss/lib"
Make some directories for the Zenoss source and dependancies.
mkdir -p /usr/local/src/zenoss/core
mkdir -p /usr/local/src/zenoss/deps
Create the Zenoss install directory:
mkdir -p /opt/zenoss
Get Zenoss 2.x:
cd /usr/local/src/zenoss/core
wget http://downloads.sourceforge.net/zenoss/zenoss-2.1.0-0.tar.gz
gunzip zenoss-2.1.0-0.tar.gz
tar -xvf zenoss-2.1.0-0.tar
Get some rpms from the SUSE build service:
cd /usr/local/src/zenoss/deps
Goto: http://software.opensuse.org/search
Select "ALL" from the drop down menu
Search for "swig", copy the link and use wget to download the rpm.
wget
http://download.opensuse.org/repositories/openSUSE:/10.3/standard/i586/swig-1.3.31-50.i586.rpm
Search for "python-zopeinterface", copy the link and use wget to download the
rpm.
wget
http://download.opensuse.org/repositories/openSUSE:/10.3/standard/i586/python-zopeinterface-3.3.0-16.i586.rpm
Install the RPMs download from opensuse
rpm -i *.rpm
Download and old version of python from
http://www.python.org/download/releases/2.3.6/
wget http://www.python.org/ftp/python/2.3.6/Python-2.3.6.tgz
gunzip Python-2.3.6.tgz
tar -xvf Python-2.3.6.tar
cd Python-2.3.6
Compile and install python in the Zenoss install directory:
./configure --prefix=/opt/zenoss/python
make
make install
Note: This is a hack and not a very good one.
Use python 2.3.6 to install Zenoss
cd /usr/bin
rm python
mv python2.4 oldpython2.4
Link to the 2.3.6 version of python
ln -s /opt/zenoss/python/bin/python2.3 python
ln -s /opt/zenoss/python/bin/python2.3 python2.4
Change the ownership of some directories and files:
chown -R zenoss:zenoss /opt/zenoss
chown -R zenoss:zenoss /usr/local/src/zenoss/core
Log into your sever in a new window as the zenoss user and run the installer:
[EMAIL PROTECTED]:~>
[EMAIL PROTECTED]:~> cd /usr/local/src/zenoss/core/zenoss-2.1.0/
[EMAIL PROTECTED]:~> ./install.sh
After the installation:
chown root:zenoss /opt/zenoss/bin/zensocket
chmod 04750 /opt/zenoss/bin/zensocket
Start Zenoss:
/opt/zenoss/bin/zenctl start
Note if the install fails try compiling zope Interface from source:
rpm -qa | grep zope
rpm -e "zope interface package name"
Get the old version of zope (ZopeInterface-3.1.0c1):
wget
http://www.zope.org/Products/ZopeInterface/3.1.0c1/ZopeInterface-3.1.0c1.tgz
gunzip ZopeInterface-3.1.0c1.tgz
tar -xvf ZopeInterface-3.1.0c1.tar
cd ZopeInterface-3.1.0c1/
python setup.py build
python setup.py install
You will probably want to relink your python install back to the version that
came with the OS:
cd /usr/bin
rm python
rm python2.4
mv oldpython2.4 python2.4
ln -s python2.4 python
------------------------
Brad Bothun
-------------------- m2f --------------------
Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=12014#12014
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users