Setting up your Raspberry PI 2 without External Display

This tutorial will guide you how to get your Raspberry PI 2 ready for action. Recently I bought a RPI for my project and I went through absolute shit storm trying to set it up correctly, so after searching google and doing hit n trial methods I was finally able to setup my RPI.

In this tutorial we will be using no external display i.e. HDMI with TV or monitor, it’ll be solely throught your computer system in my case I’m using my laptop.

If you are totally new to Raspberry PI, Take a look at this image to get familiar with it’s ports

 

What’s Required?
1) A Raspberry PI 2 Model B (This is the model I have)
2) Kingston 16 GB Micro SD Card (Atleast 8 GB > of space)
3) Kingston Micro SD Adapter (Comes with the SD Card, We’ll use it to install the OS on the SD for the pi)
4) Ethernet Cable (Standard RJ-45)
5) Micro USB Power Cable
6) An active internet connection
7) Putty  (For SSH Connection)
8) TightVNC Viewer (For Remote Connection)
9) Win32 Disk Imager (Writing the Image on the SD card)
10) Raspbian OS Image (Latest, https://www.raspberrypi.org/downloads/raspbian/)

NOTE: I am using Windows 10 as my default OS

Loading Raspbian on the SD Card

In this step we’ll be preparing the SD card, we’ll be loading Raspbian OS on the card. First put your Micro SD card in the Micro SD Adapter and then push it in your laptops SD card reader. Now lets fire up Win32 Disk Imager, press the small FOLDER icon and browse to your Raspbian Image, select it and press OK.

Now select your SD Card from the combo box besides the FOLDER icon. Just to make things sure, goto My Computer and confirm the drive name for your SD card before going to the next step.

Now click the WRITE button and select YES, wait for a while till the process is done. After it completes, remove your sd card and lets start up our raspberry pi 😀

Pluggin in the SD card, Ethernet and micro USB Cable

Hold the raspberry pi with the back of it facing you, now take the sd card. The side with the written stuff of the sd card should be facing you, now push the sd card into the slot.

Inserting the SD Card

Now connect the Ethernet and the micro USB power cable to their respective ports on the Raspberry PI and your system

Connected and Powered On

The red LED indicates that the Raspberry PI is powered on, while the Green light indicates I/O operations

Setting Windows enviorment for connecting Raspberry PI

Ok so now we are done with the RPI, now we’ll setup our connection to the pi using ethernet cable that we just used in the previous step. This step allows you to share your interent with the raspberry pi so that you can install your stuff at the same time while you work on it 😀

Ok so open your Network and Connection Settings, then goto the Adapter Settings (Right click internet icon on the task bar, Network and Sharing Center, click Change adapter settings in the left sidebar). So now you have all the available connections in front of you, what you need to do is to select your WiFi connection then right click it and goto the Properties. Then goto the Sharing tab and tick the “Allow other network users to connect throught this ….” option. If any pop ups come just accept them. The essential part is to restart the system because the time you login to your windows, it’ll automatically assign IP to the Raspberry PI making things easy for us. To confirm if you did right, select the ethernet adapter to which the RPI is connected to, goto the properties and check the IP, if it’s assigned by the system then you are on the right track. In my case after doing this step,

IP Setting

Don’t panic if the IP is different!

Starting SSH session with Raspberry PI

Open Putty and type “raspberrypi.mshome.net” in the Host Name text box. Press connect, press accept if a pop up comes. The login username is pi and the password is raspberry. After that you should be logged in 🙂

SSH Session

Time to setup a remote connection, keep the session open!

Check Internet Sharing

To check if the raspberry pi has access to the shared internet, type the following command:

sudo -i (Grants root privilige)

then type

ping google.com

If you see a response then the internet is being shared otherwise you might have made a mistake in the Sharing part.

Installing VNCServer

Now to install VNCSever type, apt-get install tightvncserver

After the installation is done, type the following into the console to start the VNC Server

vncserver

It’ll ask you for a password, set it to a 6 length password. Creating a password for View Only is not needed hence you can skip it, congrats now your vncserver is running, but there’s a catch. You need to know the instance of the VNC Server, check the image below.

VNC Server

Take a note of your instance number for next step

Initiating Remote Connection

Open TightVNC Viewer in your Windows, then type

raspberrypi.mshome.net:1

What is 1? 1 is the instance of the VNC server that we started in the previous step. You can run more than one instance of VNC servers on raspberry PI but while connecting you’ll have to specify that to which instance you want to connect.

After pressing connect it’ll ask you for the Password so enter the password that you previously set for the vnc server instance.

If all goes well you’ll now see a new windows for your newly setup remote connection to the Raspberry PI

Remote Connection

Congrats! You’ve established a remote connection with your raspberry PI, now you can start tinkering with your device 😀
More raspberry tutorials coming soon..
Regards,
Ex094

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s