CS 245
Sept. 19, 2010
Linux is case sensitive -- be careful when entering username and password!
You may install the NX Client software on your own workstation. Check
here
(http://phoenix.goucher.edu/~kelliher/nxclient/
).
for details.
(If you only need shell access, you could start the SSH Secure Shell Client
software on a lab workstation. Click the Quick Connect button and
enter the Host Name
(phoenix.goucher.edu
) and User Name information requested for the
dialog box which pops up. Click the Connect button and then enter
your password into the next dialog box.
A brief bit of documentation on SSH Secure Shell is available
here
(http://phoenix.goucher.edu/~kelliher/SSH/
).
In particular, you can request a copy of the software for educational
use.
There is also a Java SSH client applet available on phoenix
here
(http://phoenix.goucher.edu/ssh/
).
)
A window will open and you will now have a command line prompt on phoenix similar to this:
[kelliher@phoenix ~]$You type a command and then press
Enter
to
run it. You can edit a command before you run it by using the arrow keys
to navigate the command line.
http://phoenix.goucher.edu/password.shtml
for some advice on selecting a good password. When you're ready, run the
passwd
program to change your password:
passwdIn order to enforce the use of strong passwords, I run password cracking software from time-to-time. If this software discovers your password, you will receive a ``nastygram'' from me and your account will be disabled until you see me to select a strong password.
gedit
, create a file named name
containing your
name. Print the file in HS 149 using gedit
. Alternatively, once
you have saved the file, you can use the lpr
command in the shell to
print the file:
lpr -P hs149ps nameThe file should be printed on the printer in HS 149. The default printer is the printer in the X Lab,
hs123ps
.
Using the shell, remove the file you just created:
rm nameUnlike Windows, once you remove a file in Linux, it is gone for good. So be careful!
The file can also be removed by using the File Browser
, which is
available under the Applications menu. The File Browser
is
similar to Windows Explorer.
/etc
:
cd /etcYou can verify that you're where you think you are by running the print working directory command:
pwd
.
Using the ls
command, list the files in /etc
. Too many to
fit on a single screen? Pipe the output to the paging program:
ls | lessRepeat again using the
-l
option to ls
What's the
difference?
cd
without
an argument). List the files in your home directory. Try again using the
-a
option. What's the difference? Read the man page for ls
to read about these two options and find what other options are available:
man ls
chmod
command:
chmod go= fooUse
ls -l
to verify. Finally, remove the directory with
rmdir
:
rmdir fooand use
ls
to verify its removal. As a safety precaution,
rmdir
only works on empty directories.
It is a good idea to create a new directory each time you start a new assignment or project, so that you don't clutter up your home directory. Using sub-directories for your assignments also helps keep others out of your files.
jude &(The
&
runs JUDE Community in the background, letting you continue
to type shell commands.)
If you'd like some examples to guide you, here's a use case and a class diagram:
If you now wanted to attach the exported diagrams to your project wiki, the easiest thing to do at this point would be to open a Web browser from your X session, browse to your project, and attach the diagrams.