LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-01-2012, 07:14 PM   #1
locus84
LQ Newbie
 
Registered: Apr 2011
Posts: 9

Rep: Reputation: 0
trouble forwarding X to remote server


I am having trouble redirecting X to remote servers.

I have an NX session running on host1 at port 1007.

I run "xhost + host2" on host1 and then ssh into host2.

I run "export DISPLAY=host1:1007.0" on host2 and try launching an xterm, but here's what I get:

xterm Xt error: Can't open display: host1:1007.0

If I run "ssh -X host2" then X forwarding works, but I need to know what the -X option does because I am trying to get qsh command (for Oracle's N1 Grid) to work which doesn't have the -X option.

Any ideas?
 
Old 05-01-2012, 07:44 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by locus84 View Post
I am having trouble redirecting X to remote servers.

I have an NX session running on host1 at port 1007.

I run "xhost + host2" on host1 and then ssh into host2.

I run "export DISPLAY=host1:1007.0" on host2 and try launching an xterm, but here's what I get:

xterm Xt error: Can't open display: host1:1007.0

If I run "ssh -X host2" then X forwarding works, but I need to know what the -X option does because I am trying to get qsh command (for Oracle's N1 Grid) to work which doesn't have the -X option.

Any ideas?

Yah. The export DISPLAY=host1:1007.0 doesn't do what you think it does.

It sets a display number, not a network port. How to make X apps connect to a
server on a different port I don't know, never felt the urge.



Cheers,
Tink
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
remote desktop with X forwarding robertkraus Linux - Desktop 10 03-02-2010 11:34 AM
Remote Input Forwarding shnomin Linux - Newbie 1 07-10-2009 12:20 AM
12.0 NFS Install: Trouble mounting remote server rm_dash_rf_star Slackware - Installation 11 01-21-2008 01:55 AM
LDAP trouble: login on server OK, remote fails nielchiano Linux - Networking 2 04-29-2004 06:47 AM
ssh remote forwarding Hubas Linux - Networking 1 12-26-2003 11:06 AM


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