README.md 1.26 KB
Newer Older
Neil Gershenfeld's avatar
wip    
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
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
10
11
12
13
14
15
16
17
18
   System -> Administration -> Time and Date -> Keep synchronized with internet servers  

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
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
32
edit ./home/fab/vnc/xstartup:
   set the local Web server username and password
   can use https certificates
Neil Gershenfeld's avatar
wip    
Neil Gershenfeld committed
33
34

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

Neil Gershenfeld's avatar
wip    
Neil Gershenfeld committed
37
38
39
40
once connected:
   approve browser request to use camera, download multiple files
   can use ristretto to view images
   can use guvcview to adjust camera