Forward Display from compute node

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Forward Display from compute node
# 1  
Old 01-07-2016
Forward Display from compute node

Hello,

sorry if this is an easy thing, but I tried to make it run the whole morning, but it doesn't work so far...

I am logged in on a visualization node of a high performance cluster. On this node I can run several gui-based software for the postprocessing of my cfd-data.

As the visualization node is always very busy, I would like to do the compute nodes the work.
My idea was to submit a bash script where I tell the compute nodes to start the specific software and to forward the display to my local display.

I read out the adress of my display with
Code:
echo $DISPLAY

and tried to start the software on the compute node with the following:

Code:
export DISPLAY="Adress of my display"
"Command for software"

As this did not work, I also tried this:

Code:
ssh -X myusername@server; set $DISPLAY="Adress of my display", "Command for software"

In both cases no X-window opened on my screen.

As I am a noob in unix I would be happy about any advice.

Thanks very much!

Last edited by Shlaeae; 01-07-2016 at 08:45 AM..
# 2  
Old 01-07-2016
Quote:
Originally Posted by Shlaeae
sorry if this is an easy thing, but I tried to make it run the whole morning, but it doesn't work so far...
No problem. In fact there are no silly questions, just silly answers. Welcome on board.

Quote:
Originally Posted by Shlaeae
As I am a noob in unix I would be happy about any advice.
OK, let us start with some background inforamtion to make you understand better what you are doing.

X-Windows is a completely networked system from the start. Unlike Windows where you have a local system onto which networking capabilities were added later, X-Windows is built for networked computers from the start.

It consists of three different parts: X-clients are regular programs which use the services of an X-server (see below) to put output onto a "display". X-server is a piece of software which manages some physical hardware (monitors, graphics cards, ...) to create such "displays" from it and offer its services over the network. There is a special protocol, X-protocol, for X-clients to communicate with X-servers over the network.

It is at first usually a bit confusing (but, see above, makes perfect sense) that X-clients run usually on the server side of things while X-servers run on the client. Picture an X-Server as a graphics card driver with a network interface.

Now, there may be serveral X-servers on a network and there may be several systems with running X-clients which use the various X-servers to display their output on the DISPLAY.

Which X-server to use for that is controlled via the environment variable DISPLAY. The DISPLAY-variable consists fo the IP-address of the system the X-server runs on (or a DNS-name leading to such an IP-address) and a number, because every X-server may manage several displays and every display might consist of several screens:

Code:
DISPLAY=1.2.3.4:0.0
        ======= = =
           |    | |
           |    | V
           |    | screen number within the display
           |    V
           |  Display number to use
           V
        IP-address the X-server runs on

So much for background, let us get to your real problem:

Code:
ssh -X

This is correct, because -X enables the X-protocol to be used over the communication channel opened by ssh.

set $DISPLAY="Adress of my display", "Command for software"

This is close, but still wrong. First, to set the DISPLAY variable and make it known throughout all processes started in there it must be "exported", second, there is a syntax error in your statement. Here is the corrected version:

Code:
export DISPLAY=<"addr":0.0> ; <your xclient to start> &

If this produces an error like "Unable to open display" you either have set the DISPLAY variable incorrectly or your X-client (to be precise: the system your X-client runs on) is not allowed to use the X-server you specified. To allow this there is a tool xhost in UNIX/Linux environments, but if you have an X-server running on a Windows system (like Opentext Exceed, Xming and various other products) there is probably some configuration item. You need to find out this, but you can probably search for "access control" or similar in the documentation to find that.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Compute value from more than three consecutive rows

Hello all, I am working on a file like below: site Date time value1 value2 0023 2014-01-01 00:00 32.0 23.7 0023 2014-01-01 01:00 38.0 29.9 0023 2014-01-01 02:00 85.0 26.6 0023 2014-01-01 03:00 34.0 25.3 0023 2014-01-01 04:00 37.0 23.8 0023 2014-01-01 05:00 80.0 20.3 0023 2014-01-01 06:00... (16 Replies)
Discussion started by: kathy wang
16 Replies

2. HP-UX

Mount FIle systems from node-1 onto node-2

Hi, We have HP UX service guard cluster on OS 11.23. Recently 40+ LUNs presented to both nodes by SAN team but I was asked to mount them on only one node. I created required VGs/LVs, created VxFS and mounted all of them and they are working fine. Now client requested those FS on 2nd node as... (4 Replies)
Discussion started by: prvnrk
4 Replies

3. Homework & Coursework Questions

Accessing one UNIX node from another node of the same server

Hi Experts, I am in need of running a script from one node say node 1 via node 2. My scheduling tool dont have access to node2 , so i need to invoke the list file from node1 but the script needs to run from node2. because the server to which i am hitting, is having access only for the node... (5 Replies)
Discussion started by: arun1377
5 Replies

4. Shell Programming and Scripting

Compute in milisecond by use of mktime

Hi, I want to calculate diff b/w these starttime and endtime with use of mktime. I need response time in milisecond. I am using mktime to get these times. last three digits are in milisecond Starttime 2013-04-03 08:54:19,989 End time 2013-04-03 08:54:39,389 (9 Replies)
Discussion started by: random_thoughts
9 Replies

5. Ubuntu

Iptables forward traffic to forward chain!!!

Hi, I am new to linux stuff. I want to use linux iptables to configure rule so that all my incoming traffic with protocol "tcp" is forwarded to the "FORWARD CHAIN". The traffic i am dealing with has destination addresss of my machine but i want to block it from coming to input chain and somehow... (0 Replies)
Discussion started by: arsipk
0 Replies

6. Solaris

SVM metaset on 2 node Solaris cluster storage replicated to non-clustered Solaris node

Hi, Is it possible to have a Solaris cluster of 2 nodes at SITE-A using SVM and creating metaset using say 2 LUNs (on SAN). Then replicating these 2 LUNs to remote site SITE-B via storage based replication and then using these LUNs by importing them as a metaset on a server at SITE-B which is... (0 Replies)
Discussion started by: dn2011
0 Replies

7. Web Development

How to compute previous and next buttons?

I have a project to migrate my club's membership database from Access to web based using MySQL/PHP, but I have a problem I can't get my head around and would appreciate some help... Background... I want to be able to display each member's data on screen and add a Previous and Next button to move... (2 Replies)
Discussion started by: JerryHone
2 Replies

8. Shell Programming and Scripting

Compute difference between 2 arrays perl

Hi, I have 2 arrays. I have to compute symmetric difference! @arr=qw(19205134 18630215 18453487 18416242 18338715 18227590 17698645); @arr1=qw(18227590 18053561 17698645 16966777); #The code which i used is this! @union = @isect = @diff = (); %union = %isect = (); %count =... (3 Replies)
Discussion started by: vanitham
3 Replies

9. Shell Programming and Scripting

to compute diskspace

Guys, have any idea for the script like this? also to compute w/ decimal. thanks a=10 b=20 c=30 d=40 if a < b then ( a -b)*1024 = free space b + (c -d) = total space if a > b then (b / d)*1024 = cpu (3 Replies)
Discussion started by: kenshinhimura
3 Replies

10. UNIX for Advanced & Expert Users

CPU Usage at another Compute Node?

Hi, I am trying to get the cpu usage of a job/process. The machine that has these jobs is a cluster with 1 master node and 10 compute nodes. Now, the complexity is that not all jobs are on the master node. So, in order to get the cpu usage of a job at another node, I have to ssh into it and... (0 Replies)
Discussion started by: davidfrank
0 Replies
Login or Register to Ask a Question