On-Campus Linux Instructions

As we announced in class, you should be able to use the LKB software on all Stanford Linux workstations; we recommend the hedge Linux cluster, but others should work too.

From the Windows computers in our laboratory in Margaret Jacks, we will be using X Window System to connect to a remote session on hedge. To establish the session on hedge, first make sure there is a local X Server available on your Windows workstation: double-click on the Start X Server (Xming) icon on the Windows desktop. A capital ‘X’ should appear in the right-hand corner of the Windows task bar, at the bottom of your screen. Next, launch a terminal window by double-clicking the Start Terminal (xterm) icon on the Windows desktop. A new window should open; in this window, execute the following command:

  ssh -Y name@hedge
substitute your personal SUNet ID for name and use the password you were assigned for the LSA Institute to complete the remote login.

Once logged in remotely, we will need to perform a few one-time preparatory steps to enable your account for use of the LKB software. Add the following few lines to the end of the file `.cshrc' in your home directory:

  #
  # add support for the LKB grammar engineering environment
  #
  if ( -f /afs/ir.stanford.edu/users/o/e/oepen/dot.cshrc.lkb ) then
    source /afs/ir.stanford.edu/users/o/e/oepen/dot.cshrc.lkb
  endif

Likewise, add to the end of the file `.emacs' in your home directory:

  ;;;
  ;;; add support for the LKB grammar engineering environment
  ;;;
  (let ((file "/afs/ir.stanford.edu/users/o/e/oepen/dot.emacs.lkb"))
    (if (file-exists-p file) (load file nil t t)))

If you are unsure yet about how to use a file editor in Linux, a quick way of appending the above statements to your own files could be the following:

  tail -6 ~oepen/.cshrc >> .cshrc
  tail -5 ~oepen/.emacs >> .emacs
This much completes our initial setup, but for the changes to take effect you need to log out of the remote session once, and then back in. At the shell prompt, execute:
  exit
Once back to the local terminal on your Windows workstation, repeat the ssh remote login, as above.

To get started with the class software, from the remote shell prompt (on hedge), lauch emacs by executing:

  emacs &

Note the final ampersand sign (‘&’) to request that emacs be launched in the background, so that you can continue to make use of the shell prompt. To get access to the course CVS repository, at the shell prompt type

  cvs checkout grammar1

to obtain our original starting grammar for the first assignment.