Install
apt-get install motion
service motion start
/etc/motion/motion.conf
# Restrict webcam connections to localhost only (default: on)
webcam_localhost on
Motion is the program for working with webcameras - IP streaming, motion based capturing etc.
apt-get install motion
service motion start
# Restrict webcam connections to localhost only (default: on)
webcam_localhost on