I have Ubuntu Server LTS 14.04 and I want to know whether it's possible to install vnc4server and make it work with ubuntu-desktop (and not xubuntu-desktop) without installing xfce4.

I think I have to configure the vnc4server configuration file but I'm a beginner with all this.

Please, don't suggest that I use xrdp or gnome-core. I just want to run a VNC Server using only the original ubuntu-desktop installation. I use VNC Viewer to connect to my servers, but I don't have any problem with suggestions that I use something different than vnc4server if it's going to work with ubuntu-desktop.


install these packages

# apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal

and use this xstartup file



[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &

gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
gnome-terminal &
  • 1
    I said that I want to run the VNC via the original ubuntu-desktop, does what you suggested run with ubuntu-desktop? – GoLDeN_GhOsT May 31 '14 at 22:48
  • 1
    those are just gnome packages to help vnc4server load properly or else you wont see your desktop correctly – Blanca Higgins Jun 1 '14 at 4:20
  • Awesome....been searching for ages and this worked like a charm!! – Abimbola Esuruoso May 14 '15 at 21:57
  • 7
    Desktop is up (which is great), but Unity launcher & keyboard shortcuts doesn't work ... – Shmil The Cat May 25 '15 at 14:17
  • 1
    Yup, no unity love following these directions. (sadface) just a plain gnome desktop – RoboKaren Nov 7 '16 at 6:39

I had to add gnome-session & prior to gnome-panel & to get any window management to work. Without it, I could only view the default desktop.

protected by Community May 3 '16 at 20:35

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.