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

123,356

Solution 1

install these packages

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

and use this xstartup file

#!/bin/sh

export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS

[ -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 &

Solution 2

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.

Share:
123,356

Related videos on Youtube

GoLDeN_GhOsT
Author by

GoLDeN_GhOsT

Updated on September 18, 2022

Comments

  • GoLDeN_GhOsT
    GoLDeN_GhOsT over 1 year

    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.

  • GoLDeN_GhOsT
    GoLDeN_GhOsT almost 10 years
    I said that I want to run the VNC via the original ubuntu-desktop, does what you suggested run with ubuntu-desktop?
  • Blanca Higgins
    Blanca Higgins almost 10 years
    those are just gnome packages to help vnc4server load properly or else you wont see your desktop correctly
  • Abimbola Esuruoso
    Abimbola Esuruoso about 9 years
    Awesome....been searching for ages and this worked like a charm!!
  • Shmil The Cat
    Shmil The Cat about 9 years
    Desktop is up (which is great), but Unity launcher & keyboard shortcuts doesn't work ...
  • RoboKaren
    RoboKaren over 7 years
    Yup, no unity love following these directions. (sadface) just a plain gnome desktop
  • Dims
    Dims over 5 years
    Works very bad with a lot of garbage
  • Chris Smith
    Chris Smith almost 3 years
    Found this post coming from setting up tightVNC but wanted to use gnome desktop instead. Much thanks