<div>&gt;&gt;</div>
<div>On Fedora/RHEL clones I like to configure vnc thus:<br>[summer@potoroo ~]$ tail /etc/sysconfig/vncservers<br># Use &quot;-nohttpd&quot; to prevent web-based VNC clients connecting.<br><br># Use &quot;-localhost&quot; to prevent remote VNC clients connecting except when
<br># doing so through a secure tunnel. &nbsp;See the &quot;-via&quot; option in the<br># `man vncviewer&#39; manual page.<br><br>VNCSERVERS=&quot;66:root 3:summer&quot;<br>VNCSERVERARGS[3]=&quot;-geometry 1280x1024&quot;<br>VNCSERVERARGS[66]=&quot;-geometry 1280x1024&quot;
</div>
<div>&lt;&lt;</div>
<div>&nbsp;</div>
<div>Does the above VNCSERVERS declaration mean to limit the number of vncservers to be 66... can it be increased if yes, how much beyond?<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 1/5/08, <b class="gmail_sendername">John Summerfield</b> &lt;<a href="mailto:debian@herakles.homelinux.org">debian@herakles.homelinux.org</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Robert P. J. Day wrote:<br>&gt;&nbsp;&nbsp; yes, yes, it&#39;s really basic stuff but ...<br>&gt;<br>&gt; <a href="http://www.crashcourse.ca/wiki/index.php/Configuring_VNC">
http://www.crashcourse.ca/wiki/index.php/Configuring_VNC</a><br><br>Here are some things to play with once you have it up.<br>1.<br>&nbsp;&nbsp;killall twm<br>The window decorations vanish<br>2.<br>&nbsp;&nbsp;startkde<br>Play with kde for a while, then logout
<br>3.<br>gnome-session<br>play with that for a while, then logout<br>4.<br>&nbsp;&nbsp;kwin&amp;<br>&nbsp;&nbsp;kicker&amp;<br>5.<br>&nbsp;&nbsp;killall kwin<br>&nbsp;&nbsp;twm&amp;<br><br>Note that when you don&#39;t have an active window manager, focus follows
<br>the mouse cursor.<br><br>6.<br>&nbsp;&nbsp;vncserver -kill :1<br><br>On Fedora/RHEL clones I like to configure vnc thus:<br>[summer@potoroo ~]$ tail /etc/sysconfig/vncservers<br># Use &quot;-nohttpd&quot; to prevent web-based VNC clients connecting.
<br><br># Use &quot;-localhost&quot; to prevent remote VNC clients connecting except when<br># doing so through a secure tunnel.&nbsp;&nbsp;See the &quot;-via&quot; option in the<br># `man vncviewer&#39; manual page.<br><br>VNCSERVERS=&quot;66:root 3:summer&quot;
<br>VNCSERVERARGS[3]=&quot;-geometry 1280x1024&quot;<br>VNCSERVERARGS[66]=&quot;-geometry 1280x1024&quot;<br><br>[summer@potoroo ~]$<br><br>On Debian, I use this approach:<br>[summer@potoroo ~]$ tail /etc/sysconfig/vncservers
<br># Use &quot;-nohttpd&quot; to prevent web-based VNC clients connecting.<br><br># Use &quot;-localhost&quot; to prevent remote VNC clients connecting except when<br># doing so through a secure tunnel.&nbsp;&nbsp;See the &quot;-via&quot; option in the
<br># `man vncviewer&#39; manual page.<br><br>VNCSERVERS=&quot;66:root 3:summer&quot;<br>VNCSERVERARGS[3]=&quot;-geometry 1280x1024&quot;<br>VNCSERVERARGS[66]=&quot;-geometry 1280x1024&quot;<br><br>[summer@potoroo ~]$<br>
summer@mail:~$ cat /etc/init.d/vnc<br>#!/bin/bash<br># If no config, do nothing<br>#set -x<br>[ -f /etc/vncserver.conf ] || exit 0<br>function cfg()<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;sed&nbsp;&nbsp;&lt;/etc/vncserver.conf \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-e &#39;s=#.*$==g&#39; \
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| grep -v &#39;^$&#39;<br>}<br><br><br>case &quot;$1&quot; in<br>&nbsp;&nbsp;start)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cfg | while read user port options<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; do :<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo Starting session for ${user} on ${port}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eval passwdfile=~${user}/.vnc/passwd
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if [ ! -f&nbsp;&nbsp;${passwdfile} ] ; then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo Cannot start session for ${user}, no passwd file<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;continue<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fi<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; P=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [ &quot;${user}&quot; = &quot;root&quot; ] &amp;&amp;<br>P=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; su - ${user} -c &quot;PATH=${P} vncserver ${options} ${port}&quot;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; done<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;;<br>&nbsp;&nbsp;stop)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cfg | while read user port options<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; do :<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo Stopping session for ${user} on ${port}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eval passwdfile=~${user}/.vnc/passwd<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if [ ! -f&nbsp;&nbsp;${passwdfile} ] ; then
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo Cannot stop session for ${user}, no passwd file<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;continue<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fi<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; su - ${user} -c &quot;vncserver -kill ${port}&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; done<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;;<br>restart)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ${0} stop<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ${0} start<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;<br>&nbsp;&nbsp;*)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo ${0} &#39;[start|stop]&#39;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;;<br>esac<br><br>summer@mail:~$<br><br>which I organise to run in the appropriate runlevel(s).<br><br>
<br><br><br>--<br><br>Cheers<br>John<br><br>-- spambait<br><a href="mailto:1aaaaaaa@coco.merseine.nu">1aaaaaaa@coco.merseine.nu</a>&nbsp;&nbsp;<a href="mailto:Z1aaaaaaa@coco.merseine.nu">Z1aaaaaaa@coco.merseine.nu</a><br>-- Advice<br>
<a href="http://webfoot.com/advice/email.top.php">http://webfoot.com/advice/email.top.php</a><br><a href="http://www.catb.org/~esr/faqs/smart-questions.html">http://www.catb.org/~esr/faqs/smart-questions.html</a><br><a href="http://support.microsoft.com/kb/555375">
http://support.microsoft.com/kb/555375</a><br><br>You cannot reply off-list:-)<br><br>--<br>fedora-list mailing list<br><a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list">
https://www.redhat.com/mailman/listinfo/fedora-list</a><br></blockquote></div><br>