|How do I open my ITLabs account?|
|How can I connect from Offsite?|
|Where can I get an SSH client? How can I transfer files between home and the ITLabs?|
|Is the textbook available on-line?|
|Where can I find STk for Windows?|
|Where can I find Emacs for Windows?|
|How do I use emacs?|
|How can I run STk within Emacs?|
|How can I edit my scheme files and run them in scheme?|
|How do I indent properly the next line of a Scheme expression in Emacs?|
|How can I see color in emacs?|
|What are some useful commands in Unix?|
|How do I send e-mail?|
Detailed information is available at the ITLabs site Connecting from Offsite. Note: you must download an SSH client on your computer. See the FAQ for more information.
Here is a link describing how you can remotely login into the ITLabs computers and work from your home Windows machine. This document also contains information about tranfserring files between your home computer and your ITLabs account.
To download SSH for Windows, check out the ssh tools linked from the IT Labs website located at this address. There are a number of SSH clients here; one of the more popular is PuTTY which is free and relatively simple to install and use.
To get to the official book site click here.
To download STk for Windows, click here and save the file STkwin32-4.0.1.zip. To install, use WinZip to extract the file you downloaded in a directory of your choice (an evaluation version of WinZip can be obtained here). The executable will be in "wherever-you-unzipped/STk/STk-win/MS-Win32/STk.exe". You may want to create a shortcut on your desktop.
To download Emacs for Windows, click here and save the file emacs-21.3-bin-i386.tar.gz. To install, use WinZip to extract the file you downloaded and follow the directions in either INSTALL or README file (an evaluation version of WinZip can be obtained here).
Emacs is a text editor which can be used to run scheme. While Emacs may not appear user-friendly, you can actually use the mouse with Emacs to execute the most common commands, just as you would in Microsoft Word. At your Unix prompt type:
Once emacs opens (in a new window) type:
At that prompt type:
*Some Common commands:
Ctrl-c Ctrl-c -- Quit! If you build up a lot of errors you will see
something like error 9=> Use this command to see
Ctrl-x Ctrl-s -- Save your file
Ctrl-x Ctrl-f -- Find a file
Ctrl-x Ctrl-c -- Save and exit emacs
Unix/Linux users, add the following lines to your .emacs file in your home directory (you can get to your home directory by typing cd):
;; enable color syntax cues (global-font-lock-mode) ;; we want 'stk' as our scheme interpreter (setq scheme-program-name "stk") ;; when 'stk' is run, don't hide the program file (add-hook 'inferior-scheme-mode-hook (lambda () (split-window)))After you have updated your .emacs file, simply run Emacs and type
Esc-x run-scheme(i.e. hit Esc, then hit x and then type run-scheme in the Emacs prompt).
One way to edit your scheme files is to write them in a different text editor than scheme. You might want to use emacs or another text editor which allows you to save your files as a *.scm file. When you enter scheme at your Unix prompt:
% stkYou can then load your files, similar to what we did in Homework 0. This way, if editing in scheme is bothersome...you can move to your other text editor, make and save the changes, and try and reload your file back in scheme.
You run emacs, write a program called scheme_rocks.scm and save it to
You then exit emacs
% ^x ^c
and you're back at your Unix prompt. You load stk scheme
your file is then available for execution.
Simply hit Tab and the cursor will position at the right place. Make sure that at the bottom of Emacs you can see (Scheme Mode). This can be done by giving your file a .scm extension; or by hitting Esc followed by x and typing scheme-mode in the Emacs prompt.
To see your text in color, click on
Help, go to Options, select Global Font Lock
ls -llists the file names in your current directory along with read/write permissions, date it was created, and the size of your file.
rm filenameremoves file
mkdir directornamecreates a directory
cd directorynametakes you into that specific directory to view/execute/modify files within that directory
cd ..goes one level up the directory hierarchy tree
mv filename destinationmoves file to appropriate destination
cdbrings you to your home directory
pwdtells you your directory path name
For additional information read this Unix tutorial
Play around with Unix! You'll learn more!!
Pine is an e-mail program.
At the prompt enter:
For additional information visit: www.barnard.edu/at/training/pine/ http://naio.kcc.hawaii.edu/techprep/pinetut/pine_menu.htmlCopyright: © 2000-2007 by the Regents of the University of Minnesota