<div dir="ltr"><div style><br></div><div class="gmail_extra"><div class="gmail_quote">On Wed, Jan 30, 2013 at 11:42 AM, Tom Horsley <span dir="ltr"><<a href="mailto:horsley1953@gmail.com" target="_blank">horsley1953@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">On Wed, 30 Jan 2013 18:03:49 +0100<br>
Fernando Gozalo wrote:<br>
<br>
> could someone copy-paste a working ~/.vnc/xstartup so I can have a gnome3<br>
> session when I access my computer using VNC?<br>
><br>
> The ~/.vnc/xstartup I used in F17 doesn't work in F18.<br>
<br>
It has been years since the last time I got gnome<br>
to work in a VNC session, it seems way too dependent<br>
on 3D stuff to function reasonably. I do have a<br>
working script, but I use FVWM and don't try<br>
to run a full blown gnome 3. I think the main<br>
trick to getting apps to work is to get a dbus<br>
session started. This provides me a minimal session<br>
where I can manually run other programs as I need them:<br>
<br>
#!/bin/bash<br>
exec > $HOME/.vnc/xstartup.log 2>&1<br>
. $HOME/.bash_profile<br>
unset SSH_AGENT_PID<br>
unset SSH_CLIENT<br>
unset SSH_AUTH_SOCK<br>
unset DBUS_SESSION_BUS_ADDRESS<br>
unset SSH_CONNECTION<br>
eval `dbus-launch --exit-with-session --sh-syntax`<br>
fvwm &<br>
/usr/bin/xterm<br>
<span class=""><font color="#888888">--<br>
users mailing list<br>
<a href="mailto:users@lists.fedoraproject.org">users@lists.fedoraproject.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/users" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/users</a><br>
Guidelines: <a href="http://fedoraproject.org/wiki/Mailing_list_guidelines" target="_blank">http://fedoraproject.org/wiki/Mailing_list_guidelines</a><br>
Have a question? Ask away: <a href="http://ask.fedoraproject.org" target="_blank">http://ask.fedoraproject.org</a><br>
</font></span></blockquote></div><br></div><div class="gmail_extra">I doubt if what I have will help. It is from F14 or F15 I think.<div><br></div><div>I start x11vnc as a user, not as root. I think you start x11vnc as root.</div>
<div><br></div><div><div>sewill@localhost:~/.vnc <3:3> $ more xstartup </div><div>#!/bin/sh</div><div><br></div><div># Uncomment the following two lines for normal desktop:</div><div># unset SESSION_MANAGER</div><div>
# exec /etc/X11/xinit/xinitrc</div><div><br></div><div>[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup</div><div>[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources</div><div>xsetroot -solid grey</div><div>
vncconfig -iconic &</div><div>xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &</div><div>twm &</div><div>rsewill@localhost:~/.vnc <3:4> $ </div><div><br></div></div><div><div>rsewill@localhost:~/.vnc <3:4> $ ls</div>
<div>certs passwd xstartup</div><div>rsewill@localhost:~/.vnc <3:5> $ </div></div><div><br></div><div><div>rsewill@localhost:~ <3:7> $ more .x11vncrc </div><div>quiet</div><div>bg</div><div>usepw</div><div>allow 192.168.1.</div>
<div># ssl</div><div>forever</div><div>avahi</div><div># gui tray</div><div>rsewill@localhost:~ <3:8> $ </div><div><br></div></div><div>I also needed to enable vncserver in the KDE settings tab, firewalld</div><div>
<br></div><div><br></div></div></div>