X Server

From MediaWiki
Revision as of 09:50, 25 October 2007 by Rwh (talk | contribs)
Jump to navigationJump to search

Set Remote X Server Display

This section shows one how to set the "X Display" to a Remote X Server prior to starting up your web browser (i.e. firefox) for running an X Application launched by the "NST WUI". Case 1: Connect to a probe's "NST WUI" and run an X Application on a specific X Server. The script below is an example on how to do this.

#! /bin/bash
#
PROBE_IP_ADDR="172.31.1.190";
REMOTE_IP_ADDR="172.31.1.150";
DISPLAY=":8.0";
#
/usr/bin/xhost +"${PROBE_IP_ADDR}";
#
/usr/bin/firefox https://${PROBE_IP_ADDR}?xdisp=${REMOTE_IP_ADDR}${DISPLAY}

One needs to run the "xhost" command to allowed the "NST Probe" to make connections to the "Remote X Server" to display the "X Application". One can see that the "xdisp" variable needs to be set to the "Remote X Server" and "Display" setting.