-
Couldn't load subscription status.
- Fork 4
Raspberry Pi Setup
There are a number of different Linux distributions that support the Raspberry Pi; Debian, Ubuntu MATE, and Raspbian. The differences between them are relatively minor, and which you use is largely a matter of preference.
I use the Raspbian Stretch Lite distribution on a Raspberry Pi 3 B+.
The following notes are current as of the April 2018 version.
For emergency access to the Raspberry Pi, and access when I'm on the move, I enable the serial console:
echo enable_uart=1 | sudo tee /boot/config.txtI also enable the SSH server, but restrict it to not allow access via passwords:
sudo sed -i -e '/PasswordAuthentication /{s/^#//;s/ yes/ no/}' /etc/ssh/sshd_config
sudo systemctl enable ssh
sudo systemctl start sshThe Raspberry Pi doesn't have much memory, so it's worth adding some extra swap space for big jobs like compiling a toolchain.
sudo sed -i -e '/CONF_SWAPSIZE=/s/=.*/=2048/}' /etc/dphys-swapfile
sudo systemctl restart dphys-swapfileThere's a few extra packages it always pays to have installed:
sudo apt-get install git rsync screen wiringpiNext: Swift on Raspberry Pi