LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-22-2008, 08:52 PM   #1
kamkos
LQ Newbie
 
Registered: Jan 2004
Posts: 16

Rep: Reputation: 0
Xvnc - multi-sessions Ubuntu


Hey,

I am trying to run Xvnc in multi-user environment. Everything is working fine except i cannot make more than 2 connections to Xvnc at the same time.

my Xvnc file started with xinetd:

service vnc2
{
type = UNLISTED
disable = no
socket_type = stream
protocol = tcp
wait = yes
user = root
server = /usr/bin/Xvnc
server_args = -inetd :1 -query localhost -geometry 1024x768 -depth 16 -once -fp /usr/share/fonts/X11/misc -DisconnectClients=0 -NeverShared passwordFile=/root/.vncpasswd -extension XFIXES
port = 5903
}
service vnc1
{
type = UNLISTED
disable = no
socket_type = stream
protocol = tcp
wait = yes
user = root
server = /usr/bin/Xvnc
server_args = -inetd :2 -query localhost -geometry 1280x1024 -depth 16 -once -fp /usr/share/fonts/X11/misc -DisconnectClients=0 -NeverShared passwordFile=/root/.vncpasswd -extension XFIXES
port = 5902
}
service vnc3
{
type = UNLISTED
disable = no
socket_type = stream
protocol = tcp
wait = yes
user = root
server = /usr/bin/Xvnc
server_args = -inetd :3 -query localhost -geometry 1280x1024 -depth 16 -once -fp /usr/share/fonts/X11/misc -DisconnectClients=0 -NeverShared passwordFile=/root/.vncpasswd -extension XFIXES
port = 5904
}

I have also added the following lines to /etc/services

vnc1 5902/tcp
vnc2 5903/tcp
vnc3 5904/tcp

The deal is that I can make two connections to the server but not three at the same time. For example, if vnc1 and vnc2 are on then vnc3 cannot be made with the given error:

read: Connection reset by peer (10054)

Any help will be appreciated.

kamkos
 
Old 08-22-2008, 09:08 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Hmmm, not really sure about this one, but does vnc3 if you aren't connected to either of the others... also are you using ssh tunnels or anything else?
 
Old 08-22-2008, 09:19 PM   #3
kamkos
LQ Newbie
 
Registered: Jan 2004
Posts: 16

Original Poster
Rep: Reputation: 0
I am not using any tunnels.

When I am connected to vnc1 and vnc2 then vnc3 does not work. To make it work i need to kill either vnc1 or vnc2 instance. Therefore, if vnc1 and vnc3 work then vnc2 will not. It seems like Xvnc limits the number of instances that can be run...

I tried to run these instances with different user names but the problem persists.

It is very strange...

ps. I am running Ubuntu 8.04 server edition with GNOME as GUI.
 
Old 08-26-2008, 10:29 AM   #4
kamkos
LQ Newbie
 
Registered: Jan 2004
Posts: 16

Original Poster
Rep: Reputation: 0
Does anybody know any solutions?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Ubuntu Open Week: Sessions You May Want to Read LXer Syndicated Linux News 0 05-04-2008 04:30 AM
Gutsy - Ubuntu and Multi Monitors seecoolguy Linux - Hardware 6 11-29-2007 10:30 PM
multi head with separate sessions? machs_fuel Linux - Desktop 1 10-15-2007 06:28 PM
Ubuntu to boot multi-user, but not x sohmc Ubuntu 3 05-17-2007 03:10 PM
CD-RW won't do multi sessions AlanH Linux - Hardware 0 03-11-2003 05:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration