![]() |
Install Zoneminder 1.25 source wi Ubuntu Server 11.10 64bit, libjpeg-turbo, Cambozola
This is not mine. I use this: http://www.zoneminder.com/wiki/index...min,_Cambozola and this: http://www.zoneminder.com/wiki/index...erkat)_Desktop then I cut and paste. Because I cut and paste, some packets, ZM don't need it.
My dvr card like this: http://www.zoneminder.com/wiki/index.php/Kodicom_8800 Install new box with Ubuntu server 11.10 64bit. At software selection, select OpenSSH. Create root account: Code:
sudo passwd rootSet static IP: Code:
nano /etc/network/interfacesQuote:
Restart NIC: Code:
sudo ifdown -aCode:
sudo apt-get updateCode:
nano /etc/modprobe.d/bttv.confQuote:
Code:
rebootCode:
export CFLAGS="-march=native -O2 -pipe" && export CXXFLAGS="${CFLAGS}" && export CPPFLAGS="${CFLAGS}"Code:
aptitude install acpid build-essential linux-headers-`uname -r` automake perl libauthen-pam-perl apache2 libpam-runtime libio-pty-perl libmysqlclient-dev php5 php5-cli libapache2-mod-php5 php5-mysql libarchive-zip-perl libdate-manip-perl libdevice-serialport-perl libjpeg62 libmime-perl libstdc++6 libwww-perl zlib1g zip unzip patch ntp openssl libpcre3-dev libssl-dev libjpeg-progs libcurl4-gnutls-dev munin munin-node libmime-lite-perl netpbm libbz2-dev subversion yasm libnet-ssleay-perl libauthen-pam-perl libio-pty-perl apt-show-versions git-core mysql-server mysql-client mc htop -yCode:
apt-get install libmysqlclient-dev libjpeg-dev libpcre3-dev build-essential -yCode:
wget http://downloads.sourceforge.net/project/webadmin/webmin/1.570/webmin_1.570_all.deb?use_mirror=voxelCode:
wget http://downloads.sourceforge.net/project/libjpeg-turbo/1.1.1/libjpeg-turbo_1.1.1_amd64.deb?use_mirror=voxelCode:
ln -s /opt/libjpeg-turbo/lib/libjpeg.a /usr/lib/libjpeg.a && ln -s /opt/libjpeg-turbo/include/jconfig.h /usr/include/jconfig.h && ln -s /opt/libjpeg-turbo/include/jerror.h /usr/include/jerror.h && ln -s /opt/libjpeg-turbo/include/jmorecfg.h /usr/include/jmorecfg.h && ln -s /opt/libjpeg-turbo/include/jpeglib.h /usr/include/jpeglib.hCode:
echo "/opt/libjpeg-turbo/lib" > /etc/ld.so.conf.d/libjpeg-turbo.conf && echo "/usr/local/lib" > /etc/ld.so.conf.d/ffmpeg.conf && echo "LD_LIBRARY_PATH=/usr/local/lib:/opt/libjpeg-turbo/lib:$LD_LIBRARY_PATH" >> /etc/bash.bashrc && echo "export LD_LIBRARY_PATH" >> /etc/bash.bashrcCode:
perl -MCPAN -e shellCode:
perl -MCPAN -e shellCode:
perl -MCPAN -e shellCode:
apt-get install ffmpeg -yInstall Zoneminder: Code:
cd /usr/src && svn co http://svn.zoneminder.com/svn/zm/trunk zmCode:
cd /usr/src/zm && ./configure --with-webdir=/var/www/zm --with-cgidir=/usr/lib/cgi-bin ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass ZM_SSL_LIB=openssl --enable-debug=no --with-webgroup=www-data --with-webuser=www-data --enable-mmap=yes CPPFLAGS="-D__STDC_CONSTANT_MACROS ${CPPFLAGS}"Code:
autoconfCode:
makeCode:
mysql -u root -p < db/zm_create.sqlCode:
mysql -u root -pQuote:
Code:
mysqladmin -p reloadCode:
make installCode:
cd /usr/src && wget http://www.charliemouse.com:8080/code/cambozola/cambozola-latest.tar.gzCode:
nano -w /etc/init.d/zmQuote:
Code:
chmod 755 /etc/init.d/zmIn firefox, go to https://YOUR_ZoneMinder.IP.ADDRESS.HERE:10000 to reach the Webmin interface.(Login with Ubuntu username and password) In left menu, select System>Bootup and Shutdown. Tick the box next to zm and click StartNow and On Boot. In left menu, select Servers>Apache Webserver. Click virtual server under Existing virtual hosts tab. Under Virtual Server Details, change Document Root to /var/www/zm and then save. Click apply changes at top left of page. Go to http://YOUR_ZoneMinder.IP.ADDRESS.HERE to reach the Zoneminder interface. If you want better quality video, cut -r 25 in Option->Images->FFMPEG_OUTPUT_OPTIONS ad replace with: Quote:
Please do not ask me how the box run. Thanks: http://www.ubuntu.com/ http://www.howtoforge.com/ http://www.zoneminder.com/ |
| All times are GMT +2. The time now is 12:17. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.