Download: https://www.balena.io/etcher/
Raspbian Image List: http://downloads.raspberrypi.org/raspbian/images/ Raspbian Latest Image: https://www.raspberrypi.org/downloads/raspbian/ (Use full desktop image)
Notes: Make sure you use the same size/format SD card, as writing to different size cards regardless of image file size can cause issues.
Download: https://sourceforge.net/projects/win32diskimager/
diskutil list
sudo dd if=/dev/disk2 of=~/Desktop/raspberrypi.dmg
diskutil unmountDisk /dev/disk2
sudo newfs_msdos -F 16 /dev/disk2
sudo dd if=~/Desktop/raspberrypi.dmg of=/dev/disk2
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
Add the following to the end of file:
network={
ssid="testing"
psk="testingPassword"
# key_mgmt=NONE ## Uncomment this line and comment out psk if unprotected network
}
Restart wlan0:
wpa_cli -i wlan0 reconfigure
sudo raspi-config
-> Interfacing Options
-> SSH
-> Enable
sudo raspi-config
-> Boot Options
-> Console Autologin
sudo reboot
cp /etc/xdg/lxsession/LXDE-pi/autostart /home/pi/.config/lxsession/LXDE-pi/autostart
sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart
Notes: the /home/pi/.config/lxsession/LXDE-pi/autostart
file and parent folders MAY not exist; if they don't, edit the /etc/xdg/lxsession/LXDE-pi/autostart
directly. This will change autostart settings for ALL USERS.
6. Edit autostart script (replace http://localhost with URL):
#@xscreensaver -no-splash # comment this line out to disable screensaver
@xset s off
@xset -dpms
@xset s noblank
@chromium-browser --kiosk http://localhost/
List of commandline switches for chromium: https://peter.sh/experiments/chromium-command-line-switches/
or use man chromium-browser
sudo reboot