- added 'ssh' to boot partition for4 enabling ssh
apt updateapt upgraderaspi-config- setup wifirpi-update- to add the webcam driverssudo chown -R motion:motion /var/lib/motion
pi@raspberrypi:~ $ cat /etc/default/motion
# set to 'yes' to enable the motion daemon
start_motion_daemon=yes