root/trunk/inst/docs/INSTALL_UBUNTU610.txt

Revision 8749, 3.6 kB (checked in by abray, 8 months ago)
adding line breaks at 80 Char to all install instructionsm
Line 
1Installing Zenoss on Ubuntu Server
2
31. Install Ubuntu 6.10. This install tested on a vmplayer image.
4
52. Login as default user.
6
7Commands that need to run as root will be prefixed with sudo. You can sudo from
8the default user.
9
103. Need to add universe for apt-get use (svn, mysql dev) (using nano for
11editor):
12
13sudo nano /etc/apt/sources.list
14
15Uncomment the two lines that contain "dapper univers" by removing #:
16
17deb http://ca.archive.ubuntu.com/ubuntu/ dapper universe deb-src
18http://ca.archive.ubuntu.com/ubuntu/ dapper universe
19
20Save file, then refresh at command prompt:
21
22sudo apt-get update
23
244. Install development tools needed to build Zenoss.
25
26sudo apt-get install -y build-essential libmysqlclient15-dev \ python-dev
27svn-buildpackage snmpd snmp \ autoconf swig mysql-server-5.0 mysql-client-5.0
28
295. Add zenoss user:
30
31sudo adduser zenoss
32
336. Add zenoss install directory:
34
35sudo mkdir /usr/local/zenoss sudo chown zenoss /usr/local/zenoss
36
377. Login as zenoss user and set up some variables in login script:
38
39su - zenoss cd        (goto home directory) nano  .bashrc . .bashrc
40
41Add these lines:
42
43export ZENHOME=/usr/local/zenoss export PYTHONPATH=$ZENHOME/lib/python export
44PATH=$ZENHOME/bin:$PATH
45
46
478. Get latest zenoss tarball. To use subversion to download it, need to download
48svn first from universe. Login as root:
49
50apt-get install svn-buildpackage su - zenoss cd
51
52Download latest tar to zenossinst subdir:
53
54svn co http://dev.zenoss.org/svn/trunk/inst zenossinst
55
56
579. Install zenoss from its install directory. For mysql, use the default root
58user, with the password you used in step 15. For zenoss password, create a new
59one:
60
61cd zenossinst ./install.sh
62
6310. Do as the install instructions say and change the permissions on zensocket
64(as root):
65
66sudo chown root:zenoss $ZENHOME/bin/zensocket sudo chmod 04750
67$ZENHOME/bin/zensocket
68
6911. Start zenoss:
70
71$ZENHOME/bin/zenoss start
72
7312. If install fails, cleanup with:
74
75make clean
76
7713. If install says successful, browse the zenoss portal
78
79Determine your ip address:
80
81/sbin/ifconfig -a | grep addr
82
83Use that address to browse to Zenoss:
84
85
86Go to http://<your address here>:8080/zport/dmd, for example, you might browse
87to http://192.168.1.100:8080/zport/dmd.
88
89Username is "admin" Password is the one entered for Zenoss "admin" user in step
909
91
9214. To monitor your zenoss server, configure your SNMP agent. After installing,
93you need to configure it to allow 'public' to read all OIDs (default is to read
94very few OIDs):
95
96sudo cp /etc/snmp/snmpd.conf  /etc/snmp//snmpd.conf.bak sudo cp
97/home/zenoss/zenossinst/conf/snmpd.conf /etc/snmpd.conf sudo cp snmpd.conf
98/etc/snmp/ sudo /etc/init.d/snmpd restart
99
10015. Default ubuntu mail agent (MTA) is exim4, which may need to be setup if you
101want email alerts to work with a remote mail server (mail.mydomain.inc):
102
103sudo dpkg-reconfigure exim4-config
104
105# select default options, except for below) mail sent by smarthost; received via
106SMTP or fetchmail mail.mydomain.inc
107
10816. To test mail agent, need to install a frontend (MUA - mail) to exim4:
109
110apt-get install mailutils echo 'this is a test' | mail -s 'test subject'
111youremail@yourdomain.inc
112
113# to see if mail is sent or still in queue: sudo mailq
114
115
11617. Read the Admin guide at www.zenoss.com/download/
117
118
11918. To add zenoss daemons to run at boot up, login as root. Apached runtime is
12090, so we use 95 to have it run after it and mysql. Also need to modify zenoss
121script for ZENHOME path:
122
123sudo cp $ZENHOME/bin/zenoss  /etc/init.d sudo nano  /etc/init.d/zenoss
124
125Add the following line to ensure all scripts can find ZENHOME)
126
127export ZENHOME=/usr/local/zenoss
128
129Run the following to get zenoss to start in the proper order
130
131sudo update-rc.d zenoss defaults 95
Note: See TracBrowser for help on using the browser.