Setting up Raspberry Pi with Raspbian OS

raspbian_logo
The objective of writing this article is to showcase how to setup Raspberry Pi with Raspbian OS on a machine using Windows 10 Enterprise within your home network or office network. The Raspberry Pi is a low cost, credit-card sized computer that plugs into a computer monitor or TV, and uses a standard keyboard and mouse.

It is a little device that enables people of all ages to explore computing, and to learn how to program in languages like C, Node.js, Python, C# (Mono Framework), Java etc. It’s capable of doing everything you’d expect a desktop computer to do, from browsing the internet and playing high-definition video, to making spreadsheets, word-processing, and playing games.
There are five different versions of the Raspberry Pi board.

We used Raspberry Pi 2 Model B for the demonstration. It has all the features like

  • 4 USB ports
  • 40 GPIO pins
  • Full HDMI port
  • Ethernet port
  • Combined 3.5mm audio jack and composite video
  • Camera interface (CSI)
  • Display interface (DSI)
  • Micro SD card slot
  • VideoCore IV 3D graphics core

Software Details

Raspberry Pi board supports variety of operating systems like Raspbian, Windows 10 IoT Core, Ubuntu etc. The details can be found here.
It is recommended to install Raspian Jessie/ Wheezy on your board. Installation is pretty straightforward.

Step 1 – Install Raspbian OS from the download page
Step 2 – Write the image to the SD card. Download the Win32DiskImager utility from the Sourceforge Project page. Extract the executable from the zip file and run the Win32DiskImager utility to write the image to the SD card.
Step 3 – Connect the board to the network cord to give the internet connection.
Step 4 – Power on the board
Step 5 – Wait for 10-15 minutes and OS would be installed. You can see the progress once you connect the monitor using HDMI cable.

Network Connectivity

There are two ways to connect to Raspberry Pi. You can connect separate monitor, keyboard and mouse to control it. Another way is to use your laptop to share the accessories. I choose later one for more convenient option. Once you connect the board with the laptop, you can access it as CUI and GUI both. The shell and remote desktop is available through putty and tightvnc respectively. Install both the tools from the location given below

Open your wifi router configuration page to check the IP address

Alternate way is to execute ifconfig command on the linux terminal to get the IP address. But this requires a monitor to connect to the board.

Open putty.exe and use the IP address to connect to the shell remotely. The default username is pi and password is raspberry. However, you can change it anytime. It is recommended to change the credentials from time to time.
Open the remote shell and install tightvnc using following command
sudo apt-get install tightvncserver
Next, run TightVNC Server which will prompt you to enter a password and an optional view-only password
Tightvncserver
Next open the TightVNCViewer on your local machine and use the IP address and screen number separated by colon(:). The screen number is printed when you started the tightvncserver on the shell.

Click Connect and you would be able to access Raspberry Pi board.

One thought on “Setting up Raspberry Pi with Raspbian OS

  1. this is something awesome . well explained .
    Well written .Thanks for the post .
    This helps me a lot to setup a OS in my raspberry pie

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.