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.


== Setup ==
== Setup ==
Line 7: Line 9:
* SBC (although this works on a desktop)
* SBC (although this works on a desktop)
* Internet connection
* Internet connection
* Computer monitor
* HDMI cable for BBB


Install beaglebone black using elinux.com's [http://elinux.org/BeagleBoardDebian BeagleBoardDebian] page.
Install beaglebone black using elinux.com's [http://elinux.org/BeagleBoardDebian BeagleBoardDebian] page.
Line 22: Line 26:
Then download our three stars of the night.
Then download our three stars of the night.
<pre> git clone http://git.suckless.org/dwm && git clone git://git.suckless.org/st && git clone git://git.suckless.org/surf</pre>
<pre> git clone http://git.suckless.org/dwm && git clone git://git.suckless.org/st && git clone git://git.suckless.org/surf</pre>
Edit the config for DWM
Edit the config for dwm
<pre> nano dwm/config.def.h</pre>
<pre> nano dwm/config.def.h</pre>
Disable the bar
* Disable the bar
Remove all workspaces except for 1 (*tags)
* Remove all workspaces except for 1 (*tags)
(leave #1 only)
* (leave #1 only)
Set Mod4Mask as modkey
* Set Mod4Mask as modkey
Set MODKEY|Shiftmask to 0 and XK_c to XK_F12 for killclient (personal preference)
* 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.
*Later disable spawm of dmenucmd and termcmd, but for now leave enabled.


<pre>
<pre>
Line 38: Line 42:
nano config.def.h
nano config.def.h
</pre>
</pre>
Set termname[] to xterm (resolves some issues with programs that don't understand default termname).
* Set termname[] to xterm (resolves some issues with programs that don't understand default termname).
<pre>
make
make install
cd ../surf
nano config.def.h
</pre>
* Set runinfullscreen to TRUE

Revision as of 21:28, 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 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