On Wed, Jan 30, 2013 at 11:42 AM, Tom Horsley <horsley1953@gmail.com> wrote:
On Wed, 30 Jan 2013 18:03:49 +0100
Fernando Gozalo wrote:

> could someone copy-paste a working ~/.vnc/xstartup so I can have a gnome3
> session when I access my computer using VNC?
>
> The ~/.vnc/xstartup I used in F17 doesn't work in F18.

It has been years since the last time I got gnome
to work in a VNC session, it seems way too dependent
on 3D stuff to function reasonably. I do have a
working script, but I use FVWM and don't try
to run a full blown gnome 3. I think the main
trick to getting apps to work is to get a dbus
session started. This provides me a minimal session
where I can manually run other programs as I need them:

#!/bin/bash
exec > $HOME/.vnc/xstartup.log 2>&1
. $HOME/.bash_profile
unset SSH_AGENT_PID
unset SSH_CLIENT
unset SSH_AUTH_SOCK
unset DBUS_SESSION_BUS_ADDRESS
unset SSH_CONNECTION
eval `dbus-launch --exit-with-session --sh-syntax`
fvwm &
/usr/bin/xterm
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

I doubt if what I have will help.  It is from F14 or F15 I think.

I start x11vnc as a user, not as root.  I think you start x11vnc as root.

sewill@localhost:~/.vnc <3:3> $ more xstartup 
#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
rsewill@localhost:~/.vnc <3:4> $ 

rsewill@localhost:~/.vnc <3:4> $ ls
certs  passwd  xstartup
rsewill@localhost:~/.vnc <3:5> $ 

rsewill@localhost:~ <3:7> $ more .x11vncrc 
quiet
bg
usepw
allow 192.168.1.
# ssl
forever
avahi
# gui tray
rsewill@localhost:~ <3:8> $ 

I also needed to enable vncserver in the KDE settings tab, firewalld