Beruflich Dokumente
Kultur Dokumente
This document is designed to help new users get started on an SGI Workstation. It is
written with the assumption that the user understands basic computing concepts such as
directories (folders), files, programs, windows, icons, etc. A version of this is also
available online at:
http://structbio.vanderbilt.edu/comp/unix/sgi.phtml
Before beginning this tutorial, you should be familiar with the Introduction to UNIX
documents that are available online at:
http://structbio.vanderbilt.edu/comp/unix
Introduction
SGI workstations run a version of the UNIX operating system called IRIX. Its window
manager is called 4dwm or the IRIX Interactive Desktop. You can find out more about
IRIX and the IRIX Interactive Desktop at SGIs website:
http://www.sgi.com/software/irix6.5
and
http://www.sgi.com/software/irix/desktop.html
There are a number of other online resources, including the comp.sys.sgi.* newsgroups,
SGIs technical publications website (http://techpubs.sgi.com), and the SGI Freeware
website (http://freeware.sgi.com).
Logging In
The login screen on an SGI workstation presents you with a place to enter your username
(there may also be a list of icons to choose from, one per user). Type your username and
press <enter>. You will then be prompted for your password. After entering your
password, press <enter> again, and you will be logged in. If this is the first time youve
logged in to this particular workstation, you may be asked if you would like to create a
new desktop or share an existing one. This is so the window manager can save your
personal preferences, window placements, running programs, etc. If you can, choose to
share an existing one. If that option is not presented, choose to create a new one.
At this point, the login screen will be replaced with your desktop environment. It should
look something like the following:
icons appear when you minimize windows (see below). Clicking an icon brings the
window back.
Windows
In the center of the screen, you see a Window. Windows appear around any application
that runs on your desktop. In this case, the window contains a terminal. Across the top
of the window, you will find several control elements:
This command makes a new directory calld tutorial inside the current working
directory. Lets take a look at it now:
% ls
You should now see the directory you just created called tutorial in your the listing.
Now lets move to the new directory with the change directory command so we can
create some files there:
% cd tutorial
% pwd
% ls
Your shell should now be using /home/<username>/tutorial as its working directory,
and the directory should be empty as reported by ls. Lets start our text editor and create
a file called helloworld.txt:
% nedit &
A nedit window should open. If you see an error message like Command not found,
this means that nedit is not in your PATH. For now, you can use the explicit location of
nedit:
% /usr/sbin/nedit &
If you still see Command not found, that means nedit is not installed on this machine.
Contact your system administrator. For now, use the jot program instead and use the
analogous procedure discussed below.
By the way, the & character after the nedit command we typed above puts nedit in the
background so that you can still use your shell prompt while nedit is running. Lets
create the file:
1. Place your mouse in the nedit window so that nedit now has the keyboard focus.
2. Type hello, world! (without the quotes) in the nedit window. This will be the
content of the text file.
3. Now, save your text to a file with the File->Save As command from the nedit
menus. A file dialog will appear.
4. Again, place your mouse cursor in the file dialog so that the dialog gets the
keyboard focus. You should see a flashing cursor in the Save File As box. The
current directory appears in front of the cursor, so you only need to type the
filename of the file you wish to create. Lets call it helloworld.txt.
5. Once youve typed the filename, press the OK button to commit the action.
Now lets look at the tutorial directory again. Place your mouse in the terminal window
and type:
% ls
You should now see the file helloworld.txt in your new directory. Now, lets take a
look at the file directly from the command line:
% more helloworld.txt
This command should have printed the contents of the file to your terminal window.
Now, lets go back up to your home directory:
% cd /home/<username>
% pwd
% ls
The shell should now be back in your home directory. Lets take a look at the text file
you created from here:
% more /home/<username>/tutorial/helloworld.txt
% more tutorial/helloworld.txt
These should both print the contents of helloworld.txt to your terminal window. Notice
how we had to include the tutorial directory in the path to the file this time. That is
because our shell was in a different directory than the file. The first command used the
explicit path, starting with / (the top level directory). The second command used the
relative path. That is, the path relative to the shells current working directory, which
in this case was /home/<username>.
Lets edit the file again:
% nedit tutorial/helloworld.txt
Nedit will open the file, and you will see the contents. You can now edit the file using
the mouse, keyboard and nedit windows.
Summary
You should now be familiar with the IRIX desktop and window manager. You should
also be familiar with navigating the UNIX directory structure, creating directories, and
editing text files. These are common operations when working under UNIX. For
additional topics, be sure to read the Introduction to UNIX linked to at the beginning of
this document.