Bootcamp 2018     Agenda     Registration     About

Instructions to Connect to a Remote Linux Server and Open a Graphical Program


Starting with the first bootcamp session it will be necessary for each participant to connect to Adroit and run remote commands. In later sessions it will be necessary to run graphical programs. This page details the steps required to install necessary software and test the configuration. Please make sure to do this before the bootcamp. To request an account on Adroit, fill out the request form.

MacOSX

  1. Install XQuartz, the official X server software for Mac
  2. Run Applications > Utilities > XQuartz.app
  3. Right click on the XQuartz icon in the dock and select Applications > Terminal. This should bring up a new xterm terminal window.
  4. In this xterm window, ssh to a linux server using the -Y argument (secure X11 forwarding). For example, to log into adroit you would do:
    ssh -Y <NetID>@adroit.princeton.edu
    

    Note that you will need use your normal NetID and password, plus DUO. If you receive a message like ssh_exchange_identification: Connection closed by remote host, you are likely trying to connect from off-campus and will need to take additional steps.

  5. Once you are logged in, you can test the xserver is working correctly by opening an xterm window by typing the xterm command. A new window should open with a terminal prompt. If you get a message similar to “Can’t open display:” it is not working correctly.

Windows

  1. Install Xming.
  2. If you do not already have one, install an ssh client. One popular program is putty.exe. You can download it from the PuTTY site.
  3. Run Xming on your PC to start the X server. You should see the Xming icon in the taskbar if it is running (although you may have to click the little arrow in the taskbar to see it)
  4. If using PuTTY configure a new connection as follows:
    • Enter the server name in Host Name (e.g. adroit.princeton.edu)
    • Make sure the Connection type is set to SSH
    • Enable X11 forwarding (Connection > SSH > X11)
    • Click Open (note if connecting to adroit you’ll need to use your normal NetID and password, plus DUO)
    • If you receive a message like ssh_exchange_identification: Connection closed by remote host, you are likely trying to connect from off-campus and will need to take additional steps.
  5. Once you are logged in, you can test the xserver is working correctly by opening an xterm window by typing the xterm command.

Linux

  1. Everything should already be installed and ready to go.
  2. From a new terminal window, ssh to a linux server using the -Y argument (secure X11 forwarding). For example, to log into adroit you would do:
    ssh -Y <NetID>@adroit.princeton.edu
    

    Note that you will need use your normal NetID and password, plus DUO. If you receive a message like ssh_exchange_identification: Connection closed by remote host, you are likely trying to connect from off-campus and will need to take additional steps.

  3. Once you are logged in, you can test the xserver is working correctly by opening an xterm window by typing the xterm command. A new window should open with a terminal prompt. If you get a message similar to “Can’t open display:” it is not working correctly.