Get_started_with_raspberry_piο
Install Raspberry pi OSο
Accessories to be prepared in advance:
1 |
2 |
3 |
PC β Windows or MacOS operating system (Access to the Internet).
MicroSD card β The microSD card acts as Raspberry Piβs permanent storage. An 8GB card will get you started, though a 16GB one offers more room to grow.
MicroSD card reader - It connects the MicroSD card to the USB port of your computer, and then installs the raspberry image system into the MicroSD using other tools.
Tip
Here are two ways to install the Raspberry Pi system, choose the one that suits you!
Method 1: Install Raspberry Pi OS using Raspberry Pi Imagerο
Download Raspberry Pi Imager and install it.
Insert the MicroSD card into the MicroSD card reader and insert the MicroSD card reader into the USB port on your computer, then run Raspberry Pi Imager to install raspberry pi OS.
1 |
2 |
---|---|
3 (Choose the right system) |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
13 |
14 |
Method 2: Manually install an operating system imageο
Download Raspberry Pi Imager and install it:
Download the Raspberry PI OS image:
Select the operating system image you need:
Insert the MicroSD card into the MicroSD card reader and insert the MicroSD card reader into the USB port on your computer, then run Raspberry Pi Imager to install raspberry pi OS.
1 |
2 |
---|---|
3 (Choose the right system) |
4 |
5 (Select the image file) |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
13 |
14 |
Start the Raspberry piο
Tip
Here are two ways to start the Raspberry pi, choose the one that suits you!
Method 1: Start the Raspberry pi with monitorο
Accessories to be prepared in advance:
1 |
2 |
3 |
4 |
USB power supplyοΌ
Mouse β USB interface.
Keyboard - USB interface.
Monitor - Micro hdmi interface.
First, unplug your Raspberry Piβs power supply to ensure that the Raspberry Pi is powered down while you connect peripherals. If you installed the operating system on a microSD card, you can plug it into your Raspberry Piβs card slot now.
Then, plug in any other peripherals, such as your mouse, keyboard, and monitor.
Finally, connect the power supply to your Raspberry Pi. You should see the status LED light up when your Pi powers on. You should see the boot screen within minutes.

Method 2: Start the Raspberry pi without monitorο
Accessories to be prepared in advance:
1 |
2 |
USB power supplyοΌ
PC β Windows or MacOS operating system (Access to the Internet).
Setting up the hardware:
1: Insert SD card |
2: Plug in the network cable |
3: Plug in power |
---|---|---|
Finally, connect the power supply to your Raspberry Pi. You should see the status LED light up when your Pi powers on.
Tip
After the Raspberry Pi is started, through the next section (Remote terminal (SSH)), you can control your Raspberry PI on your PC!
Remote access to the Raspberry piο
If you donβt have a spare monitor, mouse and keyboard for your RPi, you can use a remote terminal to share a display, keyboard, and mouse with your PC.
Tip
Here are two ways (SSH and VNC) to remote access to the Raspberry pi, choose the one that suits you!
Remote terminal (SSH)ο
Download Putty.exe.
Use Putty to remotely access raspberry pi. (Find the IP of raspberry pi)
raspberrypi.local
Note: The above operations must be on the same LAN.
Remote desktop (VNC)ο
VNC Server can create a virtual desktop for you, giving you graphical remote access on demand. This virtual desktop exists only in your Raspberry Piβs memory.
Note
This method only works when you can manipulate the Raspberry Pi terminal!
VNC is already installed on the full Raspberry Pi OS image, and can be installed via Recommended Software from the Preferences menu on other versions.
If you are not using a desktop you can install it from the command line as follows:
sudo apt update
sudo apt install realvnc-vnc-server realvnc-vnc-viewer
Enabling the VNC Server
You can do this graphically or at the command line.
Enabling VNC Server graphically
β-On your Raspberry Pi, boot into the graphical desktop.
β-Select Menu βΊ Preferences βΊ Raspberry Pi Configuration βΊ Interfaces.
β-Ensure VNC is Enabled.
Enabling VNC Server at the command line
You can enable VNC Server at the command line using raspi-config:
sudo raspi-config
Now, enable VNC Server by doing the following:
β-Navigate to Interfacing Options.
β-Scroll down and select VNC βΊ Yes.
To create and connect to a virtual desktop:
β-On your Raspberry Pi (using Terminal or via SSH), run vncserver. Make note of the IP address/display number that VNC Server will print to your Terminal (e.g. 192.167.5.149:1).
vncserver
β-Install VNC Viewer, find the IP of the Raspberry Pi, and then run VNC Viewer:
On the VNC Viewer panel, double-click new connection you just created, and the following dialog box pops up.
The password is the login password of the Raspberry Pi, and the default login password of the original system is: raspberry
Succeed!

To destroy a virtual desktop, run the following command:
vncserver -kill :<display-number>
This will also stop any existing connections to this virtual desktop.
Find the IP address of the raspberry piο
On Raspberry Pi OS, multicast DNS is supported out-of-the-box by the Avahi service.
If your PC supports mDNS, you can reach your Raspberry Pi by using its hostname and the .local suffix. The default hostname on a fresh Raspberry Pi OS install is raspberrypi, so by default any Raspberry Pi running Raspberry Pi OS responds to:
Tip
Here are two ways to find the IP address of the raspberry pi, choose the one that suits you!
Method 1:ο
Open the command prompt on your PC and run the following command:
ping -4 raspberrypi.local
or
ping -6 raspberrypi.local
ipv4 |
ipv6 |
---|---|
Note: The above method only applies to windows10 or later.
Method 2:ο
If you are using windows7 or have multiple raspberry pi devices on your LAN, you can use the following method to get the IP address of raspberry pi.
Download Advanced IP Scanner and install it.
Fill in the range of IP addresses to scan, and then scan.
Note: The above operations must be on the same LAN.
Transfer files from your PC to Raspberry piο
Download WinSCP and install it.
Log in to raspberry pi using WinSCP.
Drag and drop a file on your PC to raspberry pi.
Linux commandο
Raspberry Pi OS is based on the Linux Operation System. Now we will introduce you to some frequently used Linux commands and rules.
First, open the Terminal. All commands are executed in Terminal.
Note: Linux commands are case sensitive.
First, type βlsβ into the Terminal and press the βEnterβ key. The result is shown below:
The βlsβ command lists information about the files (the current directory by default).
Content between β$β and βpi@raspberrypi:β is the current working path. β~β represents the user directory, which refers to β/home/piβ here.
βcdβ is used to change directory. β/β represents the root directory.
Many frequently used commands and instructions can be found in the following reference table.
There are many commands, which will come later. For more details about commands. You can refer to:
http://www.linux-commands-examples.com
Shortcut Key:
Now, we will introduce several commonly used shortcuts that are very useful in Terminal.
Up and Down Arrow Keys: Pressing βββ (the Up key) will go backwards through the command history and pressing βββ (the Down Key) will go forwards through the command history.
Tab Key: The Tab key can automatically complete the command/path you want to type. When there is only one eligible option, the command/path will be completely typed as soon as you press the Tab key even you only type one character of the command/path.
As shown below, under the β~β directory, you enter the Documents directory with the βcdβ command. After typing βcd Dβ, pressing the Tab key (there is no response), pressing the Tab key again then all the files/folders that begin with βDβ will be listed. Continue to type the letters βocβ and then pressing the Tab key, the βDocumentsβ is typed automatically.
End!