a sort of exam...
Lennart Sorensen
lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Mon Jan 9 16:34:02 UTC 2006
On Sun, Jan 08, 2006 at 04:07:56PM -0500, Zbigniew Koziol wrote:
> Right, I was given an opportunity to perform a test for a new possible
> job. My question is of the kind of young age students ask: please help
> me to solve this problem ;)
>
> Since however my life is largely at stake (yes) I do not hesitate to ask
> for help. I promisse: I will write that down that the answer was due to
> the help from TLUG :)
>
> OK, here the question is, with explanation (I cite everything exactly as
> I read):
>
> ==citation starts==
>
> Question: At the foundation of X server Clients how do you
> "PROGRAMMATICALLY" create and run multiple and individual X window
> instances?
>
> Explanation: What we nees is to create a multiple instance of X server
> simultanous on the same computer. Each instance should use a different
> Display. How create them PROGRAMMATICALLY and manage each session.
> Technically in gross steps, how would you create/implement the basis of
> a terminal server using X.
>
> ==citation ends==
>
> No, I do not know what "programmatically" means. But the answer must be
> made correct any way.
>
> Any ideas how to approach the problem? there is no time left...
/etc//X11/xdm/Xservers:
:0 local /usr/X11R6/bin/X vt7 -dpi 100 -nolisten tcp
:1 local /usr/X11R6/bin/X vt8 -dpi 100 -nolisten tcp
:2 local /usr/X11R6/bin/X vt9 -dpi 100 -nolisten tcp
:3 local /usr/X11R6/bin/X vt10 -dpi 100 -nolisten tcp
:4 local /usr/X11R6/bin/X vt11 -dpi 100 -nolisten tcp
:5 local /usr/X11R6/bin/X vt12 -dpi 100 -nolisten tcp
Now you will get a display on each of those VTs with a different display
number. You can login on each, or you could probably configure them to
auto login to a specific session (at least kdm can).
The question is also wrong, since it is 'individual X instances' not
'indivudual X window sessions'. An X window is the window you have for
an X application. The whole system is either X or The X Windowing
System.
And of course a terminal server would NOT be running multiple X servers
on it, it would just be a session manager. The X servers would be
running on the thin clients instead, in which case all you want is an x
display manger like gdm/kdm/xdm which allows remote connections, and an
X server on each client set to query the server for a session.
Len Sorensen
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list