Notes
Setting up cam on Raspberry Pi
setting up a webcam on the Raspberry Pi with motion, the motion.conf settings that matter and running it as a daemon, with kerberos as the friendlier option
Raspberry Pi
You have two options:
- [motion](http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome)
- [kerberos](https://kerberos.io/)
Motion install is pretty much all command line based.
Kerberos is more user friendly, easier to install and has a modern interface
Install motion
sudo apt-get install motion -y
Config
sudo nano /etc/motion/motion.conf
The following settings should do. Frame settings (width, height, framerate) and ports (webcam_port, control_port) are optional. The most important are the two on/off settings for daemon and webcam_localhost
daemon on
width 640
height 480
framerate 100
webcam_localhost off
webcam_port 8081 #default:8081
control_port 8080 #default:8080
webcam_localhost if on will restrict webcam connections to localhost only. Same for control_localhost.
Daemon
sudo nano /etc/default/motion
set to yes
start_motion_daemon=yes
Start
sudo service motion start