<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">&lt;<a href="mailto:horsley1953@gmail.com" target="_blank">horsley1953@gmail.com</a>&gt;</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>
&gt; could someone copy-paste a working ~/.vnc/xstartup so I can have a gnome3<br>
&gt; session when I access my computer using VNC?<br>
&gt;<br>
&gt; The ~/.vnc/xstartup I used in F17 doesn&#39;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&#39;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 &gt; $HOME/.vnc/xstartup.log 2&gt;&amp;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 &amp;<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 &lt;3:3&gt; $ 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 ] &amp;&amp; exec /etc/vnc/xstartup</div><div>[ -r $HOME/.Xresources ] &amp;&amp; xrdb $HOME/.Xresources</div><div>xsetroot -solid grey</div><div>
vncconfig -iconic &amp;</div><div>xterm -geometry 80x24+10+10 -ls -title &quot;$VNCDESKTOP Desktop&quot; &amp;</div><div>twm &amp;</div><div>rsewill@localhost:~/.vnc &lt;3:4&gt; $ </div><div><br></div></div><div><div>rsewill@localhost:~/.vnc &lt;3:4&gt; $ ls</div>
<div>certs  passwd  xstartup</div><div>rsewill@localhost:~/.vnc &lt;3:5&gt; $ </div></div><div><br></div><div><div>rsewill@localhost:~ &lt;3:7&gt; $ 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:~ &lt;3:8&gt; $ </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>