How to setup a Raspberry Pi
✏️ A step-by-step guide for setting up your Raspberry Pi.
Back in 2015 the Raspberry Pi magazine MagPi was giving away a free Pi Zero in issue 40 and the public went wild for it. I too got caught up in the hysteria and after failing to track down a copy, and the sought after free giveaway, I snapped one up on the internet.
When it finally arrived I had no idea where to begin. Since then I’ve got to grips with the basics and have 2 more Pi’s to add to the collection. I’ve been experimenting with different projects and my confidence and knowledge is slowly growing.
With experimentation comes failure, leading down dead-ends to head scratching confusion. Countless times I’ve had to reinstall the OS, update and configure the Pi piecing together the commands and steps from blog posts and installation guides.
In an attempt to have a single reference point I am writing this guide for myself. It may well be of use to you too.
Let’s begin.
- Flash the SD card using an app like Etcher
- Drag the SD volume into an IDE
- Create an empty file and save it with the name
SSH
- Eject the SD card
- Insert the SD card into the Raspberry Pi, connect the ethernet cable and power cable
- Use an app like Fing to look find the IP address of your Raspberry Pi
- Open Terminal and enter
ssh pi@{Raspberry Pi IP address}
- Type
yes
to confirm connection - Type the default password
raspberry
- Update the Raspberry Pi with the newest packages by typing
sudo apt update
- Upgrade the packages by typing
sudo apt full-upgrade
- Type
y
to confirm the upgrade - Go make yourself a cup of tea…
- Clean everything up by typing
sudo apt clean
- Reboot by typing
sudo shutdown -r now
- Connect again via SSH again
ssh pi@{IP address}
- Type the default password
raspberry
- Start the Raspberry Pi configuration by typing
sudo raspi-config
- Select Change user password and press enter
- Press enter again to confirm
- Enter a new password
- Re-enter the new password to confirm and press enter
- Press enter again to confirm
- Press Esc to exit the config menu
Your Pi is now setup, updated and ready to start your project.