LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 12-31-2008, 12:22 PM   #1
triley
Member
 
Registered: Oct 2003
Posts: 74

Rep: Reputation: 15
xhost +


Using Xwin32 installed on a windows system, I am trying to connect to a remote system running RHEL4, Update 7. When I try to connect I am getting the following error from Xwin32...

/usr/bin/xterm Xt error: Can't open display:

On the target linux system, I logged in remotely as root and ran:

export DISPLAY=:0.0
xhost +

When I run xhost + I get the following error:

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

xhost: unable to open display ":0.0"

Any thoughts on why I can't run xhost +

Thanks!
 
Old 12-31-2008, 01:10 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946
Well, first, xhost needs to be run as the user actually owning the running x-server. All you're doing is trying to change the root user's x permissions, for a server that doesn't exist.

Second, running xhost+ is very insecure. You're allowing everyone access to the x-server. At the very least limit it to only the hosts and users you actually want to give access to it. Even better is to set up an xauthority "handshake" for the systems involved.

Third, the default configuration for the x-server in many distros is set to ignore tcp requests (it's started with "--nolisten-tcp"). You may need to restart the x-server without it.

Finally, check to see if there isn't some kind of firewall blocking the requests.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
xhost sachinh Linux - General 1 05-31-2007 05:10 PM
xhost + mlykam Linux - Software 3 03-17-2005 09:50 AM
xhost + and 9.1 Mufasa Suse/Novell 1 11-14-2004 11:19 AM
xhost + RoaCh Of DisCor Slackware 3 10-02-2004 04:31 PM
xhost invasian Linux - Newbie 3 08-08-2004 08:01 PM


All times are GMT -5. The time now is 07:23 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration