README.md 1.62 KB
Newer Older
Neil Gershenfeld's avatar
Neil Gershenfeld committed
1 2 3 4 5 6
<pre>
shopcam server

can use Ubuntu MATE on a Raspberry Pi 3 with a Logitech C920 HD Webcam
   sudo apt-get update
   sudo apt-get dist-upgrade
Neil Gershenfeld's avatar
Neil Gershenfeld committed
7
   sudo apt-get install gedit chromium-browser git npm nodejs ristretto tightvncserver xtightvncviewer openssh-server ntp
Neil Gershenfeld's avatar
Neil Gershenfeld committed
8
   sudo systemctl enable ssh
Neil Gershenfeld's avatar
Neil Gershenfeld committed
9
   System -> Administration -> Time and Date -> Keep synchronized with internet servers
Neil Gershenfeld's avatar
Neil Gershenfeld committed
10 11 12 13 14 15 16 17 18 19
   sudo update-manager -> turn off automatic updates

install local web server:
   sudo npm install -g http-server-with-auth  

clone repos:
   git clone https://gitlab.cba.mit.edu/pub/cams.git
   git clone https://gitlab.cba.mit.edu/pub/mods.git
   git clone https://github.com/novnc/noVNC.git

Neil Gershenfeld's avatar
Neil Gershenfeld committed
20 21
install VNC service:
   cd ~/cams/mods
Neil Gershenfeld's avatar
Neil Gershenfeld committed
22 23 24 25 26 27 28 29 30 31
   sudo cp tightvncserver.service /lib/systemd/system
   sudo systemctl daemon-reload
   sudo systemctl enable tightvncserver.service
   sudo systemctl start tightvncserver.service
   journalctl -u tightvncserver.service

set VNC password:
   tightvncpasswd

configure VNC:
Neil Gershenfeld's avatar
Neil Gershenfeld committed
32
   cp ~/cams/mods/xstartup /home/fab/.vnc/
Neil Gershenfeld's avatar
Neil Gershenfeld committed
33 34 35 36 37
   gedit /home/fab/.vnc/xstartup
   set the local Web server username and password
   can use https certificates

configure noVNC:
Neil Gershenfeld's avatar
Neil Gershenfeld committed
38
   cd ~/noVNC
Neil Gershenfeld's avatar
Neil Gershenfeld committed
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
   ./utils/launch.sh --listen 6789 --vnc 127.0.0.1:5901 &

configure network

reboot

connect to VNC:
   http://your_ip_address:6789/vnc.html

once connected:
   approve browser request to use camera and download multiple files
   can use ristretto to view images
   can use guvcview to adjust camera
   to make a persistent change to the threshold,
      edit the motion detect module initialization,
      save it as a local program,
      and change the path in xstartup