Use BalenaEtcher to create a SIM card. 8GB is adequate for Raspbian if you don't install too much on it.
sudo raspi-config
. Join WiFi. Optionally, change the hostname, here or via sudo nano /etc/hosts
(followed reboot).
Enable ssh (below)
Discover the IP address. On the Pi: hostname -I
. Or install Bonjour via sudo apt-get install avahi-daemon libnss-mdns
. (Seems already to be installed…)
From a local laptop, ssh-copy-id pi@<IP-ADDRESS>
Three methods:
Use the UI.
From the command line:
sudo systemctl enable ssh
sudo systemctl start ssh
Create an empty file named ssh
on the boot partition.
sudo sed -i 's/#\\?ChallengeResponseAuthentication yes/ChallengeResponseAuthentication no/' /etc/ssh/sshd_config
sudo sed -i 's/#\\?PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config
sudo sed -i 's/#\\?UsePAM yes/UsePAM no/' /etc/ssh/sshd_config
sudo /etc/init.d/ssh reload
sudo nano /etc/hosts
sudo nano /etc/hostname
Download and build.