How To VNC To A Raspberry Pi Or Any Linux (how to configure VNC on linux machine remotely)


Raspberry Pi is a $25 credit card size SoC computer. It’s shipped with no VGA port (just HDMI and RCA video port). Since I didn’t have a monitor with HDMI or RCA video port and didn’t want to pay, then wait for a converter to be shipped to me, I configured a VNC connection to my Raspberry Pi remotely. Steps as follow:

Steps 1-6 will prepare you to connect to your Raspberry Pi via SSH connection.
Steps 7 & 8 will install and configure VNC so that you can view Raspberry Pi’s desktop.

  1. Physically connect Raspberry Pi to power outlet and router/modem
  2. Determine the ip address of the Raspberry Pi by downloading a free phone app called “Fing”.
  3. From a client computer (the computer that will remote to Raspberry Pi), download and install a VNC client called, “TightVNC” from the following link,   <—For Windows environment, Most Linux distros have a VNC viewer pre-installed.
  4. From a client computer (the computer that will remote to the Raspberry Pi) If you’re on Windows environment (XP, 7, etc) download an SSH program called PuTTY to the client computer (Linux folks should already have SSH program pre-installed). (Obtained from
  5. Start up PuTTY
  6. *From PuTTY, enter your Raspberry Pi’s IP address that was obtained from step #2 onto the “Host Name” section and “Port” should be 22.
  7. Then press “Open” button and if all goes well, you should be connected to your Raspberry Pi via SSH connection. Obviously, this is a tutorial for VNC connection so from this point, we will be setting up a VNC connection so that we can view the Raspberry Pi’s desktop environment (GUI).

*Default hostname for all Raspberry Pi is “raspberrypi” you can try to enter the hostname instead of IP for step #5 but sometime it takes awhile for network to resolve a hostname to IP.

Step 8:

Once connected to Raspberry Pi via SHH, run the following 3 commands within connected SSH session terminal…

Update Raspberry Pi:

sudo apt-get update

Download/Install tightvncserver:

 sudo apt-get install tightvncserver

Start tightvncserver:



At this point tightvncserver has been installed and been manually started; you can essentially use the “tightvnc” viewer/client that was installed on the
client pc (from step #3) to remote to your Raspberry Pi’s desktop environment. Do this by opening up TightVNC client and enter the following in the “Remote Host” box, raspberrypi:1 OR (your PI’s IP address) to connect to and view your Raspberry Pi’s desktop.


Have TightVNC Server Start After A Reboot (optional)

Step 9:

For getting TightVNC Server to automatically start-up at system reboot or power up, please go to the following link, and go to the section titled, “Adding TightVNC to startup”. This site owner has created a great program that you will need to cut and paste to a text editor like (Nano).

Leave a Reply

Fill in your details below or click an icon to log in: Logo

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

%d bloggers like this: