LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 07-23-2008, 11:52 AM   #1
markjuggles
Member
 
Registered: Nov 2003
Location: Chicago western suburbs
Distribution: Linux Mint
Posts: 75

Rep: Reputation: 15
Remote X Server Can't Open Display


Hi,

I seem to have a configuration issue that is preventing me from displaying an X application using an X server on a different machine.

The application machine is an embedded Linux board based on the AVR32.

I would like to run an X application like this:

# export DISPLAY=10.1.60.59:0
xeyes
Error: Can't open display: 10.1.60.59:0
# xlogo
Error: Can't open display: 10.1.60.59:0

The X server is reachable:
# ping 10.1.60.59
PING 10.1.60.59 (10.1.60.59): 56 data bytes
64 bytes from 10.1.60.59: seq=0 ttl=127 time=2.702 ms
64 bytes from 10.1.60.59: seq=1 ttl=127 time=1.835 ms

The server lets me display from a Ubuntu box on the same network using the same DISPLAY setting. The network configuration is the same:

Application Board:
# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 04:25:FEE:AD:09
inet addr:10.1.30.218 Bcast:10.1.31.255 Mask:255.255.254.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

Ubuntu Box:
$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:B00E:9F:6C
inet addr:10.1.30.219 Bcast:10.1.31.255 Mask:255.255.254.0


What am I missing here?

Thank you,

Mark
 
Old 07-23-2008, 01:13 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by markjuggles View Post
Hi,

I seem to have a configuration issue that is preventing me from displaying an X application using an X server on a different machine.

I would like to run an X application like this:

# export DISPLAY=10.1.60.59:0
xeyes
Error: Can't open display: 10.1.60.59:0
# xlogo
Error: Can't open display: 10.1.60.59:0
On your xserver, you have to allow incoming connections. Do a "ps -ef | grep listen", and see if it returns your Xserver daemon. If it returns a line with "-nolisten" in it (the default for lots of distros), you'll have to change your X configuration to remove the -nolisten option. I've never done it on ubuntu, so I can't be of much help there, but I'm sure there are lots of docs on the net.

After you get that going (and don't just log out...you have to either reboot or do a CTRL-ALT-BACKSPACE to restart your X server), you have to allow the connections to take place. As root, you can either do "xhost +" (unsafe, allows ANYONE to start remote windows on your machine), or "xhost <ip address of remote machine>" (allows just that machine to fire up an X session.

Last edited by TB0ne; 07-23-2008 at 01:14 PM. Reason: Sorry..said Centos, not ubuntu..
 
1 members found this post helpful.
Old 07-23-2008, 01:59 PM   #3
markjuggles
Member
 
Registered: Nov 2003
Location: Chicago western suburbs
Distribution: Linux Mint
Posts: 75

Original Poster
Rep: Reputation: 15
Good thought.

The X Server is a windows box running Xming. Permissions were set to allow any host to write to the X server. This was tested successfully from a Red Hat box inside my intranet from a couple of states away.

Also, the XO.hosts file was updated to to include all three Linux machines with no change in behavior. Ubuntu and Red Hat can run xeyes but the embedded board adjacent to the Ubuntu cannot.
 
Old 04-11-2014, 05:21 AM   #4
Nadia_
LQ Newbie
 
Registered: Apr 2014
Posts: 1

Rep: Reputation: Disabled
Talking solved

I tried every solution you presented here with no success. however, I tested it at home with ssh Secure shell and it worked. So, instead of using putty I used ssh Secure shell program, enabled X11 and it worked. With putty I can't manage to make it work.
 
Old 04-15-2014, 03:04 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by Nadia_ View Post
I tried every solution you presented here with no success. however, I tested it at home with ssh Secure shell and it worked. So, instead of using putty I used ssh Secure shell program, enabled X11 and it worked. With putty I can't manage to make it work.
Right...that's because putty is ONLY an SSH terminal program, with no X11 support at all.
 
Old 07-28-2017, 02:41 PM   #6
paz9
LQ Newbie
 
Registered: Jan 2009
Location: Philadelphia, PA
Distribution: Red Hat
Posts: 10

Rep: Reputation: 0
Wink Redhat Gnome the Xorg server runs as nolisten by default

We use the old Motif Window Manager on all of our systems b/c our app requires it. But I have Gnome on my desktop since I do not run the application there. Not being able to connect any other machine to my X server (Xorg executable) I investigated as per TBOne suggestion. Indeed, Redhat Gnome seems to run Xorg in "-nolisten tcp" mode by default.
Thanks TBOne.

Last edited by paz9; 07-28-2017 at 02:43 PM.
 
Old 07-28-2017, 04:36 PM   #7
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
With putty on windows there is a checkbox in the SSH section of configuration settings to enable X forwarding.
 
  


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 On
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
I am getting: Gtk-WARNING **: cannot open display : for remote X Jykke Linux - Security 3 05-17-2007 06:48 AM
Can not open Remote Graphical Display on Linux WS ppanyam Linux - Software 3 01-06-2006 02:16 PM
Can't open GUI of programs in remote machines by telnet and setting DISPLAY..... bioinfo Linux - Networking 2 10-02-2004 08:26 AM
matlab on remote linux server... using ssh .. x display shyamsg Linux - Networking 1 05-01-2004 04:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:14 PM.

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