1.
sudo apt-get update && sudo apt-get upgrade
3.
sudo apt-get install motion
4.
sudo nano /etc/motion/motion.conf
5.
sudo nano /etc/default/motion
6.
start_motion_daemon=yes
7.
sudo reboot
8. http://ipaddress:8081/?action=stream