Chapter 4 - Start and log in on the Raspberry Pi¶
In this chapter, you will start the Raspberry Pi for the first time and log in on it. This will ensure you have a working Raspberry Pi.
Steps¶
Start the Raspberry Pi¶
If you haven't already, unmount and unplug the microSD card from your computer. Plug it in the Raspberry Pi. The Raspberry Pi should be connected to a screen, a keyboard, a mouse and a power supply.
Log in on the Raspberry Pi¶
When the Raspberry Pi is plugged to a power source, it should start, resize the microSD card and reboot. After a few seconds, you should see the login screen.
If you have written the Raspberry Pi OS with desktop image, you should see a colorful login page.
If you have written the Raspberry Pi OS Lite, you should see a black and white login page.
Log in using the username and password you have chosen during the preconfiguration chapter.
Verify the Raspberry Pi is connected to the Internet¶
Use ping
to confirm that the Raspberry Pi is connected to the Internet.
In a terminal, execute the following command(s). | |
---|---|
The output of the command should look similar to this.
To stop the ping process, press Ctrl+C in your terminal.
Verify you can connect to the Raspberry Pi using SSH¶
Get the IP of the Raspberry Pi with the following command.
In a terminal, execute the following command(s). | |
---|---|
The output of the command should look similar to this. Note the 192.168.1.203
IP address. This identifies the Raspberry Pi on your network using the wlan0
Wi-Fi interface. If plugged to an Ethernet cable, the IP address would be different on eth0
.
From your computer, open a terminal and access your Raspberry Pi with SSH. Replace <username>
and <ip>
with the Raspberry Pi username and IP. Enter the password when prompted.
In a terminal, execute the following command(s). | |
---|---|
The output of the command should look similar to this.
You can exit the SSH session by typing exit
and Enter in the terminal.
Summary¶
Congrats! You have started the Raspberry Pi and logged in on it. You have also verified that the Raspberry Pi is connected to the Internet and that you can connect to it using SSH.
If you have written the Raspberry Pi OS with desktop image, you can go to the chapter Chapter 8 - Try out the BeeScreens applications.
Otherwise, you can continue the tutorial. For the next chapters, you can use the keyboard of the Raspberry Pi or the SSH connection to set up the Raspberry Pi.