LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-03-2008, 04:22 AM   #1
kris.c
Member
 
Registered: May 2007
Posts: 30

Rep: Reputation: 15
Xterm issues


Hi,
I am trying to debug an MPI program by launching the job on two machines and tracing through the library on both sides. For this, I need to have xterm spawn two debug windows, one for my node and one more for the remote node. I am passwordless-ly ssh-ing into the other node by using the -X switch and this is where I am now,

Code:
   
 mpirun --prefix /usr/local -hostfile machines -np 2 xterm -e gdb peruse_ex1
xterm Xt error: Can't open display:
xterm:  DISPLAY is not set
However, on doing :
Code:
 mpirun --prefix /usr/local -hostfile machines -x DISPLAY -x PATH -np 2 xterm -e gdb peruse_ex1
I am able to spawn a debug window but it is being displayed on the remote node and not on my screen . I have set the DISPLAY variable on both the nodes to be 0.0. Please let me know what I can do to have the window displayed on my node.

Thanks
 
Old 01-03-2008, 09:02 PM   #2
mackdav
Member
 
Registered: Feb 2005
Distribution: RHEL, CentOS
Posts: 113

Rep: Reputation: 16
You can check this quickly:

Just ssh -X @remotesystem, then echo $DISPLAY. It should be something like localhost:10.0 If it isn't set, you can try ssh -Y user@remotesystem and echo $DISPLAY. If it works, then use -Y in your command

If it still isn't set, then there's the possibility that remotesystem is set up to deny X forwarding (look in /etc/ssh/sshd_config for X11Forwarding no (you'll need to be root to do that).

If there are no firewalls between localsystem and remotesystem, you can do this:

localsystem$ xhost + remotesystem

remotesystem$ export DISPLAY=remotesystem:0.0
remotesystem$ mpirun ...

...however the X data will not be tunneled if you do it that way.
 
  


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 - howto lauch an xterm into a specific directory jobano Linux - Software 11 01-30-2023 04:45 AM
Colours in Xterm, Xmms and mounting issues cheema Debian 13 01-12-2006 02:58 PM
how is black xterm background in IceWM when issue a xterm command? BRAHmS Linux - Software 1 02-14-2005 03:51 AM
A few issues with xterm shellcode Linux - General 2 02-01-2005 05:15 PM
Xterm Issues... enk0d Slackware 2 11-01-2003 12:53 PM

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

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