README.md 1.38 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
8
   sudo apt-get install gedit chromium-browser git npm nodejs-legacy guvcview ristretto tightvncserver xtightvncviewer openssh-server
   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
16
17
18

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://github.com/novnc/noVNC.git

Neil Gershenfeld's avatar
wip    
Neil Gershenfeld committed
19
install VNC service (assuming username is fab):
Neil Gershenfeld's avatar
wip    
Neil Gershenfeld committed
20
   cd /home/fab/cams
Neil Gershenfeld's avatar
wip    
Neil Gershenfeld committed
21
22
23
24
   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
25
26
   journalctl -u tightvncserver.service

Neil Gershenfeld's avatar
wip    
Neil Gershenfeld committed
27
28
29
set VNC password:
   tightvncpasswd

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

Neil Gershenfeld's avatar
wip    
Neil Gershenfeld committed
36
37
38
39
40
41
42
43
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
44
connect to VNC:
Neil Gershenfeld's avatar
wip    
Neil Gershenfeld committed
45
   http://your_ip_address:6789/vnc.html
Neil Gershenfeld's avatar
wip    
Neil Gershenfeld committed
46

Neil Gershenfeld's avatar
wip    
Neil Gershenfeld committed
47
48
once connected:
   can use ristretto to view images
Neil Gershenfeld's avatar
wip    
Neil Gershenfeld committed
49
50
   http://127.0.0.1:8080
   http://127.0.0.1:8081