Fullscreen preview of Raspberry Pi camera on bootup
- Make sure it's all updated with
sudo apt-get update
sudo apt-get upgrade
and make sure the camera is enabled in the Raspberry Pi Configs. - Save the 'camera_preview_stream.py' file anywhere in the pi. For example in
/home/<user_name>/Documents/
. - Navigate to
/etc/xdg/lxsession/LXDE-pi
and add this line to the bottom of theautostart
file@/usr/bin/python /home/<user_name>/Documents/camera_preview_stream.py
. If your python ispython3
then do@/usr/bin/python3 /home/<user_name>/Documents/camera_preview_stream.py
. (I used nano for this)