Hello, Kush,

It is not clear in your mail what you want to do and what the exact
problem is.

xhost is used to give another machine on the network access to the X
server on your machine. For example, if you are logged into machine A,
with X running, from where you need to run an X-application program in
machine B and see the display in A, you need to do "xhost +B" in an xterm
so that A allows B access to its own X server.  Now if you telnet to B
from A and run your program, the graphic output will appear in A while the
program runs in B. Note that this is normally considered a security risk,
so when the program in B terminates do "xhost -B" to deny further access.

If you need to run multiple instances of X in the same machine, you can
start X in one console with the normal command "startx". This will start
an X server in console Alt-F7, with the server ID as 0. Now you can swith
to another console (Ctrl-Alt-F2), log in and type "startx -- :1" (note the
spaces). This will start a second X server in console Alt-F8, with the
server ID as 1. Both the servers are running in the same machine. In fact
you can also start the second X server from within X itself. 

How to switch from one to the other is a problem I leave to you as an
exercise (:-).

Kartik.

On Tue, 3 Aug 1999, Kush Desai wrote:

> when i use xhost i get this message
> xhost:  unable to open display ""
> any ideas about this??????
> coz i wanted to see if i could have multiple session to the x-server and
> when i type start -- :1.0
> i get the message that the client is not allowed to connect to server....so
> the xhost
> thanks
> kush
> 

Reply via email to