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
install VNC service (assuming username is fab):
Neil Gershenfeld's avatar
wip  
Neil Gershenfeld committed
17
   cd /home/fab/cams
Neil Gershenfeld's avatar
wip    
Neil Gershenfeld committed
18
19
20
21
   sudo cp tightvncserver.service /lib/systemd/system
   sudo systemctl daemon-reload
   sudo systemctl enable tightvncserver.service
   sudo systemctl start tightvncserver.service
Neil Gershenfeld's avatar
wip  
Neil Gershenfeld committed
22
23
   journalctl -u tightvncserver.service

Neil Gershenfeld's avatar
wip    
Neil Gershenfeld committed
24
25
26
set VNC password:
   tightvncpasswd

Neil Gershenfeld's avatar
wip    
Neil Gershenfeld committed
27
28
configure VNC:
   cp /home/fab/cams/xstartup /home/fab/.vnc/
Neil Gershenfeld's avatar
wip    
Neil Gershenfeld committed
29
   can use https certificates
Neil Gershenfeld's avatar
wip    
Neil Gershenfeld committed
30

Neil Gershenfeld's avatar
wip    
Neil Gershenfeld committed
31
32
33
34
35
36
37
38
configure noVNC:
   cd /home/fab/noVNC
   ./utils/launch.sh --listen 6789 --vnc 127.0.0.1:5901 &

configure network

reboot

Neil Gershenfeld's avatar
wip    
Neil Gershenfeld committed
39
connect to VNC:
Neil Gershenfeld's avatar
wip    
Neil Gershenfeld committed
40
   http://your_ip_address:6789/vnc.html
Neil Gershenfeld's avatar
wip    
Neil Gershenfeld committed
41

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