[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: who is responsible to keep the list of used $DISPLAYs at system level



On Thu, Mar 01, 2007 at 01:09:16PM -0500, Yaroslav Halchenko wrote:
> Pardon my ignorance on the subject: flow of X connections etc
> 
> The problem is -- the user logs in into a remote system via ssh with X
> forwarding and gets assigned DISPLAY=:13.0. The problem is that he
> doesn't get authority over :13 since :13 is occupied by another user
> running VNC :13 (which seems to be also not fully functional). So I am
> wondering what in the system keeps track and informs on available
> displays to be used?
> 
> clearly there is a process occupying 6013 port (for :13)
> Xvnc4     11990       cat    0u  IPv4 107557584       TCP *:6013 (LISTEN)
> 
> so it must be that there is some list which got screwed up and provides
> errorness numbers
> 
> P.S. Please CC me -- I am not on the list
> 
For systems with multiple users using VNC, I have seen schemes where you
get assigned display number that is your uid + some fixed offset.  Then
you can always get the same display number and you only ever have to
forward the same port.  That also lets you as the admin keep the lower
numbers free for ssh with X forwarding.

Regards,

-Roberto

-- 
Roberto C. Sanchez
http://people.connexer.com/~roberto
http://www.connexer.com

Attachment: signature.asc
Description: Digital signature


Reply to: