Dedicated SBC Camera Monitor

From ZoneMinder Wiki
Revision as of 20:28, 27 February 2017 by Snake (talk | contribs)
Jump to navigationJump to search

A guide for setting up a dedicated SBC (here beaglebone) that will monitor the video feed from a camera that you choose. I'll also include some steps on getting a custom kernel for I2C. The WM will be DWM, terminal ST, and browser will be Surf. It will be a minimal installation with no DE, no extra programs. You will save RAM here, over an installation of LXDE, the default for the Beaglebone Black.

I will also include some settings that turn this into a 'kiosk mode' video monitor, so it cannot changed.

Setup

Requirements:

  • >=4GB SD Card
  • SBC (although this works on a desktop)
  • Internet connection
  • Computer monitor
  • HDMI cable for BBB

Install beaglebone black using elinux.com's BeagleBoardDebian page.

Use the direct image (under Demo, below NetInstall). Not the netinstall, which is slower, unless you know what you are doing.

After you boot from SD card, migrate to devuan using this guide:

Next complete the following commands

 su root
 apt-get install xorg libx11-dev libxft-dev libxinerama-dev gcc make htop sudo tcpdump

Complete these for Surf

 apt-get install libwebkitgtk-dev libgtk2.0-dev linux-headers-$(uname -r)

Then download our three stars of the night.

 git clone http://git.suckless.org/dwm && git clone git://git.suckless.org/st && git clone git://git.suckless.org/surf

Edit the config for dwm

 nano dwm/config.def.h
  • Disable the bar
  • Remove all workspaces except for 1 (*tags)
  • (leave #1 only)
  • Set Mod4Mask as modkey
  • Set MODKEY|Shiftmask to 0 and XK_c to XK_F12 for killclient (personal preference)
  • Later disable spawm of dmenucmd and termcmd, but for now leave enabled.
cd dwm
make
make install
cd ../st
nano config.def.h
  • Set termname[] to xterm (resolves some issues with programs that don't understand default termname).
make
make install
cd ../surf
nano config.def.h
  • Set runinfullscreen to TRUE