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

vncserver

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

https://frustrateditengineer.wordpress.com/2012/07/30/how-to-connect-to-a-tightvnc-server-using-tightvnc-viewer/

Advertisements
  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 )

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

raspberrypicloud

The University of Glasgow's Raspberry Pi Project

Tech-o-rama

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

thedomesticfringe.com/

telling stories - making memories

Raspberry Pi Kid

A 14-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

USER-FRIENDLY TECHNOLOGIES FOR THE PINOY NOOBIES

petRockBlog

Fun stuff for technics enthusiasts

I Kissed My Date Goodnight

A single thirty-something embarking on motherhood through the miracle of adoption.

projectz

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

PIPAL

Information wants to be free

ITtechExec: Protecting Tech Careers Since 2001

Technical Career Advancement: Transformed. Guaranteed.

CRUNCHEDD

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

StartupTunes

An Exclusive Web 2.0 Startups Review Blog

The Life of Me

Just another IT blog

NJrajgelani

The Best Place for Deziners

%d bloggers like this: