There’s a great software called Motion that I’ve been using for years. However, I tend to forget what it’s called, so this blog post is simply a google bait for myself. :-)
ceda@trumpet:~$ lsusb Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 002: ID 045e:0772 Microsoft Corp. LifeCam Studio Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub ceda@trumpet:~$
- enable daemon in /etc/default/motion
- edit /etc/motion/motion.conf
- access at :8081 or :8080 (for controls)
Or read the https://motion-project.github.io/motion_config.html about it over at GitHub.