Unity doesn't work on VNC server under Ubuntu 14.04 LTS

5

1

After upgrading to Ubuntu 14.04 LTS, I find the Unity destkop in vnc4server never works as it did under Ubuntu 12.04 LTS.

Here is my ~/.vnc/xstartup for vnc4server:

#!/bin/sh

xrdb $HOME/.Xresources
xsetroot -solid grey

/usr/bin/gnome-session &

That works fine starting Unity desktop on Ubuntu 12.04 LTS, but unfortunately on 14.04 LTS only a gray screen is seen in vncviewer.

I searched a little and find this article shows the way to start legacy gnome desktop (gnome-fallback) in vnc on 14.04, but what I want is the solution for a normal Unity desktop in vnc.

Has anyone successfully run Unity desktop in a vnc session (vnc4server, or any other vnc server) on Ubuntu 14.04 LTS?

xma

Posted 2014-08-31T13:16:05.057

Reputation: 51

Did you find a solution? – Steve Lorimer – 2014-11-19T21:05:45.413

Still no for Vnc4Server. But I find Vino + some specific correct graphics driver works. In fact vnc server issue on 14.04 is a known pending bug: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1251281

– xma – 2014-11-21T00:29:31.673

Answers

1

This Ask Ubuntu answer by Blanca Higgins shows the solution.

Install these packages:

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

Use this ~/.vnc/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 &

David Cullen

Posted 2014-08-31T13:16:05.057

Reputation: 133

1this is not unity – daniel – 2016-09-07T10:04:42.430