problem with xhost

 
SOLVED
Go to solution
James_173
Advisor

problem with xhost

Hi,

I have a new installed RH9 system.Now I am having problems starting X client.I login as root.I set the DISPLAY variable by issue
#export DISPLAY=localhost:0.0
then I issue
#xhost
but I got the error message,
xhost: unable to open display "localhost:0.0"

Any ideas,thanks

James
18 REPLIES 18
Stuart Browne
Honored Contributor

Re: problem with xhost

Log in as root into a GUI or into a CLI?

If it's into the GUI, then you might want to check your firewall rules, making sure that the localhost can talk to it's self un hindered.

iptables -nvL

And why are you setting DISPLAY yourself? If you log in as root, start a terminal, your DISPLAY should already be set.
One long-haired git at your service...
Avinoam
Frequent Advisor

Re: problem with xhost

hello

try running the xhost with the following switches :

1. xhost + this one will enable all connection from all clients

2. xhost +192.168.1.111 this will enable xhost session from 192.168.1.111 only.

there is a better way ( much more secure ) to do this by enabling MIT MAGIC COOKIE. you can read about ir here : http://csrc.nist.gov/publications/nistpubs/800-7/node90.html

good luck

Avinoam
Sababa
Avinoam
Frequent Advisor

Re: problem with xhost

hello

try running the xhost with the following switches :

1. xhost + this one will enable all connection from all clients

2. xhost +192.168.1.111 this will enable xhost session from 192.168.1.111 only.

there is a better way ( much more secure ) to do this by enabling MIT MAGIC COOKIE. you can read about ir here : http://csrc.nist.gov/publications/nistpubs/800-7/node90.html

good luck

Avinoam
Sababa
Avinoam
Frequent Advisor

Re: problem with xhost

hello

try running the xhost with the following switches :

1. xhost + this one will enable all connection from all clients

2. xhost +192.168.1.111 this will enable xhost session from 192.168.1.111 only.

there is a better way ( much more secure ) to do this by enabling MIT MAGIC COOKIE. you can read about ir here : http://csrc.nist.gov/publications/nistpubs/800-7/node90.html

good luck

Avinoam
Sababa
Avinoam
Frequent Advisor

Re: problem with xhost

hello

try running the xhost with the following switches :

1. xhost + this one will enable all connection from all clients

2. xhost +192.168.1.111 this will enable xhost session from 192.168.1.111 only.

there is a better way ( much more secure ) to do this by enabling MIT MAGIC COOKIE. you can read about ir here : http://csrc.nist.gov/publications/nistpubs/800-7/node90.html

good luck

Avinoam
Sababa
Avinoam
Frequent Advisor

Re: problem with xhost

hello

you should add switches to the xhost command :

1. xhost + this one will enable session from all clients

2. xhost +192.168.1.100 this will enable session only from the client 192.168.1.100.

there is much better and secure way to do this by exchangeing the MIT MAGIC COOKIE , you can read about it here : http://csrc.nist.gov/publications/nistpubs/800-7/node90.html

good luck

Avinoam
Sababa
Avinoam
Frequent Advisor

Re: problem with xhost

hello

you should add switches to the xhost command :

1. xhost + this one will enable session from all clients

2. xhost +192.168.1.100 this will enable session only from the client 192.168.1.100.

there is much better and secure way to do this by exchangeing the MIT MAGIC COOKIE , you can read about it here : http://csrc.nist.gov/publications/nistpubs/800-7/node90.html

good luck

Avinoam
Sababa
Avinoam
Frequent Advisor

Re: problem with xhost

hello

you should add switches to the xhost command :

1. xhost + this one will enable session from all clients

2. xhost +192.168.1.100 this will enable session only from the client 192.168.1.100.

there is much better and secure way to do this by exchangeing the MIT MAGIC COOKIE , you can read about it here : http://csrc.nist.gov/publications/nistpubs/800-7/node90.html

good luck

Avinoam
Sababa
Avinoam
Frequent Advisor

Re: problem with xhost

hello

you should add switches to the xhost command :

1. xhost + this one will enable session from all clients

2. xhost +192.168.1.100 this will enable session only from the client 192.168.1.100.

there is much better and secure way to do this by exchangeing the MIT MAGIC COOKIE , you can read about it here : http://csrc.nist.gov/publications/nistpubs/800-7/node90.html

good luck

Avinoam
Sababa