sudo apt update

sudo apt install motion

sudo nano /etc/motion/motion.conf


change "webcontrol_localhost on" to "webcontrol_localhost off"

change"stream_localhost on" to "stream_localhost off"