I just spent a few hours getting the free version RealVNC working in Ubuntu 13.04 Raring Ringtail (Beta 2). Here are the steps that I needed to take:
- Disable the X Server Render extension. Copy
/etc/vnc/config
to/etc/vnc/config.custom
and add-extension RENDER
- Create a custom
xstartup
file. Copy/etc/vnc/xstartup
to/etc/vnc/xstartup.custom
and make the following changes:- Remove the line
[ -x /etc/vnc/xstartup.custom ] && exec /etc/vnc/xstartup.custom
- Add
"gnome-fallback"
to the list of valid sessions by replacingfor SESSION in "ubuntu-2d" "2d-gnome"; do
with
for SESSION in "ubuntu-2d" "2d-gnome" "gnome-fallback"; do
- Add to the top of the file:
unset XDG_RUNTIME_DIR
- Remove the line
I found it necessary to unset XDG_RUNTIME_DIR
because I could not figure out a way to guarantee the directory it points to actually exists. When the directory did not exist I experienced 100% CPU utilization bugs in indicator-datetime-service
and gnome-settings-daemon
.
Briefly, the XDG_RUNTIME_DIR
variable and directory that it points to are managed by a PAM module in libpam-xdg-support. When jsmith
logs in over SSH, the PAM module creates a directory /run/users/jsmith
and increments a session count stored in /run/users/.jsmith.lock
. When jsmith
later logs out, the session count is decremented. When the session count reaches zero the directory is deleted. Since RealVNC does not appear to use the PAM session machinery, there is no way to guarantee that the session count remains positive if only a VNC session is active.
I’ve had some issues with ParaView in this configuration. See the bug report I filed which does include a workaround.
To get Skype working, download and install the new packages from raring-proposed, and add a line
skype-binary=1
to/etc/xdg/sni-qt.conf
. See #863190.Hello Bradley,
unset XDG_RUNTIME_DIR does not seem to do the trick to me.
I added it after the #!/bin/sh line in the /etc/vnc/xstartup.custom file without luck. Any advice?
Thanks!
Gorka: I forgot to mention that you need to make
/etc/vnc/xstartup.custom
executable and you also need to install thegnome-session-fallback
package. I posted the full script I’ve been using as a Gist: https://gist.github.com/bfroehle/6015501Thanks for the help Brad,
Still no luck. I have gnome-session-fallback and etc/vnc/xstartup.custom executable. I am also using your xstartup.custom script.
This is in a 13.04 ubuntu server.
Some questionable quirks:
-I also need to have a xstartup file in ~/.vnc for the gnome-session-fallback to show up. I use the same /etc/vnc/xstartup.custom file.
-I uninstalled indicator-datetime-service but of course, that solution does not work with gnome-settings-daemon.
Any help would be greatly appreciated.
Cheers
Hmm, I’m out of ideas. Perhaps the RealVNC folks can help if you still have a support contract? Please post a solution if you find one.