Auto Install Remote Control for Raspberry PI (X11VNC) for non-Geeks

This is only for non-geek people to easily set up their Pi for remote control

It is only tested/works on a clean install and not after a lot of fiddling has been done 🙂

Following on from previous success with my auto-install samba (Windows Networking ) I hope that this script will provide a simple way of installing x11vnc which give you full remote control over the normal Raspberry Pi standard desktop.

This is very useful when you want to power your Pi off batteries and stick some wheels on it and turn it into a robot vehicle.

To install, run LX Terminal and copy and paste the following code:

wget -O

and then press enter to download the installer

Once it has finished downloading, type the following and follow the instructions:

sudo bash

At the end, you need to reboot your Pi and then you should be able to use a VNC program on another computer (I use TightVNC myself) to connect and control and view your Pi

Good luck.

24 thoughts on “Auto Install Remote Control for Raspberry PI (X11VNC) for non-Geeks

  1. Hi Simon, thanks for the script, just what I do but by hand!! I have a very nifty wireless keyboard to get started: I use this to set up a new ‘clean’ image, running raspi-config, to configure startx and all the other odds and ends. Connect to my wireless network and install X11vnc. Make an image at this point and its simpler next time. I have found once or twice that update/upgrading can kill x11vnc, so I tend to do all that before installing X11vnc, then make an image. The keyboard is really good with raspi plugged in to a big TV and the built in laser pointer to emphasize places on the screen. There are other versions of the keyboard, but some older ones do not work as well, and have non UK keyboards.

    keep up the good work.


    • That looks excellent for Jams :). I bought a two piece one on impulse as it was on offer for £15 at maplin. But your one definitely better for on the road use 🙂

  2. Hi, Simon. Does this configure VNC to access the same desktop session as the one shared out via HDMI or is it two separate sessions if you boot from the built-in keyboard and mouse as well as VNC? I spent a bit of time configuring VNC to access the ‘main’ session, which could then be attached to an external screen or projector, but it’s not super easy.

    • X11vnc gives exactly the same view as if plugged into monitor :). It’s why i use it. Been using it all the time I’ve had a Pi but just got round to automating the install over the weekend as I was getting bored having to do it manually when starting off from a new image 🙂

  3. I followed the instructions on another website. Set the IP address to Installed TightVNC server and set it to always run.
    Then installed Putty and TightVNC viewer on my PC.
    I suppose that works if you have the IP address and you can just connect via Putty.

    • TightVNC Server doesn’t let you view the “main” desktop i.e the one you’d see if you plugged a monitor in (at least it didn’t used to last year) and viewing the main display can be quite useful at times whereas I don’t have a need for multiple sessions so that’s why I use X11VNC


  4. Useful, thanks! Is there any means of getting a decent-sized desktop when no monitor is connected? Mine defaults to 656×416 and there are no options to change it, from the GUI at least as far as I can find. Cheers!

  5. Perfect! Thank you so much – spent too many hours trying to get TightVNC to view the “actual” desktop until I stumbled across this page – you Sir, are a legend 🙂

  6. Hi Simon
    I’ve been waiting for something like your x11vnc installer but before I do I would like to ask about setting up the password. Does your script ask for a password as the client I use demands one.
    Another topic completely, does GPIO version 5 control the ryanteck board or is it only supported in your Dev version.
    Many thanks for all the help you have given me, and many others I am sure, I would have given up on the RpI by now without it.

  7. Hi Simon.
    I downloaded your installer and set a password. I then executed the bash and did as instructed. All appeared well, however, when I attempt to remotely access the pi, my client requests a password. I have input the one used previously for your script, but the client repeatedly returns to the password prompt and I can go no further.
    I have previously run x11vnc from the command line with no access difficulties, but I can no longer do this. Can you advise how I can disable the password prompt or remove the script?

    • Hi Ken
      I suggest apt-get remove x11vnc and then delete /home/pi/.config/autostart/x11vnc.desktop

      My script seems to be causing problems for people but only for people who’ve previously installed either x11vnc or TightVNCServer or something like that anyway

      it still seems to work fine for me on a brand new Raspbian SD Card so I am a bit in the dark as to the issues others are having

      I’ve marked the blog entry as being for beginners and not for people who’ve already played around with VNC solutuions


  8. Hi Simon,
    Thanks. I got to your script after many unsuccessful attempts at getting x11vnc to load on start-up.
    However, good news. I edited the x11vnc.desktop file and removed all text after the exec entry x11vnc… leave only:
    Saved that file and re-booted.
    Hey Presto… x11vnc loads at boot and I can remote access my pi from my phone without any password issues.
    (Note: I removed x11vnc and x11vnc.desktop as per your suggestion and re-installed your script but without using any passwords (although that didn’t allow access without a prompt for a password)).
    Hope this helps all readers.

    • I wonder if its related to username/passwords – I just use standard pi/raspberry for ssh samba networking and x11vnc

      Anyway – glad you got it working 🙂

      • Hi Simon
        I tried again with x11vnc using raspberry as the password but still get the message “host computer refused connection”
        I noticed that ken Irwin modified the x11vnc desktop file so can you tell me where it is and I will try that. (Is there a search facility in File Manager)

      • I don’t knwo what the issue is
        All I know is that is I download latest image and run my x11vnc script – it works for me

        the autostart file is in


  9. Hi Simon,
    I flashed an old SD card with the latest version of Debian only nothing else, installed X11VNC and it worked! I am currently using VNCviewer on my windows 7 laptop and on my IPad and it works on both. On the laptop it will work using an “Apotop wireless reader/router” as a local hotspot, so I can use it anywhere.
    Once again thanks for your help.

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 )

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