LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-16-2007, 12:31 PM   #1
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
Question Cannot display X apps from a remote UNIX


Hi.

I've been having this problem for a while. Hopefully some of you experts can shed some light on it.

I have CentOS 4.4 running on my local machine at work. Now on occasions I'd like to telnet into one of the corporate UNIX machines (i.e. HP-UX, Solaris and AIX) and run X applications there. On those remote machines, I have the DISPLAY variable correctly exported to point to "my_hostname:0.0". Yet I always get this error message:

Code:
<app_name>: Can't open display: my_hostname:0.0
I have both my firewall and SE Linux disabled, so I don't think they are the issues. I also run "xhost +" beforehand, but that does not seem to solve the problem.

Is there any local config settings that I need to change so that this will work?

Any help would be appreciated.

TIA,
Dai
 
Old 03-16-2007, 12:43 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Could there be other firewalls or ISP's intervening? X traffic is ordinarily sent on port 6000 for server :0. Have you tried the (better) option of using SSH with an X tunnel? On some setups, X runs with the -nolisten tcp option. SSH tunneling gets around this.

--- rod.
 
Old 03-16-2007, 03:42 PM   #3
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by theNbomr
Could there be other firewalls or ISP's intervening? X traffic is ordinarily sent on port 6000 for server :0. Have you tried the (better) option of using SSH with an X tunnel? On some setups, X runs with the -nolisten tcp option. SSH tunneling gets around this.
Hi Rod.

Thanks for the suggestion. As it turned out, it was an issue with the login manager (kdm, in my case). By default it does not allow any incoming TCP connection. Letting kdm allow it should solve the problem. The only remaining issue is, I have to figure out how to enable that with kdm. With gdm, I can set DisallowTCP to false, which probably gets rid of the "-nolisten tcp" option you mentioned above. I temporarily switched to use gdm for now. I will go back to kdm once I figure out how to enable that option there.

I agree that "ssh -X" would be a better alternative. Unfortunately, most of our UNIX hosts do not have ssh running.

[EDIT] Okay, I figured that out... In kdmrc, the kdm config file, there's a line that says:
Code:
ServerArgsLocal=-nolisten tcp
All I had to do was remove that line and restart X.

Again, thanks for your help.

Dai

Last edited by daihard; 03-16-2007 at 04:12 PM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Run remote X apps on remote Xserver trollman Linux - Desktop 5 10-08-2006 09:01 PM
LXer: Porting Enterprise Apps from UNIX to Linux LXer Syndicated Linux News 0 10-03-2006 09:33 AM
LXer: Assess the Mess: Porting Apps from Unix to Linux LXer Syndicated Linux News 0 07-13-2006 03:54 PM
Can't figure out DISPLAY and GUI apps from remote console. bkeating Linux - Newbie 1 04-29-2004 02:18 PM
Mac Os X 10.3 and Running Unix/Linux apps yaniv1818 Linux - Software 4 02-01-2004 01:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration