LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 12:52 PM   #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, 02:13 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,103

Rep: Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719
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 02:14 PM. Reason: Sorry..said Centos, not ubuntu..
 
Old 07-23-2008, 02: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, 06: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, 04:04 PM   #5
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,103

Rep: Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719
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.
 
  


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


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


All times are GMT -5. The time now is 05:24 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration