root/branches/zenoss-2.0.x/inst/docs/INSTALL_UBUNTU610.txt

Revision 5742, 5.8 kB (checked in by ian, 18 months ago)
* Removed ^M chars
Line 
1Installing Zenoss on Ubuntu Server
2
31. Install LAMP server from Ubuntu server CD (Dapper+Zenoss min
4   requirements: 150mb+192mb=342mb ram, 1400mb disk (900mb used, 500mb
5   free for data). This install tested on vmware server 1.0.1.
6
7
82. Login as default user.
9
10
113. Install ssh so you can putty (remote terminal) from your desktop:
12
13 sudo apt-get install ssh
14 ifconfig | grep cast           (to see what your IP is)
15
16
174. Putty in and login as default user. Activate root login -required
18   for zenoss and so we don't have to "sudo" everything:
19
20 sudo passwd root
21 (give new password for root)
22 su
23
24
255. Need to add universe for apt-get use (svn, mysql dev) (using nano
26   for editor):
27
28 nano /etc/apt/sources.list
29 (uncomment these two lines by removing #)
30 deb http://ca.archive.ubuntu.com/ubuntu/ dapper universe
31 deb-src http://ca.archive.ubuntu.com/ubuntu/ dapper universe
32 (save file, then refresh at command prompt)
33 apt-get update
34
35
366. Update to latest Ubuntu:
37
38 apt-get upgrade
39
40
417. Install make, mysql, python development tools for Zenoss. Note that
42   the mysql dev version number is different for each mysql
43   release. The "15" version below is for mysql 5.0.x. Easy way to
44   find your version is run "/etc/init.d/mysql status" . Go to
45   packages.ubuntu.com to check for correct package.
46
47 apt-get install build-essential                (make,cc, etc)
48 apt-get install libmysqlclient15-dev
49 apt-get install python-dev
50
51
528. Ubuntu server installs using DHCP - we should be using a static IP:
53
54 nano /etc/network/interfaces
55 (change this line to the following lines (assume static ip is 192.168.3.10))
56 iface eth0 inet dhcp
57 iface eth0 inet static
58         address 192.168.3.10
59         netmask 255.255.255.0
60         network 192.168.3.0
61         broadcast 192.168.3.255
62         gateway 192.168.3.1
63
64
659. Edit hosts file for your new IP address. Assuming you named the
66   server "zenoss" and running in "mydomain.inc", change the second
67   127.0.0.1 to:
68
69 192.168.3.10   zenoss.mydomain.inc   zenoss
70
71
7210. Restart the network:
73
74 /etc/init.d/networking restart
75
76
7711. Add zenoss user:
78
79 adduser zenoss   (use zenoss for password if security not an issue)
80
81
8212. Add zenoss install directory:
83
84 mkdir /usr/local/zenoss
85 chown zenoss /usr/local/zenoss
86
87
8813. Login as zenoss user and set up some variables in login script:
89
90 su zenoss
91 cd        (goto home directory)
92 nano  .bashrc
93 (add these lines)
94 export ZENHOME=/usr/local/zenoss
95 export PYTHONPATH=$ZENHOME/lib/python
96 export PATH=$ZENHOME/bin:$PATH
97
98
9914. Some zenoss daemons require root access, so add zenoss to sudo
100    users. Login as root:
101
102 visudo (loads sudo editor - nano in this case - add the following
103         2 lines, changing "monitor" to the name of your box):
104
105 zenoss monitor = NOPASSWD: /usr/local/zenoss/bin/*,/bin/kill
106 Defaults env_keep += "PYTHONPATH ZENHOME"
107
108
10915. Zenoss requires the mysql root password to be not blank (default),
110    so we need to change the mysql password. Login as root:
111
112 /etc/init.d/mysql stop (stop mysql)
113 nano mysql-init        (create a new file and enter this line:)
114 SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPassword');
115 mysqld_safe --init-file=~/mysql-init &
116 /etc/init.d/mysql start   (start mysql)
117 rm mysql-init
118
119
12016. Get latest zenoss tarball. To use subversion to download it, need
121    to download svn first from universe. Login as root:
122
123 apt-get install svn-buildpackage
124 su zenoss      (login as zenoss)
125 cd             (change to /home/zenoss)
126 (download latest tar to zenossinst subdir)
127 svn co http://dev.zenoss.org/svn/trunk/inst zenossinst
128
129
13017. Install zenoss from its install directory. For mysql, use the
131    default root user, with the password you used in step 15. For
132    zenoss password, create a new one:
133
134 cd zenossinst
135 ./install.sh   (cross your fingers)
136
137
13818. If install fails, cleanup with:
139
140 make clean
141
142
14319. If install says successful, browse the zenoss portal
144
145 Go to http:// 192.168.3.10:8080/zport/dmd
146 Username is "admin"
147 Password is the one entered for Zenoss "admin" user in step 17
148
149
15020. To monitor your zenoss server, install SNMP agent. After
151    installing, you need to configure it to allow 'public' to read all
152    OIDs (default is to read very few OIDs):
153
154 apt-get install snmpd snmp
155 cp /etc/snmp/snmpd.conf  /etc/snmp//snmpd.conf.bak
156 snmpconf       (configure snmpd agent to allow public read)
157 cp snmpd.conf  /etc/snmp/
158 /etc/init.d/snmpd restart
159
160
16121. Default ubuntu mail agent (MTA) is exim4, which may need to be
162    setup if you want email alerts to work with a remote mail server
163    (mail.mydomain.inc):
164
165 dpkg-reconfigure exim4-config          (select default options, except for below)
166 mail sent by smarthost; received via SMTP or fetchmail
167 mail.mydomain.inc
168
169
17022. To test mail agent, need to install a frontend (MUA - mail) to
171    exim4:
172
173 apt-get install mailutils
174 mail youremail@yourdomain.inc
175 (press enter for Cc:, type in subject, press enter)
176 (type in body of message, then enter)
177 .   (type in single period, then enter, to end composing and email is queued)
178 mailq (to see if mail is sent or still in queue)
179
180
18123. For Windows monitoring, install SNMP from add/remove Windows
182    monitoring components, then install SNMP-Informant:
183    www.snmp-informant.com - download the free SNMP for Windows.
184
185
18624. Read the Admin guide at www.zenoss.com/download/
187
188
18925. To add zenoss daemons to run at boot up, login as root. Apached
190    runtime is 90, so we use 95 to have it run after it and
191    mysql. Also need to modify zenoss script for ZENHOME path:
192
193 cp $ZENHOME/bin/zenoss  /etc/init.d
194 nano  /etc/init.d/zenoss
195 (add the following line to ensure all scripts can find ZENHOME)
196 export ZENHOME=/usr/local/zenoss
197 update-rc.d zenoss 95
198
199
20026. Thanks to the following useful ubuntu / mysql / zenoss sites:
201
202 www.howtoforge.com/perfect_setup_ubuntu_6.06
203 ubuntuguide.org/wiki/Ubuntu_dapper
204 packages.ubuntu.com
205 dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html
206 www.zenoss.com/download/install
Note: See TracBrowser for help on using the browser.