You are on page 1of 5

Raspberry PI GUI

The Raspberry Pi is a credit card sized computer manufactured for students to learn
electronics. With its USB and Ethernet ports and HDMI connectivity, it can be
hooked on to any LCD screen and used as a portable PC. The aim of this project is
to use a GUI on the laptop's core that would give access to all the functionality on the
Raspberry Pi's ARM11 core. The GUI uses a virtual network to display the Raspbian
OS on the laptop.
How will this project help you?

No need for keyboard, monitor and HDMI cable every time you need to
connect to Raspberry Pi.
Simple to use
Can use two operating systems simultaneously
No Reduction of Speed
User can access the Raspberry Pi GUI if connected on the same server
Network connection can be encrypted

No Keyboard or Screen available, but do have a laptop?


I have a solution for you to get started on Raspberry Pi with just the Laptop where for
the first initial setup you will have to use a monitor and keyboard to set it up with a
laptop.
Sometimes it is not convenient to work directly on the Raspberry Pi. Maybe you
would like to work on it from another computer by remote control.
VNC is a graphical desktop sharing system that allows you to remotely control the
desktop interface of one computer from another. It transmits the keyboard and
mouse events from the controller, and receives updates to the screen over the
network from the remote host.
It all can be done with the help of a Network Cable
Components required for the task are:

Raspberry Pi Model B 512 MB Ram


A Network Cable
A 5V Adapter
A boot SD card for the Raspberry Pi
A network connection (Ethernet or WiFi)
Special software on both the Raspberry Pi and the remote, controlling
computer

So the first thing you need to do is to download and install the Raspberry Pis
operating system. Just go get the default Wheezy Raspbian Image from
www.raspberrypi.org/downloads. After the image is downloaded, write the latest
Debian Wheezy Image in to a SD Card using Win32DiskImager.

Since I have mentioned above that for the first setup we need to have access to an
external monitor along with the HDMI cable to Run the image on Pi and obtain a
display running on the monitor screen.
You need to

Install VNC (Virtual Network Computing) server software on the Raspberry Pi


Start the VNC server software
Install a VNC client on another computer
Connect over a network from your computer to the Raspberry Pi

INSTRUCTIONS
Log in to your Pi and install the Tight VNC Package
$ sudo apt-get install tightvncserver
Next Run TightVNC Server which will prompt you to enter a Password and an
optional View Only Password
$ tightvncserver
Once that is done you can start a VNC server from the shell prompt. This example
starts a session on VNC display zero (:0) with full HD resolution:

$ vncserver :0 -geometry 1920x1080 -depth 24


(If fonts appear the wrong size, add '-dpi 96' to the end.) Or you could create a script
to save typing in the whole thing.
$ nano svnc.sh (call the file whatever you like)
Add the lines:
#!/bin/sh
vncserver :0 -geometry 1920x1080 -depth 24 -dpi 96
Ctrl-x y <return> (To Exit Nano and Save)
Set the file to Execute
$ chmod +x svnc.sh
then to run
$ ./svnc.sh

Step 1: Set up Raspberry Pi

Boot Raspberry Pi with a desired OS

Insert SD card to boot up Raspberry Pi

Connect to HDMI Display for first time setup

Power on Raspberry Pi

Step 2: Sharing Internet over Ethernet

Share your Laptops internet with Raspberry Pi

Windows: For sharing internet for multiple users over Ethernet, go to


Network and Sharing Centre. Click on the Wi-Fi network

Click on Properties, then go to Sharing and click on Allow other


network users to connect. Make sure that networking connection is
changed to Local Area Connection.

Check IP address assigned to Ethernet on Raspberry Pi using


command ifconfig

Assign the same IP address to the Ethernet LAN network in windows


IP settings
Ping the IP Address to check its broadcast

Step 3: Installing VNC server on Raspberry Pi

For that if you have HDMI display and Raspbian OS running on it, open
LX-Terminal and type following commands to install VNC.
o $ sudo apt-get update
o $ sudo apt-get install tightvncserver

Step 4: Start the VNC Server on Pi

Write a Shell Script to start VNC Server by identifying the geometry


and resolution of your Laptop Screen

Get the script on your desktop and execute the .sh file

Assign a Static IP address

Users need to assign a static ip address to be able to ping to raspberry pi

For this we need to go to /etc/network and edit the file called interfaces to the
following values

You will find iface lo inet loopback


iface eth0 inet dhcp

Edit it to

iface eth0 inet dhcp to iface eth0 inet static

Below this line enter the following.

address 192.168.100.1
netmask 255.255.255.0
network 192.168.100.0
broadcast 192.168.100.255
gateway 192.168.100.254

On reboot you will be able to ping your ip address

First,
You'll need to copy an image to a suitable SD card (or make your own image). You'll
also need a USB keyboard, TV/Monitor (with HDMI/DVI/Composite/SCART input),
and power supply (USB charger or a USB port from a powered USB Hub or another
computer).

You'll likely also want a USB mouse, a case, and a USB Hub (a necessity for Model
A). A powered USB Hub will reduce the demand on the RPi. To connect to the
Internet, you'll need either an Ethernet/LAN cable (Model B) or a USB WiFi adaptor
(either model). See RPi VerifiedPeripherals for more information on supported
peripherals.

Find out the IP address of your laptop


To do this, you go to system settings. There you will have to turn the switch icon on
the top right to "On". You will also need to connect your laptop with an ethernet cable
to your Raspi to see the IP address.

What does it do?


Sometimes it is not convenient to work directly on the Raspberry Pi. Maybe you
would like to work on it but from another computer by remote control. You can do this
and the remote computer can even be anywhere in the world over the internet. This
tutorial shows how you can view and control the raspberry pi desktop from your
computer's desktop by using special software.

On Windows you'll need to download and install a VNC client program. I have used
VNC Viewer as a VNC player to accomplish the given task. Its better to use VNC
Viewer instead of Tight VNC viewer as VNC Viewer provides more secure shell in
order to access the GUI so that without a private key no one can enter and hack your
system without the private key other than the user.

Further Scope/Ideas

We can perform all tasks with this configuration as a Raspberry pi with


external monitor can perform

Want to make a projector with DLP technology running on Raspberry Pi

So our target customers will be educational institutions for selling projectors

Projectors will have a touchscreen to operate on Raspberry Pi.

Also simultaneously to work on Swarm Particle Optimization based medical


imaging.

You might also like