In order to run OPNET tools remotely, you will need to use
tools that will enable you to open X-windows.
There are several tools
that will enable you to do so:
- PuTTY (free code) and Exceed (you need to purchase it).
- ssh, ttssh, and Cygwin/XFree86 (all free code).
- ssh (free code) and Exceed (you need to purchase it).
We will advise you of other tools that we may find in the future.
Using PuTTY with Exceed:
Contributed by Chris Demwell (cdemwell@cs.sfu.ca).
Down-load putty.exe from:
http://www.tartarus.org/~simon/putty-snapshots/x86/putty.exe
.
-
Run PuTTY:
-
In the PuTTY configuration window type host name in the
"Host Name (or IP address)" field:
(Example: 199.60.1.63 or bast.cs.sfu.ca .)
-
Under "Protocol" click the "SSH" button.
-
In the "Category" window (left side of the PuTTY "Configuration window")
-> "Connection" -> "SSH" -> "Tunnels" (the last item on the list of options).
-
The window on the right will change. Check
the first item "Enable X11 forwarding".
-
Click "Open" (on the bottom).
The advanced user may save these parameters so that they need not
be entered each time. This is left as an exercise for the students.
For detailed documentation see:
http://www.chiark.greenend.org.uk/~sgtatham/putty/docs.
-
Run Exceed
-
Type "opnet&" in the PuTTy window.
Using SSH and TTSSH with Cygwin/Xfree86:
Contributed by Johnson Chen (hchenj@sfu.ca).
To run X windows application remotely, you should have a local X server
to provide the X window functionality. At the same time, since
ENSC/CS machines can only be accessed via SSH, you must have an SSH
client with the ability of tunneling unencrypted X window client programs
(such as OPNET).
For details, please see:
http://www.cae.tntech.edu/help/unix/x11/putty_xwin32_tunnelling.
Note, the remote operating systems in the following instructions
are Windows (98/2000/NT).
For other operating systems, please consult the above URL.
A. Installation
SSH clients:
-
SSH Windows shell client is free: http://www.ssh.com.
Tunnel setup: Edit -> Settings -> Tunneling, click on
``Tunnel X11 connections.''
-
TTSSH is free: http://www.zip.com.au/~roca/ttssh.html.
You must first install Teraterm Pro, then place TTSSH in the same directory,
and run TTSSH instead of Teraterm).
Tunnel setup: cancel the first connection screen,
then Setup -> SSH Forwarding, click ``X forwarding''.
(It may be a bit annoying that you will have to do this setup
every time. Use SSH Shell Client instead).
X server Cygwin/XFree86:
-
Cygwin is the Unix environment on Windows. It is free
from http://sources.redhat.com/cygwin. Simply click the right button and start installing.
-
Cygwin/Xfree86 is free from
ftp://mirrors.rcn.net/pub/sourceware/cygwin/xfree/xc-4-binaries/4.1.0/.
Down-load all and put into one of the directory in Cygwin.
-
The installation of Xfree86 on Cygwin is easy:
- extract an executable file extract.exe
from extract.exe.gz.
- start Cygwin.
- in the Cygwin console terminal, go to the Xfree86 directory,
and run ./Xinstall.sh.
B. Run
-
Extract a folder of Cygwin/Xfree86 called startup-scripts.
-
Each time first execute a startxwin.bat file to start the X windows.
-
Then use the SSH client application (such as OPNET).
(We presume that you have already setup environment file env_db8.0
as mentioned in the course Web site.)
- Run opnet.
- The OPNET console will appear
in the local X windows screen, just the same as if you were using
the SUN machines in the labs.
(Be patient, the speed depends on
the ISP and the utilization of the lab machines.)
Using SSH and Exceed:
Contributed by Inas Khalifa (ikhalifa@sfu.ca).
Required Software
Tera Term: a
terminal emulator for MS-Windows that supports VT100 emulation,
telnet connection, etc.
TTSSH: the SSH
extension of Tera Term, it will enable you to connect to ENSC hosts.
Exceed: an X emulator, it allows you to view
X application on the Windows platform.
1. Tera Term
Downloading
Go to
http://hp.vector.co.jp/authors/VA002416/teraterm.html
Scroll down to "Tera Term Pro
ver. 2.3 for Windows 95/NT"
Click "Download
(ttermp23.zip; 943,376 bytes)"
When "File Download"
dialog appears, select "save this file to disk", click ok.
Select a temporary directory to save that file.
Installation
Double-click on ttemp23.zip
to extract its files to the same temporary directory (You may want
to check readme.txt).
If you have an older version of
TeraTerm, unistall it first.
Double-click on setup.exe to
install.
Click "continue" in all
the dialog boxes that appear during installation.
The program will be added to your
Start Menu. Note the directory where the program is installed, e.g.
C:\Program Files\TTERMPRO
To make sure it has been installed
correctly, run the program from the Start Menu and telnet to any of
the hosts that still allow telnet, e.g. fraser.sfu.ca
Delete the temporary directory you used for downloading, you
don't need it any more.
2. TTSSH
Go to
http://www.zip.com.au/~roca/ttssh.html
Scroll down to "How to Obtain
and Install TTSSH"
Click "Download the TTSSH
software package"
You will be directed to another
page, click "USA"
When "File Download"
dialog appears, select "save this file to disk", click ok.
(about 300k)
Save the file to the directory where you installed TeraTerm,
e.g. C:\Program Files\TTERMPRO
Installation
Double-click on ttssh154.zip
to extract its files to the same directory. This will create files
libeay32.dll, ttxssh.dll and ttssh.exe.
Make sure there is a copy of
msvcrt.dll in your c:\Windows\system32
directory. The latest build of TTSSH requires this.
Run ttssh.exe and the
extension should be available, i.e. you should see a new "SSH"
option in the "New Connection" dialog box.
For your convenience, you may want
to make a shortcut to ttssh.exe on your desktop.
To be able to display remote X
applications, from the Setup Menu, choose SSH forwarding.
In the X Forwarding panel, check
the box to the left of "Display Remote X applications on local
X server"
Select Save Setup from the Setup menu, so you don't have to
do the above 2 steps every time.
3. Running SSH and Exceed
Run Exceed.
Run ttssh.exe to
connect to a remote host.
Run X applications from the TTSSH window, for example: xterm
&, or opnet &
Instruction for running OPNET from a Linux machine running X Windows:
Contributed by Savio Lau (savio@sfu.ca).
If a machine has KDE or Gnome desktop, then it has X-windows.
-
If the local machine has a firewall, expose TCP ports 6000-6009. Those
ports are needed for the Remote X-link. This is not necessary
from most UNIX stations in SFU.
-
Open a terminal window.
-
Run the following command (not necessary from SFU ENSC machines):
"xhost payette.ensc.sfu.ca" - this assumes that payette is the OPNET
server. This indicates that incoming X connections from
payette.ensc.sfu.ca is trusted.
-
ssh to payette.ensc.sfu.ca.
-
Export the X display connection to the local machine by entering
command:
"setenv DISPLAY 111.111.111.111:0.0" where 111.111.111.111 is the local
machine's IP address.
-
Run OPNET command: opnet &.
Last modified: Tuesday January 14 15:01:52 PST 2003.