Files
documentation/dev/41_machinery/2_installation.md
T
2015-04-20 14:54:34 +02:00

1.8 KiB

Installation

The machinery is already installed on the Kerberos image, however you can also install the machinery from source.

Install from source

The machinery can be installed standalone.

Install on ArchLinux

Update the ArchLinux kernel

pacman -Syyu

Install git, subversion, development tools (c++, cmake) and V4L utils.

pacman -S git subversion cmake base-devel v4l-utils eigen

Go to home directory

cd /home

Get the source code from github

git clone https://github.com/kerberos-io/machinery kerberos-io

Compile kerberos

cd kerberos-io && mkdir build && cd build
cmake .. && make && make check

Add link library to path

 export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/home/kerberos-io/build/thirdparty/lib/

Give rights to config files

chmod -R 777 ../config

Auto start

Create service file for kerberos

nano /etc/systemd/system/kerberos.service

Copy and paste the configuration to the kerberos.service

[Unit]
Description=Kerberos.io Video Surveillance

[Service]
Type=oneshot
ExecStart=/home/kerberos-io/bin/kerberos

[Install]
WantedBy=multi-user.target

Create timer file for kerberos

nano /etc/systemd/system/kerberos.timer

Copy and paste the configuration to the kerberos.timer

[Unit]
Description=Runs kerberos.service, 1 min after system boot.

[Timer]
OnBootSec=1min
Unit=kerberos.service

[Install]
WantedBy=multi-user.target

Enable the service to start on boot

systemctl enable kerberos.timer