Logging in and initial setup
Power up the Pi
Put the SD Card that you just setup into the little slot on the end of the Raspberry Pi, and plug a power supply into the USB-C slot on the Pi.
It’s little light should flicker red for a bit, and then when it’s working, turn green.
Finding the Pi on your network
Since your Pi should already have your Wi-Fi credential, it will have connected to that network too. Make sure that you dev computer is connected to the same Wi-Fi network, and then we can check that the Pi is available at the expected hostname. In a terminal, try:
ping lores.local
If your Pi’s hostname isn’t lores, replace it with whatever hostname you chose, followed by .local.
If that worked, you should get a message back like:
PING lores.local (192.168.196.101) 56(84) bytes of data.
64 bytes from 192.168.196.101: icmp_seq=1 ttl=64 time=19.6 ms
That message shows that it was able to get an IP address from that hostname (in this case it was 192.168.196.101 but yours will probably be different).
Connecting via SSH
Generally speaking, if you’ve setup your SSH keys correctly in this step, including adding them to the ssh-agent, then from a terminal you should only need to type:
ssh lores.local
That’s assuming your username on your dev computer is the same as on your pi. If it’s different, you’ll need to specify it, like ssh aisha@lores.local. If it’s the first time you’re using your ssh key in the current session, you’ll also need to supply your passphrase.
The first time you SSH into a new server, you computer needs to ask you if it’s legit. It’ll ask you a question like:
The authenticity of host 'lores.local (192.168.196.101)' can't be established.
ED25519 key fingerprint is SHA256:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
Type yes and hit ENTER, and this Pi will be added to your dev computer’s list of known hosts and you wont be asked that again. Next time you’ll be straight in.
Once you’re in
When you SSH in successfully, you should see a detailed “Welcome to Ubuntu” message that contains useful info on the machine. If you’re not using a proper power supply, for example if you’re just powering the USB cable off your laptop like I am right now, you’ll see a message like “This power supply is not capable of supplying 5A; power to peripherals will be restricted”.
Importantly, you’ll almost certainly see a message about software updates, something like:
119 updates can be applied immediately.
54 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable
Installing updates
This should be the first thing you do. Ubuntu Linux installs software updates using a tool called apt. You can read more details about this here, but essentially to install these upgrades there are two steps.
- Update to the latest package lists so you the system knows what can be upgraded by running
sudo apt update. - Upgrade your installed software to the latest version by running
sudo apt upgrade. This step will likely prompt you to continue (hit ENTER or Y for yes). It might also take a few minutes.
Very occasionally, upgrades require a restart of the Pi to take full effect. For example, updates to the Linux Kernel itself will usually output the message “Restarting the system to load the new kernel will not be handled automatically, so you should consider rebooting.”. You can check if it does but running cat /var/run/reboot-required.
If it needs a reboot, run sudo reboot, wait a minute or so, and then you can SSH back in.
Further updates should happen automatically, because the unattended-upgrades package is installed by default.
Our Pi is ready for action
Now we have a Pi ready to setup as a LoRes Node. In the next section we’ll cover how to start using Co-op Cloud, a system for installing open source web software.