Setting up a VNC Server on your Raspberry Pi

If your Raspberry Pi is purposed to do a task that normally does not require a monitor, mouse and keyboard (or any human interaction for that matter), sometimes it is useful to access your Raspberry Pi’s operating system without having to connect a monitor, mouse and keyboard. Here’s how

Step 1: Required Materials

You will need the following:
– Raspberry Pi Model B (ModelA will also work in this case)
– Ethernet cable or wifi dongle (this one works well and is inexpensive: http://www.adafruit.com/products/814 )
– Standard USB to micro USB cable (most Android smart phones come with one)
– Monitor, mouse and Keyboard for initial setup
– USB hub if you want to connect more than 2 things (in this case Mouse+Keyboard+Wifi Dongle)Setting up a VNC Server on your Raspberry Pi

Step 2: Installing a VNC Server on your Raspberry Pi

This instructable will assume that you have already gotten Raspbian or some operating system installed. (Raspbian was used for this instructable)

If you have not yet installed an operating system, a common, well documented stable one is Raspbian which can be installed by using NOOBS (New-out-of-box-software). Once you download it to an SD card, it pretty much will install itself. It makes setting up the Raspberry Pi – which will from now on be affectionately referred to as Pi – VERY easy!

Once you have an operating system running here are the required steps to install a VNC server:

1. Open LX terminal
2. In LX terminal type in “sudo apt-get update” to update the operating system to the latest version
3. When prompted to update type in “y” and press enter
4. After updating is complete type in “sudo install tightvncserver”. Press “y” and hit enter when prompted
5. Once tight VNC server has completed installation you can start it by typing in “vncserver:1”
6. It will prompt you to create a password. Keep in mind passwords can be at MOST 8 characters long.
7. Once you have entered a password you are done! The VNC server is now running in the background of your Raspberry Pi’s      operating system. Now you can use any computer on your network with a VNC client to remotely access the Raspberry PiSetting up a VNC Server on your Raspberry Pi schematic

Step 3: Installing a VNC Client on your Windows PC

This only covers how to install a client on a Windows PC. There are several free clients available. In this one we will use Ultra VNC, but here’s a list of VNC clients that offer free versions:

Tight VNC
Real VNC
Ultra VNC

Once you  have installed one of those VNC clietns/viewers, you will need to figure out what the IP address of your Raspberry Pi is. You can do this by opening LX Terminal and typing in “sudo if config”

Once you know your Raspberry Pi’s IP address (shown in red box in picture below), then go to your Windows machine and open up your VNC client. Type in your Pi’s IP address followed by “:1” Then enter your password and voila! You are now remotely accessing your Raspberry Pi’s operating system.

 

For more detail: Setting up a VNC Server on your Raspberry Pi

Scroll to Top
Read previous post:
DIY Alarm Monitoring System w/ Raspberry Pi + Foscam + Sensors

The Raspberry Pi is an amazing device. Although not the most powerful mini computer out there, it bolsters a tremendous...

Close