Difference between revisions of "Dedicated SBC Camera Monitor"

From ZoneMinder Wiki
Jump to navigationJump to search
Line 1: Line 1:
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.
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.
I will also include some settings that turn this into a 'kiosk mode' video monitor, so it cannot be changed.


== Setup ==
== Setup ==
Line 50: Line 50:
</pre>
</pre>
* Set runinfullscreen to TRUE
* Set runinfullscreen to TRUE
<pre>
make
make install
</pre>
=== Intermediate Cleanup Time ===
<pre>apt-get remove nfs-common rpcbind wpasupplicant avahi-daemon ofono apache2</pre>
Of course, leave wpasupplicant if you use wifi.
Net installer may want to install acpid.
Should be about 40MB RAM, and <5% CPU.
Remove Exim4 if you want as well.
=== Clock ===
<pre># apt-get install ntpdate</pre>
Set cron to run ntpdate periodically
<pre>*/5 * * * * ntpdate pool.ntp.org</pre>
This is leaner than running ntpd 24/7
== I2C Configuration ==

Revision as of 21:33, 27 February 2017

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 be 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
make
make install

Intermediate Cleanup Time

apt-get remove nfs-common rpcbind wpasupplicant avahi-daemon ofono apache2

Of course, leave wpasupplicant if you use wifi. Net installer may want to install acpid.

Should be about 40MB RAM, and <5% CPU. Remove Exim4 if you want as well.

Clock

# apt-get install ntpdate

Set cron to run ntpdate periodically

*/5 * * * * ntpdate pool.ntp.org

This is leaner than running ntpd 24/7

I2C Configuration