WIBR Bioinformatics and Research Computing

Using X windows on barra or hebrides

Installing Cygwin/X | Connecting the first time with VNC | Connecting subsequent times with VNC | Using X11 | Using eXodus | Applications | Help

To use X Windows on barra on hebrides, Mac users can choose between X11 (a free product) or eXodus. PC users can choose between Cygwin/X or VNC, both of them free.

Installing Cygwin/X

  • Cygwin/X is Cygwin, a Linux-like environment for Windows, together with X windows functionality. Cygwin adds the functionality of many Unix/Linux tools. to your Windows computer through a command-line interface. Cygwin/X adds the graphical interface.
  • If you don't have Cygwin, install Cygwin with X-windows support.
  • If you already have Cygwin but may need to add X-windows support, go through the Cygwin set-up procedure again and add the packages openssh (the OpenSSH server and client programs) and xorg-x11-base (Cygwin/X Base), as described in install Cygwin with X-windows support.

Connecting the first time with VNC:

  • If needed, download the Free Edition VNC for Windows or another OS (choosing the "viewer program only") to anywhere on your desktop computer.
  • Use the secure shell to connect to barra as usual. If you've never done this before, download SSHWinClient from SSH (for Windows). The file will look like SSHSecureShellClient-?.?.?.exe
  • After logging in to barra, issue the following command: vncserver
  • Since this is the first time for running this command, you will be asked to select a password (that can be changed later with this command: vncpasswd). This password need not be (but can be) the same as your barra login password.
  • A second time, issue the following command: vncserver
  • Read the message you get back; it should be something like
    	New 'X' desktop is barra:18
    
    	Creating default startup script /home/your_user_name/.vnc/xstartup
    	Starting applications specified in /home/your_user_name/.vnc/xstartup
    	Log file is /home/your_user_name/.vnc/barra:18.log
  • Go to wherever you put the viewer application on your desktop and click to run it.
  • When the window pops up, type in
    barra.wi.mit.edu:n
    where "n" is number you received after running 'vncserver' (18 in the example above)

  • After entering the appropriate number, i.e.,

           


    click "OK" and enter the password you just chose.
  • The X windows screen should pop up on your desktop ==> you're ready to go.
  • See below for some applications that take advantage of the graphical interface
  • Closing your desktop window doesn't terminate the session. Just reconnect by clicking on the viewer on your desktop and entering the session details.
  • To permanently end this session, enter the command
    vncserver -kill :n
    (where "n" is the number of the session [18 in the above example])
  • If you forget your VNC password, use the command
    vncpasswd
    to reset it.

Connecting subsequent times with VNC:

  • Use the secure shell to connect to barra as usual.
  • After logging in to barra, issue the following command: vncserver
  • Read the message you get back; it should be something like
    	New 'X' desktop is barra:18
    
    	Creating default startup script /home/your_user_name/.vnc/xstartup
    	Starting applications specified in /home/your_user_name/.vnc/xstartup
    	Log file is /home/your_user_name/.vnc/barra:18.log
  • Go to wherever you put the viewer application on your desktop and click to run it.
  • When the window pops up, type in
    barra.wi.mit.edu:n
    where "n" is number you received after running 'vncserver' (18 in the example above)

  • After entering the appropriate number, i.e.,

           


    click "OK" and enter your x windows password.
  • The X windows screen should pop up on your desktop ==> you're ready to go.
  • See below for some applications that take advantage of the graphical interface
  • Closing your desktop window doesn't terminate the session. Just reconnect by clicking on the viewer on your desktop and entering the session details.
  • To permanently end the session, enter the command
    vncserver -kill :n 
    (where "n" is the number of the session [18 in the above example])

Connecting on a Mac with X11:

Connecting on a Mac with eXodus:

  • If needed, download the MacSSH_PPC folder from the Applications volume of Enigma.
  • Run eXodus (double-click on the icon) but do NOT use it to open a session.
  • Run the ssh application (in the folder you downloaded from Enigma) and use it to login to barra using your username and password.
  • In the ssh window, find out the hostname of the machine you are connecting to barra from by running the command 'who' and locating your username and current session in the list.
  • In the ssh window, type the command:
    setenv DISPLAY hostname.wi.mit.edu:0
    replacing 'hostname' with the hostname you found from the 'who' command

  • To move files between the Macintosh and barra - from the Macintosh select AppleShare and the Ethernet zone. Then choose barra from the Select a file server box. Type in your barra login name and password and click okay. Your barra volume is now mounted.

Some applications:

To get a menu with many of these applications customized for barra and hebrides, place the file
twmrc into your home directory and rename it to .twmrc   The next time you start X windows, it'll take effect.

commandapplication
xtermclassic command window
xemacsxemacs (popular text editor)
xemacs -bg black -fg whiteopen xemacs with custom colors
neditopen nedit (easy-to-use text editor)
clustalxperform a multiple alignment (help)
jalview seqFile FASTAedit a multiple alignment (help)
matlabMatlab package (help)
phoenixMozilla web browser
setenv DISPLAY unix:foo.0set display if needed
who -mget name of display
xclipboardClipboard (to help with copying and pasting)
clockan analog clock
xclock -da digital clock
xcalccalculator
xloadsee how hard barra is working
xmanunix (man) help pages
echo $DISPLAYGet your display for this session

Help: