root/branches/zenoss-2.1.x/inst/docs/INSTALL_UBUNTU704.txt

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