- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Xserver / Xclient
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2004 09:16 PM
тАО03-09-2004 09:16 PM
Xserver / Xclient
I am trying to connect to an HP-UX from my Linux system . I want to export the graphical output from the HP-UX server to the Linux system but when I try I always get the same problem.
In the linux I make:
[root@dumas root]# xhost +
access control disabled, clients can connect from any host
xhost: must be on local machine to enable or disable access control.
Dartanan:/root> echo $DISPLAY
15.15.15.1:0.
Dartanan:/root> xomni
Starting GUI...
Please wait, this may take some time...
Xlib: connection to "15.15.15.1:0.0" refused by server
Xlib: No protocol specified
Wind/U X-toolkit Error: wuDisplay: Can't open display
I have also tried to use the xauth but I get the same result. Which method does linux uses , xhost or xauth , or both at the same time?
Why xauth does not work ? Do you have any howto.....
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2004 09:28 PM
тАО03-09-2004 09:28 PM
Re: Xserver / Xclient
Linux can use both xauth and xhost
for xauth read the man: man xauth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2004 09:38 PM
тАО03-09-2004 09:38 PM
Re: Xserver / Xclient
xhost +
on your unix machine do the following
export DISPLAY=x.x.x.x:0.0
then try to run the x program..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2004 09:54 PM
тАО03-09-2004 09:54 PM
Re: Xserver / Xclient
thank you for the answer . I have already done what you say several times but I havn't got any result. I think there must be something else in the Linux which is blocking the connection. The HP-UX works correctly with other systems...
How can I connect to a HP-UX from a Linux via ssh???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2004 10:47 PM
тАО03-09-2004 10:47 PM
Re: Xserver / Xclient
Ask HP-UX related question on HP-UX forum.
Maybe you have a firewall implemented on Linux .
try to execute on linux -prior trying to connect with X
service iptables stop
This will stop the firewall service if it was running.
Please assign points if useful...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2004 02:57 AM
тАО03-10-2004 02:57 AM
Re: Xserver / Xclient
to make sure I understand you correctly, or maybe you can follow the steps I mention.
* You login as root in a graphical environment (KDE, Gnome) on your Linux system (dumas).
* Next you execute 'xhost +' command
* You open a terminal and remote login (using telnet?) to the HP-UX system (dartanan).
* You export DISPLAY=15.15.15.1.0:0
* You execute xclock (or whatever graphical program)
* Next you receive an error message.
I that so?
JP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2004 03:12 AM
тАО03-10-2004 03:12 AM
Re: Xserver / Xclient
It's on the HP-UX application CD's and most probably also on software.hp.com.
If you go along the ssh route,
modify the sshd_config file:
X11Forwarding yes
I'm worried about the output you showed us of your xhost + command. If I execute the command, I only get the line 'access control disabled, client can connect from any host'
I do not receive the line:
xhost: must be on local machine to enable or disable access control
I believe this is an error message. Are you sure you execute xhost on the local machine, the one with the X-server (your graphical display) running?
JP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2004 03:16 PM
тАО03-10-2004 03:16 PM
Re: Xserver / Xclient
this looks like a classical case of the Xserver vs. Xclient confusion.
The Xserver is the system you are sitting in front of. In my case this is currently a notebook running Linux. I also have a medium sized Alpha system under my desk. If I sent a window from there to my Linux system, the Alpha computer is acting as the Xclient.
So to allow access to the display you are sitting in front of: In a local terminal session type xhost +
On the remote system (the one providing your app) do a export DIPLAY=xxxxxxxx
Afterwards you should be fine.
Greetings, Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2004 06:21 PM
тАО03-10-2004 06:21 PM
Re: Xserver / Xclient
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2004 10:17 PM
тАО03-10-2004 10:17 PM
Re: Xserver / Xclient
the message xhost: must be on local machine to enable or disable access control.
indicates you execute xhost on the wrong system. Apparently it's not the system running the X-server.
But if you're sure you are right, I don't know how to solve your problem...
Success.
JP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2004 10:41 PM
тАО03-10-2004 10:41 PM
Re: Xserver / Xclient
Does anyone knows if there is something in the linux which to block this.. Any security configuration perhaps ????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2004 11:46 PM
тАО03-10-2004 11:46 PM
Re: Xserver / Xclient
I'm still not sure we understand each other.
(So don't be angry with me!)
1. Is dumas your Linux 'PC'? How do you login? Using CDE?
2. And dartanan your HP-UX system, where you run xomni?
JP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2004 12:40 AM
тАО03-11-2004 12:40 AM
Re: Xserver / Xclient
Linux , Dumas , - Xserver
Dartanan , HP-UX -Xclient
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2004 02:53 AM
тАО03-11-2004 02:53 AM
Re: Xserver / Xclient
xomni might be a bad client to start with, since it is rather fussy about having the right fonts, and colors. A very simple application would be the utility program xdpyinfo, which merely reports back some characteristics of the Xserver. Does this work, or does it generate the same error messages?
In addition, verify that your Linux box is not preventing access to port 6000 on which the Xserver is listening. There is also the possibility with Xfree86 of configuring the Xserver that it does not even listen to network requests, but rather only to socket requests. This is done with the option -nolisten tcp.
Depending on which display manager you have, gdm, xdm, or kdm, you could have this configured in a couple of different places. For gdm, check /etc/X11/gdm/gdm.conf, for xdm/kdm check /etc/X11/xdm/Xservers and look for the lines where the Xserver is started. If you have -nolisten tcp, the Xserver will not listen to incoming tcp connections.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2004 03:28 AM
тАО03-11-2004 03:28 AM
Re: Xserver / Xclient
access control disabled, clients can connect from any host
xhost: must be on local machine to enable or disable access control.
What ever you think you are doing correctly, the second line of this message "must be on local" indicates that you are on the wrong system OR you are not the original console owner.. ie: you logged in a 'user' su'd to root and tried to give the xhost command...
Xhost _must_ be given on the local host... not the remote host that your are running the app on and trying to display back to the local host..
Test this out by logging in at the console and opening up a terminal and immediately giving the xhost command... It should not have the second line of the messages from xhost..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2004 05:29 AM
тАО03-11-2004 05:29 AM
Re: Xserver / Xclient
In your original question, you have posted "echo $DISPLAY" and you appear to be on the HP-UX box when you do this. And it is giving you 15.15.15.1:0
could you post the output of "ifconfig -a" from your linux box.
THe only other two ways that seems to make sense of this to me are that a) you made a typo in your original post or b) You are getting a CDE login on you linux box already from HPUX, logging into that and then doing your xhost +.
To remove any doubt, get your linux box so that it doesn't start X. Create a file in your home directory called ".xinitrc" and in that file enter "xhost +" and the command to start your favourite window manager. Then start X from the command line with "xinit", don't use "startx" or any of the X wrappers. Then, open an xterm and type "echo $DISPLAY". Then, telnet to your hpux box and do your "export DISPLAY=" etc etc.
Please let us know how you get on:)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2004 02:56 PM
тАО03-11-2004 02:56 PM
Re: Xserver / Xclient
just tried that here.
Loging in to my local system, then opening a
terminal on another system, exported DISPLAY back to my current local system and doing the xhost + on the remote terminal. In this case I do get the error message you quote. So it still looks like you are confusing your various systems to me...
Greetings, Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2004 06:36 PM
тАО03-11-2004 06:36 PM
Re: Xserver / Xclient
[root@dumas root]# netstat -an | grep -i 6000
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN
tcp 0 0 139.16.240.111:32780 139.16.240.109:6000 ESTABLISHED
tcp 0 0 139.16.240.111:32785 139.16.240.109:6000 ESTABLISHED
[root@dumas root]#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2004 11:46 PM
тАО03-11-2004 11:46 PM
Re: Xserver / Xclient
- runlevel 3
- startx
- in terminal window locally, xhost +
- telnet hp-ux
- export DISPLAY=linux:0
- xdpyinfo
If this works, then it really is your display manager config. If it doesn't, it hints at a firewall issue.
Again netstat -an | grep 6000 should show someone listening on port 6000 on the Linux machine. If you don't, the Xserver has some default config that is probably incorporating -nolisten tcp as a default value somehow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2004 04:26 AM
тАО03-16-2004 04:26 AM
Re: Xserver / Xclient
I have seen that message when I tried to run "xhost" as a user other then the owner of the xserver. Example:
On your linux box you log in at the GDM greeting screen as root. This brings you to a gnome/kde desktop. The xserver for this desktop session is owned by root. If you open a terminal on this gnome/kde desktop as someone other then root and try to use xhost, you will get this--
xhost: must be on local machine to enable or disable access control.
That message is the crux of fixing the problem. Possibly GDM/XDM is not allowing users to set access control.
As someone mentioned earlier, I would start troubleshooting by removing variables...in this case GDM or XDM. So, go to run level 3 by running as root:
init 3
Then start an xserver with windows manager by running:
startx
Now try doing "xhost +" and see if the xclient on your hpux box can display.
Regards,
Michael Denney
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-24-2004 04:27 AM
тАО03-24-2004 04:27 AM
Re: Xserver / Xclient
first of all I would like to know the procedure to assign point to all those who has helped me with this issue . The web is not very clear .. Apart from that I just have a doubt , I must make my servers open the 6000 port for the Xserver application but I can not find how to open them...
Can anyone help me , I have the same doubt in HP-UX and in Linux ....
Thakns
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-24-2004 04:55 AM
тАО03-24-2004 04:55 AM
Re: Xserver / Xclient
for Linux:
check whether iptables / ipchains are running. I'm not sure, but must be something like ps -ef | grep iptables or ipchaing.
Or check the current run level and the start scripts in /etc/rcN.d.
Stop them with:
service iptables stop
service ipchains stop
This will stop the Linux firewall entirely.
Of course, after testing you may want to start them again.
JP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-24-2004 08:09 AM
тАО03-24-2004 08:09 AM
Re: Xserver / Xclient
If this is the case, change the following line in /etc/X11/gdm/gdm.conf:
#DisallowTCP=true
to:
DisallowTCP=false
-p
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2004 05:14 AM
тАО05-05-2004 05:14 AM
Re: Xserver / Xclient
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2004 03:50 AM
тАО05-06-2004 03:50 AM
Re: Xserver / Xclient
My first piece of advice would be to start your own thread. You could copy the url from this one to the body of your opening question to show people that you have found this and that you have a reference point if you wish.
No offense intended, but it is considered somewhat rude to try to tack your issue onto someone else's thread. They should not be burdened with having to assign points to responses to your situation.
Speaking of points, Javier, please assign this entry a zero (0) since it doesn't address your issue.
Thanks!