Create SD using offical Raspberry Pi Imager
, choose light
distribution.
Then mount the boot
partition and follow the steps
touch /Volumes/boot/ssh
touch /Volumes/boot/wpa_supplicant.conf
country=<two letter country code i.e. UK>
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="NETWORK-NAME"
psk="NETWORK-PASSWORD"
}
Use VirtualBox Ubuntu and size RPI's ext2 partition to 20G then create FAT32 partition for the rest of the space. Only then do the first run
$ sudo parted /dev/sdb resizepart 2 20G
$ sudo resize2fs /dev/sdb2 20G
Make sure WiFi works:
$> ping raspberrypi.local
$> ssh pi@raspberrypi.local
Enable the camera sudo raspi-config
Install python3 camera sudo apt-get install python3-picamera
Install cvlc sudo apt install -y vlc
git clone ...
cd PiDashCam
python3 dashcam.py