Home > How To, Raspberry pi, Technology > Raspberry pi – Access the GUI on pi remotely with VNC

Raspberry pi – Access the GUI on pi remotely with VNC

To be able to access the GUI on your pi remotely with VNC you will first need to install the VNC server on your raspberry pi.

In the GUI left click in the bottom left hand corner on the blue cross  to display the options menu (Like the start button in windows) go to accessories and then left click on LXterminal to display the terminal window

Type in the following command

Sudo apt-get install tightvncserver

The VNC server will then download and install on to your raspberry pi.

When you return to command line type in the following command


Once it has vnc has started you should get the following

You will require a password to access your desktops

Password (Enter a password for VNC access)

Verify (Re-enter password for VNC access)

Would you like to enter a view-only password (y/n)? (we say n for the moment)

New ‘X’ desktop is raspberrypi :1

Creating default start-up script /home/pi/.vnc/xstart-up

Starting applications specified in /home/pi/.vnc/xstart-up

Log file is /home/pi/.vnc/raspberrypi:1.log

We now need to set the VNC server to autoboot when we turn the raspberry pi or we will have to log onto pi locally and start the vncserver before we can start using it remotely.

Type the following into command line

sudo nano /etc/profile

Scroll to the bottom of the file and type the following

vncserver :1

(the above command must be put in before the startx command if you have this in the file as well)

You can now reboot and start enjoying your pi remotely though VNC.

(If you want to use your pi locally again you will find that the startx command creates an error when logging on  to resolve this you will need to delete the vncserver :1 from the “/etc/profile” and then reboot)

To see how to setup VNC viewer on your PC so you can connect to your Pi click the following link


  1. September 10, 2012 at 10:17 am

    Reblogged this on Gigable – Tech Blog.

  1. No trackbacks yet.

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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s


The University of Glasgow's Raspberry Pi Project


Your all round solution for tech problems (and some others things...like spelling errors)

Raspberry Pi Kid

A 16-year old's adventures with Raspberry Pi

Naked Security

Computer Security News, Advice and Research

Grumpy IT Girl

I'm not a very good writer

Dustin Software

Because programming is fun!

Pinoy Tekkie



Fun stuff for technics enthusiasts

I Kissed My Date Goodnight

Embarking on motherhood through the miracle of adoption.


Tech, Gadgets, Photography, Social Media and Poor Spelling

Programming My Rasberry Pi

A brave fool's adventures into the unknown!

Chris Ainger's Blog

Where Fishing Meets Computing


Information wants to be free

ITtechExec: Protecting Tech Careers Since 2001

Technical Career Advancement: Transformed. Guaranteed.


Entertainment, Technology, Social Media Updates from in Between the Web…


An Exclusive Web 2.0 Startups Review Blog

The Life of Me

Just another IT blog


The Best Place for Deziners

%d bloggers like this: