zoneminder安装使用步骤详解
来源:互联网 发布:淘宝直通车b类违规 编辑:程序博客网 时间:2024/06/05 09:03
转自维基百科:http://www.zoneminder.com/wiki/index.php/Ubuntu_10.04_%28Lucid_Lynx%29_Desktop
Prerequisites
You should have a vanilla install of Ubuntu 32- or 64-bit up and running. Run updates before proceeding (System > Administration > Update Manager).
Do not install XAMPP, LAMPP, Apache, MySQL, etc. I thought I was going to be smart and bypass a bunch of installation steps by doing this, but it's just not necessary. If you do have LAMPP on your system and you still plan to use it, you better go read some docs on how to get it to start on another port, because the ZM installation is going to overtake all the default ports. If you have LAMPP and anything is running, stop all the services now with
sudo /opt/lampp/lampp stop
If you have existing Apache or MySQL running, you're on your own. This guide is meant for installing ZM on a dedicated box. Feel free to edit this page to include information on how to integrate zoneminder with a functioning Apache/PHP/MySQL setup.
Installing Zoneminder
This is dead easy. I'll post a shell script to do this soon. Stuff in bold means enter it at the command line and then press ENTER.
- open a terminal window (Applications > Accessories > Terminal)
- $ sudo apt-get install zoneminder
- $ sudo apt-get install libjson-any-perl
- $ sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf
- $ sudo /etc/init.d/apache2 force-reload (restarts Apache)
- $ sudo mysql -u root -p < /usr/share/zoneminder/db/zm_create.sql
- mysql -u root -p (this brings you into a mysql shell)
- > grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass';
- > flush privileges;
- > quit (this exits the mysql shell)
- $ sudo chmod 4755 /usr/bin/zmfix
- $ zmfix -a
- $ sudo adduser www-data video
- $ sudo gedit /etc/sysctl.conf (this launches gedit)
- scroll to the bottom of the file and paste in the following: (Note: This only takes effect after you execute: 'sysctl -p' or reboot)
kernel.shmall = 134217728
kernel.shmmax = 134217728
- To increase the shared memory on a live system;
- $ echo 134217728 >/proc/sys/kernel/shmall
- $ echo 134217728 >/proc/sys/kernel/shmmax
- save the file (File > Save or CTRL+S)
- exit gedit
Testing
Visit this URL in your browser to check that Zoneminder is running: http://localhost/zm
Via mobile, access: http://{IP.ADDRESS.OF.MACHINE}/zm/?skin=mobile You can find the local IP address of the machine by entering ifconfig at the terminal and looking for the address printed after 'inet addr:'. It probably starts with 192.168.
Troubleshooting
- if installation of zoneminder failed due to broken dependencies, run sudo apt-get -f install, then start over.
- are you using Ubuntu Server? this was written for Ubuntu Desktop 32- or 64-bit.
- If Zoneminder does not start on boot, it may be trying to start before mySQL is running. To fix:
$ sudo update-rc.d -f zoneminder remove $ sudo update-rc.d zoneminder defaults 92
Optional Configurations/Features
Enable Remote Shell Access
- open a terminal window (Applications > Accessories > Terminal)
- $ sudo apt-get install openssh-server openssh-client
- $ sudo /etc/init.d/apache2 force-reload (restarts Apache)
Credits
Many steps of this article were copied from the Ubuntu 9.10 Desktop installation procedure. Credit is hereby given to those authors for forging the way; in particular,User:Monotical was instrumental in writing those instructions.
- zoneminder安装使用步骤详解
- ZoneMinder安装_初探
- ZoneMinder配置与使用
- zoneminder
- ZONEMINDER
- Zoneminder
- 详解使用Ghost安装Win7系统步骤
- Oracle11g安装步骤详解
- Oracle11g安装步骤详解
- SVN安装步骤详解
- Jmeter安装步骤详解
- Oracle11g安装步骤详解
- PHP 安装步骤详解
- oracle11g 安装步骤详解
- cocoapods安装步骤详解
- 安装Navicat步骤详解
- python安装步骤详解
- tomcat安装步骤详解
- 传统企业软件的互联网化
- js类式继承(xxx.prototype.constructor)
- MFC —— CWnd::SetCapture
- 常用的一些链接
- 我的云世界
- zoneminder安装使用步骤详解
- 关于图片的base64码
- VS2005 VS2008编译的程序在Win7下以管理员身份运行的设置
- Javascript 操作select控件大全(新增、修改、删除、选中、清空、判断存在等)
- 服务器登录用户名,密码修改后,WebServcie不能访问,需要输入用户名密码
- WebWork 学会配置action、result和interceptor
- MVN的简单介绍
- Asp.net三种事务处理
- RHEL下安装openldap