Installing Raspbian
July 03, 2020Using Etcher
- Download preferred version. https://www.raspberrypi.org/downloads/raspberry-pi-os/
- desktop: for a gui/dev env
- lite: for no gui, small system
- Download and install etcher: https://etcher.io/
brew install --cask balenaetcher
- Run etcher
- Point the image to the downloaded zip
- Point the media to the sdcard to install on
- Click flash
Using Raspberry Pi Imager
- https://raspberrytips.com/raspberry-pi-imager-guide/
- https://www.raspberrypi.org/documentation/installation/installing-images/
brew install --cask raspberry-pi-imager
- Run the program
- Select your Raspberry Pi Image, Media
- Optionally configure settings to pre-configure wifi, ssh, etc.
Desktop setup
- Insert card in pi, startup and follow the wizard
set default editor
sudo update-alternatives --set editor /usr/bin/vim.tiny
set hostname
NOTE: restart required
sudo vi /etc/hostname
# edit hostname in file and save :wq
sudo vi /etc/hosts
# replace any instance of old hostname with new and save :wq
disable auto login
https://raspberrypi.stackexchange.com/questions/47823/how-to-prevent-autologin-of-gui
sudo sed -i.old -e 's:autologin-user=.*:autologin-user= :g' /etc/lightdm/lightdm.conf
ln -fs /etc/systemd/system/autologin@.service /etc/systemd/system/getty.target.wants/getty@tty1.service
start in shell
systemctl set-default multi-user.target