Ubuntu – How to make VNC Server work with ubuntu-desktop without xfce


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.

Best Answer

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 &
Related Question