Zoneminder on Arch Linux ARM

Ask questions about Arch Linux ARM. Please search before making a new topic.

Re: Zoneminder on Arch Linux ARM

Postby moonman » Mon Dec 03, 2012 1:59 am

Well it runs reasanobly well, not slow. But this is without a camera connected. If somebody needs a hand to get it up and running then ask.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Zoneminder on Arch Linux ARM

Postby moonman » Wed Jan 02, 2013 11:57 am

So I've tested it and it was too slow for what I wanted to use it for. I need 25fps and with the plug I could only get about 5-8 fps at 640x480 mjpeg stream. This may be more than enough for most people though.
I went with a totally different solution though: recording with ffmpeg and converting on the fly to flv and then exposing flv through http and flash player and used HP t5720 thin client with AMD Geode NX 1GHz cpu/512 RAM and archlinux installed onto an external USB hdd.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Zoneminder on Arch Linux ARM

Postby permitivity » Tue Jun 25, 2013 4:11 am

$this->bbcode_second_pass_quote('moonman', 'S')o I've tested it and it was too slow for what I wanted to use it for. I need 25fps and with the plug I could only get about 5-8 fps at 640x480 mjpeg stream. This may be more than enough for most people though.
I went with a totally different solution though: recording with ffmpeg and converting on the fly to flv and then exposing flv through http and flash player and used HP t5720 thin client with AMD Geode NX 1GHz cpu/512 RAM and archlinux installed onto an external USB hdd.


Moonman,
I'm digging up this old post. I'm interested in using ZoneMinder for my pogoplug. It looks like it has some features not found in Motion. And I'm OK with the slow frame rate, so it's kinda perfect for me.

I'm a newbie though. Just barely managed to get Pogoplug installed with ArchLinux and Motion running. After reading the thread, I'm not sure where to start. I've never built a package before. Can you give me some place to start from?

When I try "pacman -S yaourt", I get:
$this->bbcode_second_pass_quote('', '[')root@alarm ~]# pacman -S yaourt
resolving dependencies...
looking for inter-conflicts...

Targets (4): package-query-1.2-2 pacman-4.1.0-2 yajl-2.0.4-1 yaourt-1.3-1

Total Download Size: 1.16 MiB
Total Installed Size: 4.61 MiB
Net Upgrade Size: 1.25 MiB

Proceed with installation? [Y/n] y
:: Retrieving packages from core...
error: failed retrieving file 'pacman-4.1.0-2-arm.pkg.tar.gz' from mirror.archlinuxarm.org : The requested URL returned error: 404 Not found
warning: failed to retrieve some files from core
error: failed to commit transaction (download library error)
Errors occurred, no packages were upgraded.
permitivity
 
Posts: 141
Joined: Mon Feb 18, 2013 3:08 am

Re: Zoneminder on Arch Linux ARM

Postby moonman » Tue Jun 25, 2013 4:37 am

Do a full update first. Ill see if i still have those packages somewhere
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Zoneminder on Arch Linux ARM

Postby moonman » Tue Jun 25, 2013 9:25 am

Here you go. They are the same I posted a while ago, so they may be a bit outdated:

$this->bbcode_second_pass_code('', 'http://dl.dropboxusercontent.com/u/15043728/ArchLinuxArm/zoneminder/zoneminder.tar.xz')

or run these:

