root/trunk/inst/docs/INSTALL_UBUNTU704.txt

Revision 8749, 4.5 kB (checked in by abray, 8 months ago)
adding line breaks at 80 Char to all install instructionsm
Line 
1Installing Zenoss on Feisty Ubuntu
2
31. Install Ubuntu 7.04 Server from an installation CD.
4
5
62. Log in as the default user.
7
8
93. Install ssh so you can putty (remote terminal) from your desktop:
10
11sudo apt-get install ssh ifconfig | grep cast           (to see what your IP is)
12
13
144. Either via SSH or on the box itself, become the root user:
15
16sudo su [Enter password]
17
185. Several dependencies are in the 'universe' repository, so we'll need to
19modify your sources list (here we'll use vim as an editor):
20
21vim /etc/apt/sources.list
22
23Find these two lines:
24
25deb http://us.archive.ubuntu.com/ubuntu feisty main restricted deb-src
26http://us.archive.ubuntu.com/ubuntu feisty main restricted
27
28And add the 'universe' repository:
29
30deb http://us.archive.ubuntu.com/ubuntu feisty main restricted universe deb-src
31http://us.archive.ubuntu.com/ubuntu feisty main restricted universe
32
33Save the file and close the editor. Then, back at the command line:
34
35apt-get update && apt-get upgrade
36
376. Now we can install the dependencies. From the command line:
38
39apt-get install mysql-server mysql-client python-dev python2.4-dev \
40build-essential subversion libmysqlclient15-dev snmpd autoconf \ snmp swig
41python-setuptools sysv-rc-conf bzip2
42
437. Add the 'zenoss' user that will run the application:
44
45adduser zenoss
46
47If security isn't an issue, use the password 'zenoss'. Use defaults for
48everything else.
49
50
518. Zenoss requires some environment variables to be set, so we need to add them
52to the 'zenoss' user's bash startup script. Enter the command:
53
54vim /home/zenoss/.bashrc
55
56And add these lines to the end:
57
58export ZENHOME=/usr/local/zenoss export PYTHONPATH=$ZENHOME/lib/python export
59PATH=$ZENHOME/bin:$PATH
60
61Save the file and close the editor.
62
639. Now we'll make the directory into which Zenoss will install. Run:
64
65mkdir /usr/local/zenoss chown zenoss /usr/local/zenoss
66
6710. Feisty Fawn ships with Python 2.5, but certain dependencies of Zenoss are
68unable to build properly with this version. Once Zenoss has been installed, it
69will run just fine under 2.5, but we'll need to change the symlink for the
70installation. Run:
71
72unlink /usr/bin/python && ln -s /usr/bin/python2.4 /usr/bin/python
73
7411. Now it's time to install. First, become the zenoss user:
75
76su zenoss cd
77
78You're in the zenoss user's home directory. Download the latest version of
79Zenoss here. If you want to use svn to download it, run:
80
81svn co http://dev.zenoss.org/svn/trunk/inst zenoss-install
82
83If you want to use a tarball, download it to this directory and run:
84
85tar xzf zenoss-[X.XX].tar.gz
86
87Replacing the [X.XX] with the version you've downloaded. Now that you've got
88Zenoss, cd to the directory that was just created. All that's left to do is:
89
90./install.sh
91
92The installation script will ask you a few questions, then install Zenoss. If
93you run into any problems and need to run the installation again, clean up
94what's already been done with:
95
96make clean
97
9812. Once Zenoss has been installed successfully, become root again by typing:
99
100exit
101
102Or hitting Ctrl-D. Set zensocket to setuid:
103
104chown root:zenoss /usr/local/zenoss/bin/zensocket chmod 04750
105/usr/local/zenoss/bin/zensocket
106
107Switch back the Python symlinks:
108
109unlink /usr/bin/python && ln -s /usr/bin/python2.5 /usr/bin/python
110
111And have Zenoss run on system startup:
112
113ln -s /usr/local/zenoss/bin/zenoss /etc/init.d sysv-rc-conf
114
115Add Zenoss to runlevels 2, 3, 4 and 5. Reboot, and check that Zenoss started
116properly with:
117
118/usr/local/zenoss/bin/zenoss status
119
12013. To monitor your Zenoss server, install SNMP agent:
121
122apt-get install snmpd
123
124You need to configure it to allow 'public' to read all OIDs (default is to read
125very few OIDs):
126
127cp /etc/snmp/snmpd.conf{,.bak} snmpconf (configure snmpd agent to allow
128public read) cp snmpd.conf  /etc/snmp/ /etc/init.d/snmpd restart
129
130
13114. Default ubuntu mail agent (MTA) is exim4, which may need to be setup if you
132want email alerts to work with a remote mail server (mail.mydomain.inc):
133
134dpkg-reconfigure exim4-config
135
136Select default options, except:
137
138mail sent by smarthost; received via SMTP or fetchmail mail.mydomain.inc
139
140
14115. To test mail agent, need to install a frontend (MUA - mail) to exim4:
142
143apt-get install mailutils mail youremail@yourdomain.inc (press enter for Cc:,
144type in subject, press enter) (type in body of message, then enter) .   (type in
145single period, then enter, to end composing and email is queued) mailq (to see
146if mail is sent or still in queue)
147
148
14916. For Windows monitoring, install SNMP from add/remove Windows monitoring
150components, then install SNMP-Informant:
151
152www.snmp-informant.com - download the free SNMP for Windows.
153
154
15517. Read the Admin guide at http://www.zenoss.com/download/
156
Note: See TracBrowser for help on using the browser.