danb35
Hall of Famer
- Joined
- Aug 16, 2011
- Messages
- 15,504
A comment in another thread mentioned Shinobi as an open-source CCTV app which seems to compare very favorably with Zoneminder. Their docs don't say anything about installing under FreeBSD, but the relevant software sounded like it should work there as well.
So I just was playing around with it, and got it up and running in a jail on FN11-U4. Here are my very rough notes, modeled on the instructions at https://shinobi.video/docs/start#content-ubuntu--the-harder-way:
The options selected for ffmpeg should match as closely as possible the compile flags given in the instructions at the link above.
The pkg install line includes all the dependencies that you'd otherwise have to configure during the build of ffmpeg. It's ugly and inefficient, and probably could be reduced quite a bit, but it does the job at least for now.
Once the pm2 start is completed, you can browse to http://(IP of jail):8080 and log in with ccio@m03.ca and password.
That's as far as I've gotten so far--I can log in and get the Shinobi web GUI. I haven't tried anything further yet.
TODO:
So I just was playing around with it, and got it up and running in a jail on FN11-U4. Here are my very rough notes, modeled on the instructions at https://shinobi.video/docs/start#content-ubuntu--the-harder-way:
- Create a new jail, call it shinobi
- jls, find the number, jexec # tcsh
- Run the following:
Code:
pkg upgrade pkg install node npm mariadb100-server llvm40 cairo opencv-core openjpeg tmux yasm gettext-tools binutils gmp texinfo help2man bison m4 texi2html cmake py27-Jinja2 py27-Babel py27-docutils py27-snowballstemmer rhash libarchive lzo2 ninja libass schroedinger orc libsoxr libogg libvorbis libva libvdpau libvpx webp giflib libx264 bash nano xvid nasm sekrit-twc-zimg gnutls nettle libtasn1 libunistring trousers portsnap fetch extract tmux new cd /usr/ports/multimedia/ffmpeg make install clean <- this will take a long time choose options to match docs sysrc mysql_enable=YES service mysql-server start /usr/local/bin/mysql_secure_installation Set root password, remove anonymous users and test data cd /usr/local fetch https://github.com/ShinobiCCTV/Shinobi/tarball/master tar zxf master mv ShinobiCCTV-Shinobi-3bbdba7/ shinobi chmod -R 755 shinobi cd shinobi/sql mysql -u root -p < user.sql mysql -u root -p < framework.sql mysql -u root -p ccio < default_data.sql cd .. cp conf.sample.json conf.json cp super.sample.json super.json npm install && npm install pm2 -g pm2 start camera.js
The options selected for ffmpeg should match as closely as possible the compile flags given in the instructions at the link above.
The pkg install line includes all the dependencies that you'd otherwise have to configure during the build of ffmpeg. It's ugly and inefficient, and probably could be reduced quite a bit, but it does the job at least for now.
Once the pm2 start is completed, you can browse to http://(IP of jail):8080 and log in with ccio@m03.ca and password.
That's as far as I've gotten so far--I can log in and get the Shinobi web GUI. I haven't tried anything further yet.
TODO:
- work on adding cameras
- add storage to a suitable location, configure Shinobi to use that location for video storage
- Set to start up automatically on boot
- Add motion detection and object detection plugins
- ???
Last edited: