Ubuntu Server 12.04 & ZM 1.25 package Install notes
Posted: Sat May 05, 2012 1:16 pm
Ello
I have been running ZM for some time and then my 10.10 Desktop ran out of Ubuntu updates. So I bit the bullet and went for a server install to give better performance and the LTS which is good for 3 years updates. I also moved to a 1TB drive to cope with my increasing camera numbers and improved retention space.
I started out using the comprehensive WIKI source install for 11.10 server and then found out that ZM 1.25 has been packaged. Well below is my notes for doing a clean install on 12.04 server, which is sort of a hash of the WIKI items. I don't possess a major amount of Linux knowlwedge but can use the search function, so thought this might be useful to others in a similar position.
1. Install Ubuntu Server 12.04 x86_64
select openssh-server as an optional package for remote admin
2. Update the system:
$ sudo apt-get update
$ sudo apt-get upgrade
3.Install Zoneminder
$ sudo apt-get install zoneminder
when asked for, enter a password for the Mysql admin
4. Instruct apache what to do with Zoneminder
$ sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf
5. Increase the memory allocation
$ sudo nano /etc/sysctl.conf
paste in these lines at the end and save
kernel.shmall = 167772160
kernel.shmmax = 167772160
6. For bttv 878 cards, define the card for Ubuntu
$ sudo nano /etc/modprobe.d/bttv.conf
paste this in and save
options bttv gbuffers=16 card=133,132,133,133 tuner=4,4,4,4
7. Restart your server
8. Access Zoneminder for configuration
http://server_ip/zm
It should work after that. If you can see the ZM admin page, but cannot get an image in a monitor then it might be hardware related.
Check that your card is configured and working by 'ls /dev'. If Video0,1,2,3 is not there then that is a good pointer.
If missing you need to go deeper and 'lspci' should show your '878' card.
I did try the LAMP install as the server built, but the ZoneMinder package likes to install all it's own dependencies.
Hope this helps people. I like it as it's a simple, repeatable build which can be done in less than an hour if the worst should happen to your hardware.
Cheers
Alan
I have been running ZM for some time and then my 10.10 Desktop ran out of Ubuntu updates. So I bit the bullet and went for a server install to give better performance and the LTS which is good for 3 years updates. I also moved to a 1TB drive to cope with my increasing camera numbers and improved retention space.
I started out using the comprehensive WIKI source install for 11.10 server and then found out that ZM 1.25 has been packaged. Well below is my notes for doing a clean install on 12.04 server, which is sort of a hash of the WIKI items. I don't possess a major amount of Linux knowlwedge but can use the search function, so thought this might be useful to others in a similar position.
1. Install Ubuntu Server 12.04 x86_64
select openssh-server as an optional package for remote admin
2. Update the system:
$ sudo apt-get update
$ sudo apt-get upgrade
3.Install Zoneminder
$ sudo apt-get install zoneminder
when asked for, enter a password for the Mysql admin
4. Instruct apache what to do with Zoneminder
$ sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf
5. Increase the memory allocation
$ sudo nano /etc/sysctl.conf
paste in these lines at the end and save
kernel.shmall = 167772160
kernel.shmmax = 167772160
6. For bttv 878 cards, define the card for Ubuntu
$ sudo nano /etc/modprobe.d/bttv.conf
paste this in and save
options bttv gbuffers=16 card=133,132,133,133 tuner=4,4,4,4
7. Restart your server
8. Access Zoneminder for configuration
http://server_ip/zm
It should work after that. If you can see the ZM admin page, but cannot get an image in a monitor then it might be hardware related.
Check that your card is configured and working by 'ls /dev'. If Video0,1,2,3 is not there then that is a good pointer.
If missing you need to go deeper and 'lspci' should show your '878' card.
I did try the LAMP install as the server built, but the ZoneMinder package likes to install all it's own dependencies.
Hope this helps people. I like it as it's a simple, repeatable build which can be done in less than an hour if the worst should happen to your hardware.
Cheers
Alan