$this->bbcode_second_pass_code('', 'cd ~
wget http://dl.dropboxusercontent.com/u/15043728/ArchLinuxArm/zoneminder/zoneminder.tar.xz
tar xvJf zoneminder.tar.xz
cd zoneminder
pacman -U *.pkg.tar.xz')
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Zoneminder on Arch Linux ARM

Postby permitivity » Tue Jun 25, 2013 7:09 pm

$this->bbcode_second_pass_quote('moonman', 'H')ere you go. They are the same I posted a while ago, so they may be a bit outdated:



Really appreciate it. I'll give it a try this weekend.
permitivity
 
Posts: 141
Joined: Mon Feb 18, 2013 3:08 am
Top

Re: Zoneminder on Arch Linux ARM

Postby permitivity » Sat Jun 29, 2013 8:59 pm

Well, I tried it, but I think I needed to change some permissions? I got a bunch of error messages that look like this:

$this->bbcode_second_pass_quote('', 't')ar: ./zoneminder/zoneminder-1.25.0-24-arm.pkg.tar.xz: Cannot change ownership to uid 1000, gid 1000: Operation not permitted
./zoneminder/perl-expect-1.21-2-any.pkg.tar.xz
./zoneminder/perl-php-serialization-0.34-1-any.pkg.tar.xz
tar: ./zoneminder/perl-php-serialization-0.34-1-any.pkg.tar.xz: Cannot change ownership to uid 1000, gid 1000: Operation not permitted
tar: ./zoneminder: Cannot change ownership to uid 1000, gid 1000: Operation not permitted
tar: Exiting with failure status due to previous errors


But, I went ahead and "pacman -U *.pkg.tar.xz" anyways. It took a long time to install. I'm not sure if it was going out on the internet to get dependencies or what. The file you gave me was only 8MB, if the size of the file is any indication of how long it should take to install. I'm not sure if mysql was installed by itself.

So, anyways I have to google how to run Zone Minder from the console. I'll report back if I make progress.

If anyone's interested, this is some of the text that was displayed during install:

$this->bbcode_second_pass_code('', '( 46/115) installing libxxf86vm [######################] 100%
( 47/115) installing damageproto [######################] 100%
( 48/115) installing libxdamage [######################] 100%
( 49/115) installing mesa [######################] 100%
Optional dependencies for mesa
opengl-man-pages: for the OpenGL API man pages
( 50/115) installing mesa-libgl [######################] 100%
( 51/115) installing libva [######################] 100%
Optional dependencies for libva
libva-vdpau-driver: vdpau back-end for nvidia
libva-intel-driver: back-end for intel cards
( 52/115) installing libvpx [######################] 100%
( 53/115) installing opencore-amr [######################] 100%
( 54/115) installing openjpeg [######################] 100%
( 55/115) installing rtmpdump [######################] 100%
( 56/115) installing orc [######################] 100%
( 57/115) installing schroedinger [######################] 100%
( 58/115) installing renderproto [######################] 100%
( 59/115) installing libxrender [######################] 100%
( 60/115) installing sdl [######################] 100%
Optional dependencies for sdl
alsa-lib: ALSA audio driver [installed]
libpulse: PulseAudio audio driver [installed]
( 61/115) installing speex [######################] 100%
( 62/115) installing x264 [######################] 100%
( 63/115) installing xvidcore [######################] 100%
( 64/115) installing libav-static [######################] 100%
( 65/115) installing perl-time-modules [######################] 100%
( 66/115) installing perl-astro-suntime [######################] 100%
( 67/115) installing perl-io-tty [######################] 100%
( 68/115) installing perl-expect [######################] 100%
( 69/115) installing perl-net-sftp-foreign [######################] 100%
Optional dependencies for perl-net-sftp-foreign
perl-file-which
perl-sort-key
( 70/115) installing perl-php-serialization [######################] 100%
( 71/115) installing perl-sys-mmap [######################] 100%
( 72/115) installing perl-device-serialport [######################] 100%
( 73/115) installing perl-x10 [######################] 100%
( 74/115) installing apr [######################] 100%
( 75/115) installing libltdl [######################] 100%
( 76/115) installing unixodbc [######################] 100%
( 77/115) installing apr-util [######################] 100%
( 78/115) installing apache [######################] 100%
Optional dependencies for apache
lynx: apachectl status
( 79/115) installing libmariadbclient [######################] 100%
( 80/115) installing mariadb-clients [######################] 100%
( 81/115) installing mariadb [######################] 100%
Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...
OK
Filling help tables...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following commands:

'/usr/bin/mysqladmin' -u root password 'new-password'
'/usr/bin/mysqladmin' -u root -h pogopink4-b544 password 'new-password'

Alternatively you can run:
'/usr/bin/mysql_secure_installation'

which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.

See the MariaDB Knowledgebase at http://kb.askmonty.org or the
MySQL manual for more instructions.

You can start the MariaDB daemon with:
cd '/usr' ; /usr/bin/mysqld_safe --datadir='/var/lib/mysql'

You can test the MariaDB daemon with mysql-test-run.pl
cd '/usr/mysql-test' ; perl mysql-test-run.pl

Please report any problems with the '/usr/scripts/mysqlbug' script!


The latest information about MariaDB is available at http://mariadb.org/.
You can find additional information about the MySQL part at:
http://dev.mysql.com
Support MariaDB development by buying support/new features from
Monty Program Ab. You can contact us about this at sales@montyprogram.com.
Alternatively consider joining our community based development effort:
http://kb.askmonty.org/en/contributing-to-the-mariadb-project/

>> If you are migrating from MySQL, don't forget to run 'mysql_upgrade'
after mysqld.service restart.
Optional dependencies for mariadb
perl-dbd-mysql: mytop dependency [pending]
perl-term-readkey: mytop dependency
( 82/115) installing perl-archive-zip [######################] 100%
( 83/115) installing perl-date-manip [######################] 100%
( 84/115) installing perl-dbi [######################] 100%
( 85/115) installing perl-dbd-mysql [######################] 100%
( 86/115) installing perl-encode-locale [######################] 100%
( 87/115) installing perl-http-date [######################] 100%
( 88/115) installing perl-file-listing [######################] 100%
( 89/115) installing perl-html-tagset [######################] 100%
( 90/115) installing perl-html-parser [######################] 100%
( 91/115) installing perl-lwp-mediatypes [######################] 100%
( 92/115) installing perl-uri [######################] 100%
( 93/115) installing perl-http-message [######################] 100%
( 94/115) installing perl-http-cookies [######################] 100%
( 95/115) installing perl-http-daemon [######################] 100%
( 96/115) installing perl-http-negotiate [######################] 100%
( 97/115) installing perl-net-http [######################] 100%
( 98/115) installing perl-www-robotrules [######################] 100%
( 99/115) installing perl-libwww [######################] 100%
Optional dependencies for perl-libwww
perl-lwp-protocol-https: for https:// url schemes
(100/115) installing perl-email-date-format [######################] 100%
(101/115) installing perl-timedate [######################] 100%
(102/115) installing perl-mailtools [######################] 100%
(103/115) installing perl-mime-types [######################] 100%
(104/115) installing perl-mime-lite [######################] 100%
(105/115) installing perl-io-stringy [######################] 100%
(106/115) installing perl-convert-binhex [######################] 100%
module test... pass.
(107/115) installing perl-mime-tools [######################] 100%
(108/115) installing libxml2 [######################] 100%
(109/115) installing php [######################] 100%
(110/115) installing php-apache [######################] 100%
(111/115) installing freetype2 [######################] 100%
(112/115) installing php-gd [######################] 100%
(113/115) installing libmcrypt [######################] 100%
(114/115) installing php-mcrypt [######################] 100%
(115/115) installing zoneminder [######################] 100%
Note for mysql:
==> To run Zoneminder, you must install the database running mysql service (as r oot):
==> "rc.d start mysqld" (in initscripts) or "systemctl start mysqld.service" (in systemd)

==> and add Zoneminder database typing (with passsword):
==> "mysqladmin --defaults-file=/etc/mysql/my.cnf -p -f reload"
==> "cat /usr/share/zoneminder/db/zm_create.sql | mysql --defaults-file=/etc/mys ql/my.cnf -p"
==> "echo 'grant lock tables, alter,select,insert,update,delete on zm.* to 'zmus er'@localhost identified by "zmpass";' | mysql --defaults-file=/etc/mysql/my.cnf -p mysql"
==> (or without passsword):
==> "mysqladmin --defaults-file=/etc/mysql/my.cnf -f reload"
==> "cat /usr/share/zoneminder/db/zm_create.sql | mysql --defaults-file=/etc/mys ql/my.cnf"
==> "echo 'grant lock tables, alter,select,insert,update,delete on zm.* to 'zmus er'@localhost identified by "zmpass";' | mysql --defaults-file=/etc/mysql/my.cnf mysql"

Note for php:
==> You must uncomment that line in /etc/php/php.ini:
==> "extension=mysql.so"
==> check and make sure these are uncommented:
==> "extension=gd.so"
==> "extension=gettext.so"
==> "extension=mcrypt.so"
==> "extension=mysqli.so"
==> "extension=session.so"
==> "extension=sockets.so"
==> "extension=openssl.so"
==> "extension=ftp.so"
==> "extension=zip.so"
==> check and add to open_basedir "/etc" and
==> "/srv/http/zoneminder" like so
==> "open_basedir = /home:/tmp:/usr/share/pear:/etc:/srv/http/zoneminder"
==> and set your timezone in php.ini:
==> "date.timezone = <your_country>/<your_city>"

Note for apache:
==> You must edit /etc/httpd/conf/httpd.conf and add the line:
==> "LoadModule php5_module modules/libphp5.so"
==> and:
==> "Include /etc/httpd/conf/extra/php5_module.conf"
==> "Include /etc/httpd/conf/extra/httpd-zoneminder.conf"
Optional dependencies for zoneminder
netpbm')
permitivity
 
Posts: 141
Joined: Mon Feb 18, 2013 3:08 am
Top

Re: Zoneminder on Arch Linux ARM

Postby moonman » Sat Jun 29, 2013 9:54 pm

It installed 115 packages from which 8 are the ones that I gave you, others were pulled from repos. I think it gives you the instructions on how to run it at the end of installation.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Previous

Return to User Questions

Who is online

Users browsing this forum: No registered users and 3 guests