Installing the OS on a Raspberry Pi

24.03.18

I have a few projects that require a single board computer with a little more horse power than the usual Arduino and the Raspberry Pi seems to fit the bill prefectly. In this post I take a look at loadign the OS onto the Raspberry Pi and getting it ready to use. Please take a look at the You Tude video I made as it walks you through the process.

It can be found at: https://youtu.be/-SuBH9gnzXU

The first step is to get yourself to the Raspberry Pi website and download the OS software. I have selected the NOOBS to use. You may have even been supplied with an SD card preloaded. If not then download the files from the link below.

https://www.raspberrypi.org/downloads/noobs/

Once you have the files downloaded its time to prep the SD Card. It needs to be formated ready for use. I used the SD Formater application for this, the installers can be downloaded at the link below.

https://www.sdcard.org/downloads/index.html

Once you have a formatted SD card, you can either load the SD card using the downloaded image file and an application like Etcher, or as in my case the Zip file self extracted and I just copied the complete Noobs folder contents to the root of tthe SD card. Etcher can be found at the link below.

https://etcher.io

Next its time to insert the SD card into the Raspberry Pi and turn it on. You will need to plug in a keyboard, mouse and a HDMI monitor.

Once the device boots you can select the OS to install and click Install. The OS will then be installed and boot to the Desktop when complete.

First things first, get the device on the internet, either on WiFi or plug in an Ethernat cable. The WiFi icon is top right of the display, simply select your WiFi network and join as usual.

Once on the internet, its best to install any updates for the system. You can check for updates by starting a terminal session (top left in menu).

Enter the following command. This will determine what updates need to be applied.

sudo apt-get update

Next the updates can be installed by entering the following command. This will ask for a confirmation before proceeding. Type Y to confirm.

sudo apt-get upgrade

Now the system is up to date, its time to do a few house keeping tasks. I grabbed the IP address nbow as I want it latter to do some testing. You can look at the assigned IP information by entering the following command. It will list hardwired and WiFi information.

ifconfig

Next we need to set the configuration options. This is down by clicking the Raspberry Icon in the top menu, clicking preferneces and click Raspberry Pi Configuration.

The configuration dialog will then be displayed.

From the Interfaces Tab, we want to enable SSH by ticking the Enable box.

Then select the localisation tab and set up everything on this tab to match your location and equipment. 

Once all these settings have been made, click Ok to close the Configuration dialog. If you are prompted to reboot, just confirm this and allow the device to reboot.

As we have enabled SSH you will be prompted to change the device password for the pi account. You can also do this through the Raspberry Pi Configuration dialog from the menu.

So that is pretty much all there is to getting the Operating System installed and configured on the Raspberry Pi. You can confirm that SSH is operating by connecting to the device from another computer. If using a Mac or Linux Operating system you can just use the terminal application. If on Windows you might want to install PuTTY from the link below. Just connect to the device by typing the following command.

PuTTY: https://www.putty.org

ssh pi@{your Pi IP address}    where {your Pi IP address} is replaced with the actual address we grabbed earlier.

As this is a first time connection you will be asked to confirm the storage of some security details. Following that enter the password you previously set.

Once connected see if you can call up a listing of the users home directory by typing the follwing command.

ls

If you are presented with a list of folders and files, all is well.

That pretty much completes the load of the OS.

 

Comments (0)


Leave a Comment