Tutorial:- How to Setup Raspberry pi out of the box?
Raspberry is a tiny computer powered with ARM cpu along with 1 GB of RAM, 4 USB ports, Ethernet, HDMI, camera and other optional features. But what makes is special is the GPIO pins. Think about having the I/O features of Arduino or any other micro with processing power and speed of real computer. That’s what Raspberry pi is offering.
So here we are going to explain how to setup the raspberry pi for the first time.
We gonna need following items:
- Raspberry pi x1
- A HDMI display or VGA monitor with hdmi to vga converter x1
- 5v-2A power supply for Raspberry pi(Cell phone charger is good) x1
- Optical mouse x1
- Keyboard x1
- Micro SD card and SD card reader (4 GB or more - class 4 minimum, higher is better) x1
- A Computer
Getting Things Ready:
First of all we have to download the OS for our Raspberry pi. To do this go to Click here to Download Raspbian OS- https://www.raspberrypi.org/downloads/raspbian/.
You can also Go to - https://www.raspberrypi.org/downloads/
and select among various third party OS. Meanwhile this tutorial is using Raspbian OS.
After Downloading the OS we need to prepare memory card for OS. we need to format the card and burn the image on SD card. to do this we will need two Software.
- SD Card Formatter- https://www.sdcard.org/downloads/formatter_4/
- Win32 Disk Imager- http://sourceforge.net/projects/win32diskimager/files/latest/download
Loading OS to SD Card:-
To load the OS in SD card. first plug in the SD card into your PC and Format it using SD card Formatter. select format size adjustments under options. CHECK THE DISK IN SD FORMATTER BEFORE FORMATTING…
After successful completion of formatting open the win32 disk imager and choose the Raspbian OS image you just downloaded. Choose the SD card in drive column. Please ensure that you have selected the SD card drive or you may corrupt your PC if you select any of it’s drives.
Then click on Write to Start the process. It may be time consuming depending class of your SD card.
When process is completed, un-plug your SD card and insert in Raspberry pi.
Booting Raspberry pi:-
Connect the Keyboard, Mouse and Monitor to the Raspberry pi. And then switch on the power.
Now when you switch on the power your Raspberry pi will boot into Raspbian OS. you will see a black screen scrolling down and then Raspberry logo. it may ask you for user name and password. if it does you should enter the default credentials i.e. username- pi , password- raspberry
in no time you will be looking at desktop of raspberry pi. Congratulations your Raspberry pi computer is ready.
But wait, I have some additional info to share about what should you do if don’t have the supporting hardware e.g. monitor, mouse, keyboard ???
There is another way to reduce the need of the monitor, mouse and keyboard. For that you have to connect your Raspberry pi to LAN cable(Ethernet) and use SSH terminal to control it via PC. I’m using second method as me don’t have the required accessories.
we will be using VNC viewer to use our laptop or mobile screen as display of Raspberry pi and interact with it.
To do this first of all follow all the above instructions and boot your raspberry pi. then download the PUTTY from here- http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
and also download the VNC viewer from here- http://www.tightvnc.com/download.php
After downloading connect your pc and raspberry pi to the same network using LAN cable. then open the putty and connect to the IP address of the raspberry pi using SSH terminal.
It will ask you to enter username and password. enter “pi” as username and “raspberry” as password. you will not be able to see password on terminal when you are typing it, but it is being typed.
Now as you have login to Raspberry pi, it’s time to install the TightVNC server into the Raspberry pi. to do so type this command and press enter- "sudo apt-get install tightvncserver"
then it will ask for some confimation, press Y and hit enter. then you will some files are being downloaded.
when it’s finished, enter this command to start the vnc server.- "sudo tightvncserver"
it will ask you to set some passwords for the first time. enter the passwords and press enter. you will not able to see any password being typed as before. Now your VNC server is running.
On your pc open the tightvnc viewer and enter the IP address of your raspberry following “:1” e.g. 192.168.255.255:1
this :1 can be higher depending how many session of vnc server is running on your raspberry. you can see this number when you entered the command to run the vnc on raspberry pi.
After this you may see the raspberry pi display feed under your VNC and you will be able to control it using your pc’s mouse and keyboard.
So this tutorial ends here. have fun with this tiny computer.