README.md 1.34 KB
Newer Older
Neil Gershenfeld's avatar
wip  
Neil Gershenfeld committed
1 2 3
<pre>
shopcam server

Neil Gershenfeld's avatar
Neil Gershenfeld committed
4
can use Ubuntu MATE on a Raspberry Pi 3 with an HD Webcam
Neil Gershenfeld's avatar
wip  
Neil Gershenfeld committed
5 6
   sudo apt-get update
   sudo apt-get dist-upgrade
Neil Gershenfeld's avatar
wip  
Neil Gershenfeld committed
7
   sudo apt-get install gedit chromium-browser git ristretto tightvncserver openssh-server motion
Neil Gershenfeld's avatar
wip  
Neil Gershenfeld committed
8
   sudo systemctl enable ssh
Neil Gershenfeld's avatar
wip  
Neil Gershenfeld committed
9
   System -> Administration -> Time and Date -> Keep synchronized with internet servers
Neil Gershenfeld's avatar
Neil Gershenfeld committed
10
   sudo update-manager -> turn off automatic updates
Neil Gershenfeld's avatar
wip  
Neil Gershenfeld committed
11 12 13 14 15

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

Neil Gershenfeld's avatar
wip  
Neil Gershenfeld committed
16 17 18
set VNC password:
   tightvncpasswd

Neil Gershenfeld's avatar
wip  
Neil Gershenfeld committed
19
set up VNC:
Neil Gershenfeld's avatar
wip  
Neil Gershenfeld committed
20
   cp /home/fab/cams/xstartup /home/fab/.vnc/
Neil Gershenfeld's avatar
wip  
Neil Gershenfeld committed
21
   chmod +x /home/fab/.vnc/xstartup
Neil Gershenfeld's avatar
wip  
Neil Gershenfeld committed
22
   can use https certificates
Neil Gershenfeld's avatar
wip  
Neil Gershenfeld committed
23

Neil Gershenfeld's avatar
wip  
Neil Gershenfeld committed
24 25 26 27 28 29 30
install VNC service (assuming username is fab):
   cd /home/fab/cams
   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
Neil Gershenfeld's avatar
wip  
Neil Gershenfeld committed
31 32 33 34 35

configure network

reboot

Neil Gershenfeld's avatar
wip  
Neil Gershenfeld committed
36
connect to VNC:
Neil Gershenfeld's avatar
wip  
Neil Gershenfeld committed
37
   http://your_ip_address:6789/vnc.html
Neil Gershenfeld's avatar
wip  
Neil Gershenfeld committed
38

Neil Gershenfeld's avatar
wip  
Neil Gershenfeld committed
39
once connected:
Neil Gershenfeld's avatar
wip  
Neil Gershenfeld committed
40
   view camera at http://127.0.0.1:8081
Neil Gershenfeld's avatar
wip  
Neil Gershenfeld committed
41 42
   set configuration at http://127.0.0.1:8080
   sample settings:
Neil Gershenfeld's avatar
wip  
Neil Gershenfeld committed
43
      daemon: on
Neil Gershenfeld's avatar
wip  
Neil Gershenfeld committed
44 45 46 47 48
      target_dir: /home/fab/Pictures
      ffmpeg_output_movies: off
      width: 1280
      height: 1024
      threshold: 40000
Neil Gershenfeld's avatar
wip  
Neil Gershenfeld committed
49 50
      framerate: 2
      minimum_frame_time: 1