I am trying to install vnc on an x86_64 ubuntu 20.10 which is headless. I do NOT want Xfce, all of the tutorials for some inexplicable reason tell you to install xfce. I do NOT want to install this package as I already have the desktop manager: Gnome (default on Ubuntu).
As far as I can tell the guide on digital ocean seems to be the best except their xstartup is for xfce. I tried following and replaced xfce with gnome-session but I just get a grey screen and can't interact with anything.
could anyone please help me with this or point me in the right direction.
Thanks!
Edit: Here is my xstartup:
# Config requires following packages:
# gnome-panel nautilus gnome-terminal metacity
#
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
gnome-session &
gnome-panel &
metacity &
gnome-terminal &
I run vncserver via ssh on a remote machine using this:
$ vncserver
New 'X' desktop is media-server:1
Starting applications specified in /home/kevin/.vnc/xstartup
Log file is /home/kevin/.vnc/media-server:1.log
and here is the log:
04/02/21 10:40:28 Xvnc version TightVNC-1.3.10
04/02/21 10:40:28 Copyright (C) 2000-2009 TightVNC Group
04/02/21 10:40:28 Copyright (C) 1999 AT&T Laboratories Cambridge
04/02/21 10:40:28 All Rights Reserved.
04/02/21 10:40:28 See http://www.tightvnc.com/ for information on TightVNC
04/02/21 10:40:28 Desktop name 'X' (media-server:1)
04/02/21 10:40:28 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
04/02/21 10:40:28 Listening for VNC connections on TCP port 5901
Font directory '/usr/share/fonts/X11/75dpi/' not found - ignoring
Font directory '/usr/share/fonts/X11/100dpi/' not found - ignoring
(gnome-panel:123980): gnome-panel-WARNING **: 10:40:30.098: Failed to acquire bus name!
metacity-Message: 10:40:30.227: could not find XKB extension.
(metacity:123981): metacity-WARNING **: 10:40:30.232: Failed to create compositor: Missing composite extension required for compositing
Xlib: extension "X-Resource" missing on display ":1".
Here is what I get when I try to view the desktop: