Get_started_with_raspberry_pi


Install Raspberry pi OS


Accessories to be prepared in advance:

Img

Img

Img

1

2

3

  1. PC – Windows or MacOS operating system (Access to the Internet).

  2. 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.

  3. 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.
Img

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

Img

3 (Choose the right system)

4

Img

Img

5

6

Img

Img

7

8

Img

Img

9

10

Img

Img

11

12

Img

Img

13

14

Img

Img

13

14

Img

Img

Method 2: Manually install an operating system image

Download Raspberry Pi Imager and install it:
Img

Download the Raspberry PI OS image:
img

Select the operating system image you need:
img

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

Img

3 (Choose the right system)

4

Img

Img

5 (Select the image file)

6

Img

Img

7

8

Img

Img

9

10

Img

Img

11

12

Img

Img

13

14

Img

Img

13

14

Img

Img

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:

Img

Img

Img

Img

1

2

3

4

  1. USB power supply:
    Img

  2. Mouse – USB interface.

  3. Keyboard - USB interface.

  4. 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.
Img

Then, plug in any other peripherals, such as your mouse, keyboard, and monitor.
Img

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.
Img

Method 2: Start the Raspberry pi without monitor

Accessories to be prepared in advance:

Img

Img

1

2

  1. USB power supply:
    Img

  2. 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

Img

Img

Img

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.
Img

Use Putty to remotely access raspberry pi. (Find the IP of raspberry pi)
Img

raspberrypi.local  

Img
Img

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   

Img

β€”-Install VNC Viewer, find the IP of the Raspberry Pi, and then run VNC Viewer:
Img

On the VNC Viewer panel, double-click new connection you just created, and the following dialog box pops up.
Img
The password is the login password of the Raspberry Pi, and the default login password of the original system is: raspberry
Img
Succeed!

Img

To destroy a virtual desktop, run the following command:

vncserver -kill :<display-number>  

Img

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

Img

Img

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.
Img

Fill in the range of IP addresses to scan, and then scan.
Img

Note: The above operations must be on the same LAN.

Transfer files from your PC to Raspberry pi


Download WinSCP and install it.
Img

Log in to raspberry pi using WinSCP.
Img

Drag and drop a file on your PC to raspberry pi.
Img

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.
Img
Note: Linux commands are case sensitive.

First, type β€œls” into the Terminal and press the β€œEnter” key. The result is shown below:
Img
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.
Img

β€œcd” is used to change directory. β€œ/” represents the root directory.
Img

Many frequently used commands and instructions can be found in the following reference table.
Img

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.

  1. 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.

  2. 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. Img


End!