How can start the VNC server to make my desktop accessible?

4 Answers 4


Install vino:

sudo apt-get install vino

Configure vino:


It open this windows :

alt text

You start the server with :


Enter this command in your Autostarted Apps if you wish vino to start automatically.

  • 2
    I would advise to use vino over ssh, because it isn't a secure application. help.ubuntu.com/community/… Nov 9, 2010 at 0:54
  • 1
    For that last step, System > Preferences > Startup Applications should already have a "Remote Desktop" entry that just needs to be ticked. imgur.com/s4iTd.png Nov 9, 2010 at 1:32
  • @andrewsomething - it was not the case on xunbutu. Nov 9, 2010 at 3:18
  • You should tag your question with xubuntu otherwise people will assume you're using a default ubuntu setup. Nov 9, 2010 at 15:14
  • 2
    There is no vino-preferences in Xubuntu 18.10.
    – PoC
    Dec 28, 2018 at 12:55

Here is the whole process I do to utilize VNC, simplified

ONE. SETUP server

install VNC: sudo apt-get install vnc

install openssh-server: sudo apt-get install openssh-server

TWO. SETUP remote access PC

install PuTTY

install VNC or VNC viewer

THREE. Connect and Launch:

From remote access PC:

  1. Run PuTTY

  2. Connect SSH into the servers IP

  3. Log into the server with Login ID and Password

  4. A Run: sudo x11vnc -display :0 -auth guess

    B Else if that doesn't work, run: sudo x11vnc -display :0 -auth <insert your path to your .Xauthority>

    C Else if that doesn't work, run the commands again but as root.

Then once connection is established...

  1. Launch VNC viewer

  2. When prompted, enter the servers IP and connect

You now have accessed your server via VNC and should be able to control and interact with that desktop.

Good Luck and Enjoy!!

  • Thx! I'm using this method and can connect in the active session; But the connection just still alive for fell seconds and ends showing: > Restored X server key autorepeat to: 1 > viewer exited. > deleted 45 tile_row polling images. Can you help me to solve this?
    – leirbag
    Jan 18, 2017 at 16:41

For a bit more security, I don't leave VNC running the whole time. I SSH into the machine and then start the VNC server using the following command:

x11vnc -safer -localhost -nopw -once -display :0

For ease I have the command in a shell script, so it is just a case of SSH to the server, followed by the command startvnc.sh.

This way once you disconnect VNC is no longer available.

For even more security you can tunnel VNC over the SSH connection.

This link provides details on how to forward the correct ports.


As root, run:

sudo apt-get install vino

As your user, run:

gsettings set org.gnome.Vino require-encryption false
# replace eth0 in the following with your network interface
gsettings set org.gnome.Vino network-interface eth0

A script can be written to automaticly start /usr/lib/vino/vino-server or you can just have your window manager start it directly once it loads and your network is UP, this method worked for me because I was having security type 18 issues with windows VNC Viewer not connecting and I had to turn off encryption

  • 2
    I also did gsettings set org.gnome.Vino vnc-password '' for no password and gsettings set org.gnome.Vino prompt-enabled false to skip the acceptance prompt on the host computer, which should be fine for a trusted local network. (Make sure the router is not forwarding external connections to port 5900 on the host computer)
    – dw1
    Mar 25, 2020 at 6:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .