Spring 2004
ENSC 895: SPECIAL TOPICS: THEORY, ANALYSIS, AND SIMULATION OF NONLINEAR CIRCUITS

REMOTE LOGIN

  • You can run ns-2 remotely without graphical interface. You need only to run: ssh payette.ensc.sfu.ca .

  • 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. We will advise you of other tools that we may find in the future.


    Linux Users:
    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.

    1. 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.
    2. Open a terminal window.
    3. 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.
    4. ssh to payette.ensc.sfu.ca.
    5. 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.
    6. Run OPNET command: opnet &.

    MS Windows users:
    Two steps installation:
  • Setup for SSH (choose one): SSH Secure Shell, PUTTY, TTSSH.
  • Setup for X-windows (choose one): Exceed (2-month evaluation copy, 60 Mbytes), X-Win32 (1-month evaluation copy, 7 Mbytes), and Cygwin/Xfree86 (free and harder to install).
    First option (suggested): Using SSH Secure Shell and Exceed:
    Contributed by Wan Zeng (wgzeng@cs.sfu.ca).
    1. SSH Windows shell client is free: http://www.ssh.com.
      Tunnel setup: Edit -> Settings -> Tunneling, click on ``Tunnel X11 connections.''
    2. Run Exceed.
    3. Run X applications from the SSH window, for example: xterm &, or opnet &

    Second option: Using PuTTY with Exceed:
    Contributed by Chris Demwell (cdemwell at cs.sfu.ca).

    Down-load putty.exe from:
    http://www.tartarus.org/~simon/putty-snapshots/x86/putty.exe .

    1. Run PuTTY:
    2. 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 .)
    3. Under "Protocol" click the "SSH" button.
    4. In the "Category" window (left side of the PuTTY "Configuration window")
      -> "Connection" -> "SSH" -> "Tunnels" (the last item on the list of options).
    5. The window on the right will change. Check the first item "Enable X11 forwarding".
    6. 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.
    7. Run Exceed
    8. Type "opnet&" in the PuTTy window.


    Third option: 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:

    1. SSH Windows shell client is free: http://www.ssh.com.
      Tunnel setup: Edit -> Settings -> Tunneling, click on ``Tunnel X11 connections.''
    2. 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:

    1. Cygwin is the Unix environment on Windows. It is free from http://sources.redhat.com/cygwin. Simply click the right button and start installing.
    2. To install Cygwin/Xfree86, run the Cygwin's installer (the setup file you use to install Cygwin) and select the "XFree86-base" package from the "XFree86" category.
    3. If installed proporly, you should see a directory \usr\X11R6\bin, where "\" is the Cygwin installation directory (default is C:\Cygwin).

    B. Run

    1. Run Xfree86. There are several ways to run Xfree86. One way is to run "startxwin.bat" in "\usr\X11R6\bin" from WINDOWS. The other way is, in CYGWIN, type "/usr/X11R6/bin/startxwin.sh".
    2. Then, use the SSH client application (such as SSH Secure Shell Client).
    3. Run opnet. (We presume that you have already setup environment file env_db9.1 as mentioned on the course Web site.)
    4. 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.)

    Fourth option: Using SSH and Exceed:
    Contributed by Inas Khalifa (ikhalifa@sfu.ca).

    Required Software

    1. Tera Term: a terminal emulator for MS-Windows that supports VT100 emulation, telnet connection, etc.
    2. TTSSH: the SSH extension of Tera Term, it will enable you to connect to ENSC hosts.
    3. Exceed: an X emulator, it allows you to view X application on the Windows platform.
    1. Tera Term

    Downloading

    1. Go to http://hp.vector.co.jp/authors/VA002416/teraterm.html
    2. Scroll down to "Tera Term Pro ver. 2.3 for Windows 95/NT"
    3. Click "Download (ttermp23.zip; 943,376 bytes)"
    4. When "File Download" dialog appears, select "save this file to disk", click ok.
    5. Select a temporary directory to save that file.

    Installation

    1. Double-click on ttemp23.zip to extract its files to the same temporary directory (You may want to check readme.txt).
    2. If you have an older version of TeraTerm, unistall it first.
    3. Double-click on setup.exe to install.
    4. Click "continue" in all the dialog boxes that appear during installation.
    5. The program will be added to your Start Menu. Note the directory where the program is installed, e.g., C:\Program Files\TTERMPRO
    6. 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.
    7. Delete the temporary directory you used for downloading, you do not need it any more.
    2. TTSSH
    1. Go to http://www.zip.com.au/~roca/ttssh.html
    2. Scroll down to "How to Obtain and Install TTSSH"
    3. Click "Download the TTSSH software package"
    4. You will be directed to another page, click "USA"
    5. When "File Download" dialog appears, select "save this file to disk", click OK. (about 300k)
    6. Save the file to the directory where you installed TeraTerm, e.g., C:\Program Files\TTERMPRO

    Installation

    1. Double-click on ttssh154.zip to extract its files to the same directory. This will create files libeay32.dll, ttxssh.dll and ttssh.exe.
    2. Make sure there is a copy of msvcrt.dll in your c:\Windows\system32 directory. The latest build of TTSSH requires this.
    3. Run ttssh.exe and the extension should be available, i.e. you should see a new "SSH" option in the "New Connection" dialog box.
    4. For your convenience, you may want to make a shortcut to ttssh.exe on your desktop.
    5. To be able to display remote X applications, from the Setup Menu, choose SSH forwarding.
    6. In the X Forwarding panel, check the box to the left of "Display Remote X applications on local X server".
    7. Select Save Setup from the Setup menu, so you do not have to do the above 2 steps every time.
    3. Running SSH and Exceed
    1. Run Exceed.
    2. Run ttssh.exe to connect to a remote host.
    3. Run X applications from the TTSSH window, for example: xterm & or opnet &.

    Last modified: Monday December 22 00:30:40 PST 2003.