Install RASPBIAN OS on Raspberry Pi and remote connect

Project Goals

The goals of this project are to:

  1. install Raspbian OS on Raspberry PI and
  2. connect to Raspberry PI via remote desktop

At the end of  this project, we will test our operating system and remote desktop connection by pushing a library to the Raspberry PI and opening a gauge program that we have developed.  This will be the basis for the following projects.

Step 1) Download Raspbian OS

You can download Raspbian OS from the following website:

Download this as a .zip file to your computer.

Downloading Raspbian OS

Downloading Raspbian OS

Step 2) Download Etcher

Etcher is used take the Raspbian OS from your computer and write it to an SD card.

You can download Etcher from the following website:
How to download Etcher

Step 3) Open Etcher and push (flash) Raspbian OS to an SD Card

Step 4) Install Rasbian OS

Insert the SD card in Raspberry Pi and turn on the board. This the vital step to install Raspbian OS to your Raspberry PI.

Congratulations, you have now installed an operating system on your Raspberry PI.

Step 5) If you are using an LCD, indicate your resolution

If you are using an LCD, you need to ensure that the /boot/config.txt file indicates the resolution of your LCD.  You can do this with the command sudo nano.

Defining the LCD resolution

Change or add this code for defining your LCD resolution (800×480 lcd or 1024×600)
hdmi_cvt=800 480 60 6 0 0 0
#hdmi_cvt=1024 600 60 6 0 0 0

use Ctl+O for saving and ctl+X for exit

Step 6) Connect Raspberry Pi to WIFI

Step 7) Identify your (Raspberry’s) IP address

In the terminal issue the following command to identify your IP address.
sudo ifconfig

Identification of IP address

Step 8)  Connect to Raspberry PI via remote desktop

On your Raspberry PI, use the following commands to enable remote desktop:

sudo apt-get update
sudo apt-get purge realvnc-vnc-server
sudo apt-get install xrdp

Raspberry Pi – Remote Desktop (XRDP) installieren

You may be asked if you want to allow the remote connection. Reply y.  Then, issue the reboot command.
sudo reboot
Open the remote desktop app on your computer, provide the IP address of your Raspberry PI and connect.

Connecting to Raspberry PI via remote desktop

The default username is pi and the password is raspberry.

Login with username and password

Step 9)  Copy the library file into the Raspberry directory

Raspberry Directory

Moving a library into Raspberry

Step 9) Open the Thonny Python IDE application

How to use Thonny Python IDE

Step 10) Open the file

Open library

Library implementation on Raspberry PI

Final Result)

Final result: Gauges on Raspberry PI

One Comment

  1. Hi may i know where i can fund the library in step 8?


Leave a Reply

Your email address will not be published. Required fields are marked *