Download XLiveCD and burn the ISO image onto a recordable CD.
Assuming the CD is inserted into your CD drive, wait to see if the CD auto-loads. If it does not, then go to My Computer or Windows Explorer and double click on the CD rom drive. Then double-click on "X.bat". This should open a command window and run some Cygwin stuff (might take a while).
Once the previous step completes, you should see a Xterm window. If you don't see one, then look for a "New Xterm" shortcut on your Desktop and double-click on it.
Note: At this stage, the Windows XP firewall might prompt you
about blocking/unblocking Xwin.exe. You can select "Unblock"
if you are comfortable with doing that - see the
Tweak Windows XP SP2 firewall section below
for more information.
To login to AVIDD without default X-forwarding, do:
Desktop> ssh -x -l hpctrnXX avidd-b.iu.edu(Replace XX with your training account #; Once you finish this workshop replace the whole login account name with your own AVIDD account)
Note:
If you do not expect to use an graphical applications like TotalView or Intel Trace Analyzer, then you can go back to where you came from...most probably the Initial Setup: Login to AVIDD webpage or the Tweaking Security Settings webpage.
WAIT! If you are working on one of the STC labs within the IUB/IUPUI campuses, then you will need to contact the system administrators (stcsite [at] indiana.edu) to accomplish this step. Till you get that done, you might not want to proceed with the rest of this webpage!
If you are running Windows XP, Service Pack 2 (XP-SP2), then you will need to tweak your firewall a bit.
Open the Windows Firewall control panel applet. (Try doing Start -> Settings -> Control Panel OR Start -> Control Paneland then double-clicking on Windows Firewall).
Switch to the Exceptions tab.
Then click on Add Port; Type in some name (for example, avidd-x-traffic) and then enter 6000 on the Port Number text box.
After that, click on Change Scope; Select Custom List and then enter the following:
149.165.228.0/255.255.255.0,149.165.229.0/255.255.255.0Click OK on the 3 open dialog boxes while making sure the new exception is enabled i.e. the new option you created is checked. Now, you should be all-set!
Note: As mentioned earlier, you can take an easier but less secure route,
if you wish, by allowing all X-traffic
i.e. by unblocking XWin.exe completely with no IP address restrictions. When you start
XLiveCD, Windows XP might prompt you about blocking/unblocking Xwin.exe. You can
select "Unblock" if you are comfortable with doing that.
Append Xhost list on your workstation
Assuming, you have an X-term window open, add AVIDD's compute nodes to the list of hosts allowed by your xhost. To accomplish this, you may want to use the modify-xhost-for-avidd-x-traffic.pl script which is listed below for your convenience.
modify-xhost-for-avidd-x-traffic.pl; Run the script by doing:
Desktop> perl modify-xhost-for-avidd-x-traffic.pl b add
149.165.228.1 being added to access control list 149.165.228.2 being added to access control list . . .
i instead
of b as the first parameter. I.e. do
"modify-xhost-for-avidd-x-traffic.pl i add".
remove as the second parameter to
clear out the xhost list back to its original state. I.e. do
"modify-xhost-for-avidd-x-traffic.pl b remove".
Find your workstation's IP address
On your workstation, go to an Xterm window (that you got through XLiveCD/Cygwin) and find your IP:
Desktop> ipconfig.exe | grep "IP Address" | cut -f2 -d: xxx.xxx.xxx.xxx
Set DISPLAY environment variable on compute node
If you want to open TotalView or Intel Trace Analyzer to analyze parallel code, then you can do that only on compute nodes gotten through PBS. If you have not gotten compute nodes through PBS, then from the head node, do:
[agopu@bh2 agopu]$ qsub -I -l nodes=2:ppn=2 -l walltime=30:00
Once on the compute node, set DISPLAY variable to your workstation's IP_address:0.0
[agopu@bc22 agopu]$ export DISPLAY=xxx.xxx.xxx.xxx:0.0Then try running Totalview or Intel Trace Analyzer as explained in the later sections of this tutorial. Hopefully you'll see an X interface to the application you tried to open. If it throws up an error then let us know.
For example
On my laptop running Windows XP SP-2 :
Desktop> perl modify-xhost-for-avidd-x-traffic.pl b add 149.165.228.1 being added to access control list 149.165.228.2 being added to access control list . . . 149.165.228.96 being added to access control list Desktop> ipconfig.exe | grep "IP Address" | cut -f2 -d: 156.56.18.241
Then on AVIDD's compute node:
[agopu@bc81 agopu]$ export DISPLAY=156.56.18.241:0.0
Note: If you are using wireless or a VPN (for example, on your laptop) then you'll need to find that interface's IP address. Let us know if you have trouble doing this.
| Previous | Up: Table of Contents | Next |
|---|