Denis Croombs wrote: > Hi > > I am trying to get more than 16 VNC sessions working on a Redhat server with > VNC v4.0, I have over 50 running from /etc/inittab with no problems, except > that when I try and connect to the 17 connected port (any port number but > always the 17th) I get a connection refused error.
That number of vnc-sessions is way to many for the default configuration. Better setup as on http://www.sourcecodecorner.com/articles/vnc/linux.asp. This setup gives a new session for every user and removes stale sessions. Unfortunatly, these sessions are not re-entrant: only one connection and once disconnected, the session is killed. These are inetd-driven sessions at ":CG": "C" is 5 for 8 bits, 6 for 16 bits, 7 for 24 bits and 8 for 32 bits. "G" is 0 for 640x480, 1 for 800x600, 2 for 1024x768, 3 for 1280x1024 and 4 for 1600x1200. I most times use ":52", 8 bits colors and 1024x768. Other users can also connect to :52, they get their own session. Its inetd that handles this. If you definitly need static and re-entrant sessions, see the setup as in my attachement. If this vnc-server is killed, it is automatically restarted. Most systems I setup have the above combined: a session on :1 for the root (800x600x8, using root's vnc-password), a session on :4 without a vnc-password (1024x768x24) for re-entrant use for normal users. IN all of the above settings, the user has to login using their own unix account. Except for :1, there is not vnc-password. > > I think this is to do with the number of Xsessions that are allowed to be > run on the server ? If you expect port problems, keep in mind that each vnc-session uses 2 or 3 ports: one for the X11 communicaiton (6000 and upwards) one for vnc-communication (5900 and upwards) and optionally one for the http-server (5800 and upwards). Hence for display :17 you need to check 6017, 5917 and optionally 5817 for being free. Then there are other resources that might run-out, like sockets and such. Can you get :18, :19 and so-on working? If not, you might run out of other resources like memory and such. A 1280x1024 vnc-session with 32-bits colors uses 5 MBytes memory for the display only. Then you have a window manager and other applications that must be added to that... You might be out of memory... For your information, the http://www.sourcecodecorner.com/articles/vnc/linux.asp setup only uses resources for every running session. Success CBee Return-Path: <[EMAIL PROTECTED]> Received: from cmdeliver.vip.spray.net (lmin05.st1.spray.net [212.78.202.105]) by cmdeliver07.st1.spray.net (Postfix) with ESMTP id E9888BCDA for <[EMAIL PROTECTED]>; Wed, 16 Jun 2004 08:24:14 +0000 (GMT) Received: from realvnc.com (realvnc.com [213.239.45.162]) by lmin05.st1.spray.net (Postfix) with ESMTP id 8F321382F for <[EMAIL PROTECTED]>; Wed, 16 Jun 2004 08:24:14 +0000 (GMT) Received: from realvnc.com (localhost.localdomain [127.0.0.1]) by realvnc.com (8.11.6/8.11.6) with ESMTP id i5G8MeE23756; Wed, 16 Jun 2004 09:22:40 +0100 Received: from lmfilto01.st1.spray.net (lmfilto01.st1.spray.net [212.78.202.65]) by realvnc.com (8.11.6/8.11.6) with ESMTP id i5G8LeE23593; Wed, 16 Jun 2004 09:21:40 +0100 Received: from localhost (localhost [127.0.0.1]) by lmfilto01.st1.spray.net (Postfix) with ESMTP id 5BB15114CD1; Wed, 16 Jun 2004 08:21:35 +0000 (GMT) Received: from lmsmtp01.st1.spray.net ([212.78.202.111]) by localhost (lmfilto01.st1.spray.net [212.78.202.32]) (amavisd-new, port 10024) with ESMTP id 07809-08; Wed, 16 Jun 2004 08:21:34 +0000 (GMT) Received: from lycos.nl (unknown [193.172.135.148]) by lmsmtp01.st1.spray.net (Postfix) with ESMTP id 73B5DF18; Wed, 16 Jun 2004 08:21:34 +0000 (GMT) Message-ID: <[EMAIL PROTECTED]> From: =?ISO-8859-1?Q?Corn=E9_Beerse?= <[EMAIL PROTECTED]> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 To: James Weatherall <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Subject: Re: VNC 4.0 released References: <[EMAIL PROTECTED]> In-Reply-To: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at spray.net Sender: [EMAIL PROTECTED] Errors-To: [EMAIL PROTECTED] X-BeenThere: [EMAIL PROTECTED] X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: <mailto:[EMAIL PROTECTED]> List-Post: <mailto:[EMAIL PROTECTED]> List-Subscribe: <http://www.realvnc.com/mailman/listinfo/vnc-list>, <mailto:[EMAIL PROTECTED]> List-Id: The VNC Discussion List <vnc-list.realvnc.com> List-Unsubscribe: <http://www.realvnc.com/mailman/listinfo/vnc-list>, <mailto:[EMAIL PROTECTED]> List-Archive: <http://www.realvnc.com/pipermail/vnc-list/> X-Original-Date: Wed, 16 Jun 2004 10:21:33 +0200 Date: Wed, 16 Jun 2004 10:21:33 +0200 X-Lycos-AV: OK James Weatherall wrote: > RealVNC is pleased to announce the release of VNC 4.0. VNC 4.0 is a > complete redesign of the VNC system, but maintains backwards compatibility > with the old VNC 3 releases. Verry nice, I wil start using it yesterday, however, since I have no time, I will start tomorrow ;-) > > New Features & Improvements vs VNC 3.3.7: > - Handling of dynamic changes to desktop size > - Local cursor rendering by VNC Viewer > - Simpler and more flexible configuration system > - Pointer rate-limiting and choice of colour levels for slow links > > New Unix Features & Improvements vs VNC 3.3.7: > - Support for remoting the native X11 display (display ":0") > - Improved X selections (cut & paste) management > - Enhanced VNC Viewer > > Binaries and source can be downloaded from the RealVNC website at > http://www.realvnc.com/download.html Nice to see HP-UX among there! > > Documentation and notes on this release can be found at > http://www.realvnc.com/documentation.html Verry nice, specially the documentation on the unix-variants. Good to see the "-inetd" usage in the Xvnc documentation. I like to add the next text to this Xvnc document: At the top of the "Options" subsection, there is a brief word about Xvnc being a normal X-server. I like to add there that it can be used as such, specially on head-less servers, or as virtual-xterminals. Maybe the next configuration can be re-written in the style of the Xvnc manual and added there. For our headless servers, I just replaced calls to the origional Xserver (XFree86 on linux) to calls to Xvnc. In '/etc/X11/xdm/Xservers': # disable the X session on the console #:0 local /usr/X11R6/bin/X # vncsession :0, using vncpassword from root. :0 ROOTVNC local /usr/bin/Xvnc -geometry 800x600 -depth 8 -rfbwait 120000 -rfbauth /root/.vnc/passwd :0 # vncsession :4, no vncpassword. :4 FREEVNC local /usr/bin/Xvnc -geometry 800x600 -depth 8 -rfbwait 120000 -alwaysshared -dontdisconnect :4 For gdm based machines, I updated '/etc/X11/gdm/gdm.conf' in a similar way: - add server definitions (at the end, the double inserted lines are continuation of the previous line!!) [server-ROOTVNC] # vncsession, using vncpassword from root name=ROOTVNC server flexible=false command=/usr/bin/Xvnc -geometry 800x600 -depth 8 -rfbwait 120000 -rfbauth /root/.vnc/passwd [server-FREEVNC] # vncsession, using no vncpassword name=FREEVNC server flexible=false command=/usr/bin/Xvnc -geometry 800x600 -depth 8 -rfbwait 120000 -alwaysshared -dontdisconnect - in the [servers] section, add and/or replace lines that indicate an Xserver: # disable the X session on the console #0=Standard # use roots vncsession on :0 0=ROOTVNC # use the free-access vncsession on :4. 4=FREEVNC _______________________________________________ VNC-List mailing list [EMAIL PROTECTED] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list _______________________________________________ VNC-List mailing list [EMAIL PROTECTED] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
