Skip to content

Remote Control of Your Raspberry Pi

I get asked a lot about controlling my headless Raspberry Pi setup and while there arevnc - 2 many ways of doing it lately have been using VNC and have started recommending that to everyone. Some command line purists will say that VNC is overkill and I do agree with that as 95% of things that I do on my Raspberry Pi are command line based and could just as easily be accomplished via SSH but I like having the option of using the GUI so for now at least VNC is the way I am going.

Setting up VNC on the Raspberry Pi is straight forward. If your Raspbian is up-to-date VNC is built in and just needs to be enabled. Below I will take you through a fresh install of Raspbian and setup of VNC.

First what will you need?

To begin the installation process you will need a MicroSD Memory Card, and the ability to format and burn an image to that MicroSD Memory Card. I am sure most of you know how to do these steps already, but I will give my recommendations, for formatting I prefer to use SD Memory Card Formatter for Windows and to burn the image Etcher.

Memory Card Preparation:

  1. Insert MicroSD Memory Card into a computer
  2. Open SD Memory Card Formatter for Windows
  3. In SD Memory Card Formatter for Windows Select the Drive that corresponds to your Memory Card
  4. In SD Memory Card Formatter for Windows Click Format and wait for it to finish
  5. Download the Raspbian disk image from
  6. Open Etcher.
  7. In Etcher Select the previously Downloaded Image
  8. In Etcher Select the Drive that corresponds to your Memory Card
  9. In Etcher Click Flash and wait for Etcher to Finish

Raspberry Pi Setup:

  1. From the Raspbian Desktop Click on Menu (The Raspberry Pi Icon in the top Left)
  2. Click on Preferences
  3. Click on Raspberry Pi Configuration
  4. Click on Interfaces
  5. Click the Radio Icon for Enabled next to VNC
  6. Click OK on that dialog box (You will be prompted to Reboot the Raspberry Pi, do this!)
  7. Next, we need to get the IP Address of the Raspberry Pi you can do this by launching Terminal from the Raspbian Desktop
  8. Type ifconfig and hit Enter
  9. Look for the number nest to “inet addr” it should look something like

Viewer Setup:

  1. Download the VNC Viewer from RealVNC
  2. Launch the VNC Viewer on your Computer
  3. Enter the IP Address of your Raspberry Pi
  4. Click OK (the first time you connect you will get a message saying “VNC Server not Recognized” click Continue)
  5. You will then be prompted to log in using the credentials of your Raspberry Pi (if you have not changed them the username will be PI and the Password with be Raspberry)

If everything went well, you will not be looking at your Raspian Desktop. What you might want to do next is enable VNC from an external network and that is pretty simple to do. VNC runs on port 5900 so what you need to do is forward port 5900 of your Raspberry Pi to your external IP Address. I will not go into how to do that here as it varies greatly depending on your ISP, Modem and Router.

What do you use for remote connection of your Raspberry Pi? Let me know in the comments below.



Mike View All

I am passionate about the IoT and connected devices. Using connectivity to automate our lives will empower civilization to achieve greatness.

3 thoughts on “Remote Control of Your Raspberry Pi Leave a comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: