<div>>></div>
<div>On Fedora/RHEL clones I like to configure vnc thus:<br>[summer@potoroo ~]$ tail /etc/sysconfig/vncservers<br># Use "-nohttpd" to prevent web-based VNC clients connecting.<br><br># Use "-localhost" to prevent remote VNC clients connecting except when
<br># doing so through a secure tunnel. See the "-via" option in the<br># `man vncviewer' manual page.<br><br>VNCSERVERS="66:root 3:summer"<br>VNCSERVERARGS[3]="-geometry 1280x1024"<br>VNCSERVERARGS[66]="-geometry 1280x1024"
</div>
<div><<</div>
<div> </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> </div>
<div><span class="gmail_quote">On 1/5/08, <b class="gmail_sendername">John Summerfield</b> <<a href="mailto:debian@herakles.homelinux.org">debian@herakles.homelinux.org</a>> 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>> yes, yes, it's really basic stuff but ...<br>><br>> <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> killall twm<br>The window decorations vanish<br>2.<br> 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> kwin&<br> kicker&<br>5.<br> killall kwin<br> twm&<br><br>Note that when you don't have an active window manager, focus follows
<br>the mouse cursor.<br><br>6.<br> vncserver -kill :1<br><br>On Fedora/RHEL clones I like to configure vnc thus:<br>[summer@potoroo ~]$ tail /etc/sysconfig/vncservers<br># Use "-nohttpd" to prevent web-based VNC clients connecting.
<br><br># Use "-localhost" to prevent remote VNC clients connecting except when<br># doing so through a secure tunnel. See the "-via" option in the<br># `man vncviewer' manual page.<br><br>VNCSERVERS="66:root 3:summer"
<br>VNCSERVERARGS[3]="-geometry 1280x1024"<br>VNCSERVERARGS[66]="-geometry 1280x1024"<br><br>[summer@potoroo ~]$<br><br>On Debian, I use this approach:<br>[summer@potoroo ~]$ tail /etc/sysconfig/vncservers
<br># Use "-nohttpd" to prevent web-based VNC clients connecting.<br><br># Use "-localhost" to prevent remote VNC clients connecting except when<br># doing so through a secure tunnel. See the "-via" option in the
<br># `man vncviewer' manual page.<br><br>VNCSERVERS="66:root 3:summer"<br>VNCSERVERARGS[3]="-geometry 1280x1024"<br>VNCSERVERARGS[66]="-geometry 1280x1024"<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> sed </etc/vncserver.conf \<br> -e 's=#.*$==g' \
<br> | grep -v '^$'<br>}<br><br><br>case "$1" in<br> start)<br> cfg | while read user port options<br> do :<br> echo Starting session for ${user} on ${port}<br> eval passwdfile=~${user}/.vnc/passwd
<br> if [ ! -f ${passwdfile} ] ; then<br> echo Cannot start session for ${user}, no passwd file<br> continue<br> fi<br> P=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
<br> [ "${user}" = "root" ] &&<br>P=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11<br> su - ${user} -c "PATH=${P} vncserver ${options} ${port}"
<br> done<br> ;;<br> stop)<br> cfg | while read user port options<br> do :<br> echo Stopping session for ${user} on ${port}<br> eval passwdfile=~${user}/.vnc/passwd<br> if [ ! -f ${passwdfile} ] ; then
<br> echo Cannot stop session for ${user}, no passwd file<br> continue<br> fi<br> su - ${user} -c "vncserver -kill ${port}"<br> done<br> ;;<br>restart)
<br> ${0} stop<br> ${0} start<br> ;;<br> *)<br> echo ${0} '[start|stop]'<br> ;;<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> <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>