2

Dears,

Anyone is having problems setting up vncserver with xstartup file to support Unity when remotely connecting over vnc? I read numerous articles on setting up vncserver on 16.04 but all does not work with Unity hence I need to install gnome-panel, gnome-settings-daemon, metacity, nautilus, and gnome-terminal and add couple of lines for the xstartup to get the the vnc working for Gnome classic and not Unity.

Why Unity is not supported for VNC?

Any ideas? And if anyone successfully got vnc to remotely connect to the fully Unity desktop on 16.04 please share the setup.

I dont want to use Vino, I need to have multiple sessions over vnc for other users.

Thanks

  • Not sure what you want to do. I use x11vnc as a server and vinagre as a client on ubuntu/raspbian and it works fine. – user12753 Jan 18 '17 at 9:16
  • I have tried several vncservers and xstartup configuration in order to remotely connect with fully working Unity default desktop for Ubuntu 16.04 with no success. I usually setup a vncsession and on Windows I connect with Vncviewer on earlier Ubuntus but on 16.04 it doesn't display the full Unity. – LebLinux Jan 18 '17 at 9:17
  • @LebLinux Did you manage to find a solution? I have the same issue. vnc doesn't display the full Unity desktop. I have tried a number of vnc servers and different desktop. None work perfectly. – Jonathan Spiller Feb 21 '17 at 13:56
  • Forget Unity and install LXDE, there is no reliable solution to this problem... – LebLinux Jun 6 '17 at 7:40
2

Ubuntu 16.04 has a default VNC server VINO and VINO runs with Unity without problems.

Learn more at https://help.ubuntu.com/community/VNC/Servers

  • 2
    Thanks for the answer! But the OP said "I dont want to use Vino, I need to have multiple sessions over vnc for other users." – Grayson Kent Jun 9 '17 at 13:19
  • Vino is not managable like VNC – LebLinux Jun 9 '17 at 15:27
0

I combined info from the following posts to get a working session.

The 2nd is about enabling RDP access, but the sample .xsession made me realize what was missing from the .xstartup samples from other posts. Namely getting the panel service and settings daemon going.

https://help.ubuntu.com/community/VNC/Servers

https://www.hiroom2.com/2016/08/28/ubuntu-16-04-remote-connect-to-unity-with-vnc-xrdp/

Since I use a VPN I didn't bother with security beyond VNCAuth.

Here's the GNOME clause I ended up with in my .xstartup.

            gnome-session --session=ubuntu &
            /usr/lib/x86_64-linux-gnu/unity/unity-panel-service &
            /usr/lib/unity-settings-daemon/unity-settings-daemon &

            for indicator in /usr/lib/x86_64-linux-gnu/indicator-*; do
              basename=`basename ${indicator}`
              dirname=`dirname ${indicator}`
              service=${dirname}/${basename}/${basename}-service
              ${service} &
            done

            unity

I did notice the screen saver and nautilus blew chunks when I resized my display, but I can live with that.

  • This answer is about gnome, while the original question was about Unity. – Roel Van de Paar Jun 11 at 10:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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