The Raspberry Pi 3 Model A+ is truly pretty cool. It’s a lot more compact than its predecessor and it comes with wireless and Bluetooth capabilities. This means goodbye ethernet cables and extra dongles!
This is a reference guide on how I initially set up my Raspberry Pi, enabling SSH access so I could connect to it remotely from another computer on the same Wi-Fi network. I had to install a bunch of packages and dependencies onto the Pi and wanted to do that remotely on my normal work laptop.
You have a:
Raspberry Pi 3 Model A+
Compatible micro SD card (4GB +)
Display monitor with HDMI cable
Good quality USB-powered power supply
After flashing the card, eject and re-insert the SD so you can see boot, the FAT32 partition. (On a Mac? You might not be able to see this partition. Check out extFS for Mac.)
On this boot partition, create a file named ssh. When the Raspberry Pi first boots, it will enable SSH and delete the file.
Connect the Pi to a power supply, display monitor, and a keyboard.
Switch the power supply on and wait for the monitor to start talkin’ to you.
Once it stops spitting out information, it will ask you for credentials. The default username is pi with the password raspberry.
Now that we’re in, we’re going to start by connecting to the Wi-Fi, by running
sudo raspi_config. A graphical user interface will pop up. Navigate down to Network Options and go through the process. SSID is the name of your Wi-Fi network. (It is very important to set the Wi-Fi country or the Wi-Fi will not work.)
Exit out of the configuration application. Check to see if the Wi-Fi connection is successful with:
Now let’s check what the Raspberry Pi’s static IP address is. This is what we’ll use to SSH into. Type:
sudo ifconfigand hit enter. The IP address belonging to the Pi is the value of inet_addr for the wlan0 entry. With this IP address, you should now be able to SSH into the Pi remotely – as long as you’re in the same Wi-Fi network, and the Pi is switched on. :)
ssh email@example.com Password: raspberry
Change the username and password
When you first login to the Pi, you can change the password by entering
passwd and hitting enter. You’ll be asked to type in the current password (raspberry) before being asked for a new password, and then confirmation.
For more, check out the documentation on user management on the Raspberry Pi website.