LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-05-2008, 12:49 PM   #1
markseger
Member
 
Registered: Jul 2003
Posts: 244

Rep: Reputation: 26
Can't get a remote xterm to run


I know this has been asked/answered a lot, but I'm pretty sure I'm doing it right, though if I was it would work! This involved 2 linux boxes.

On the system running X, I issue the command "xhost +" and it tells me "access control is disabled, client can connect from any host"

I then log into another host and "export DISPLAY=firsthost:0.0" and run xclock or xterm. In both cases the system thinks for a little while and then tells me "unable to open display"

gotta be something silly but I just don't see what.
I've always done this exporting linux displays to my PC running an X server and it just works. The only thing I'm doing different here is the xhost command, and trying to export onto an X server running on linux.

-mark
 
Old 12-05-2008, 12:53 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by markseger View Post
I know this has been asked/answered a lot, but I'm pretty sure I'm doing it right, though if I was it would work! This involved 2 linux boxes.

On the system running X, I issue the command "xhost +" and it tells me "access control is disabled, client can connect from any host"

I then log into another host and "export DISPLAY=firsthost:0.0" and run xclock or xterm. In both cases the system thinks for a little while and then tells me "unable to open display"

gotta be something silly but I just don't see what.
I've always done this exporting linux displays to my PC running an X server and it just works. The only thing I'm doing different here is the xhost command, and trying to export onto an X server running on linux.

-mark
Well, it is something simple. Chances are, your Xserver on your local Linux box is running with the "-nolisten" option to X (more secure). You don't say what version/distro of Linux you're using, so it's hard to give you details...Google can probably point you to how to turn off that option, then things should work from there.
 
Old 12-05-2008, 01:01 PM   #3
markseger
Member
 
Registered: Jul 2003
Posts: 244

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by TB0ne View Post
Well, it is something simple. Chances are, your Xserver on your local Linux box is running with the "-nolisten" option to X (more secure). You don't say what version/distro of Linux you're using, so it's hard to give you details...Google can probably point you to how to turn off that option, then things should work from there.
Sorry about that... It's RHEL5.2 and yes, I see -nolisten on the command line. what's the best way to remove it?
-mark
 
Old 12-05-2008, 04:18 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by markseger View Post
Sorry about that... It's RHEL5.2 and yes, I see -nolisten on the command line. what's the best way to remove it?
-mark
I'm not very familiar with doing that under RHEL5, but check the /etc/X11/xinit/xserverrc file. Change the DisallowTCP from "false" to "true", and restart.
 
  


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
xterm -display remote:0.0 Can't open display - xterm from tru64 to debian 3.1 loopy69 Linux - Software 2 04-01-2008 06:54 PM
rsh xterm and running remote commands TomT_90GT Linux - Newbie 3 11-09-2007 11:45 PM
Xterm to Graphical Environment: run what? JMCraig Linux - Newbie 3 01-24-2005 03:12 PM
Real Noobie question. Remote XTERM access BigT Linux - Newbie 5 03-01-2004 02:27 AM
can't run X11 programs from xterm Sin-D Linux - General 4 12-18-2003 11:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:50 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