1. sudo apt-get install rpi-update
2. sudo rpi-update
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://192.168.123.39:8081/?action=stream