diff --git a/README.md b/README.md index 6c2765227207b6e8d6f00802879ad55c441a86fa..cfdd8396157e56e0c74745cc0be57fe3499ec0e0 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ can use uvcdynctrl -f to list resolutions can use fswebcam --list-controls to list controls -can use http-server-with-auth to serve +can use http-server-with-auth to serve: http-server-with-auth -p port --username username --password password http-server-with-auth -p port --username username --password password --ssl --cert cert.pem --key key.pem @@ -20,8 +20,13 @@ last image is at http://this_address:this_port/oldimage.jpg can use Logitech C920 HD Webcam -can use Ubuntu MATE on Raspberry Pi 3 +can use Ubuntu MATE on Raspberry Pi 3: sudo apt-get install nodejs-legacy npm fswebcam imagemagick sudo npm install -g http-server-with-auth System -> Administration -> Time and Date -> Keep synchronized with internet servers - + +can start on boot with cams.service: +sudo cp cams.service /lib/systemd/system +sudo systemctl daemon-reload +sudo systemctl enable cams.service +sudo systemctl start cams.service diff --git a/cams.service b/cams.service new file mode 100644 index 0000000000000000000000000000000000000000..bc5d0660960c7ae787dbb8cad535eb85ea168d51 --- /dev/null +++ b/cams.service @@ -0,0 +1,11 @@ +[Unit] +Description=cams +After=network.target + +[Service] +Type=forking +ExecStart=/bin/bash /home/fab/cams/cams + +[Install] +WantedBy=multi-user.target +