Linux and JUDE Community Lab

CS 245

Sept. 19, 2008

  1. Login to a Windows workstation and start an X Window session on phoenix using the Cygwin@phoenix link. Login to phoenix. X Window is a GUI interface, required for JUDE Community and Eclipse.

    Linux is case sensitive -- be careful when entering username and password!

    You may install the Cygwin software on your own workstation. Check here
    (http://phoenix.goucher.edu/~kelliher/cygwin/). 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 download 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/). )

  2. You need to open a shell. Open the Applications menu, go down to System Tools and choose Terminal.

    A window will open and you will now have a command line prompt on phoenix similar to this:

    >
    
    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.

  3. If you've just logged in for the first time, you'll probably want to change your password. Due to its exposure to the Internet, phoenix is picky when it comes to accepting new passwords. You may want to review 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:
    passwd
    

  4. Using gedit, create a file named name containing your name. Print the file in HS 149:
    lpr -P hs149ps name
    
    The file should be printed on the printer in HS 149. The default printer is the printer in the X Lab, hs123ps.

    Remove the file you just created:

    rm name
    
    Unlike Windows, once you remove a file in Linux, it is gone for good. So be careful!
  5. Change directories to /etc:
    cd /etc
    
    You 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 | less
    
    Repeat again using the -l option to ls What's the difference?

  6. Change directories back to your home directory (run 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
    

  7. Using the mkdir command, create a sub-directory within your home directory: foo. You can guarantee the the contents of the directory are private by using the chmod command:
    chmod go= foo
    
    Use ls -l to verify. Finally, remove the directory with rmdir:
    rmdir foo
    
    and 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.

  8. It's time to start JUDE Community. Run the command
    jude &
    
    (The & runs JUDE Community in the background, letting you continue to type shell commands.)

  9. Create a new file for your ``project'' (look under the File menu).

  10. Experiment with creating a couple of use case and class diagrams. You'll find a lot of JUDE Community documentation on the course web site.

  11. Export your diagrams as PNG images (look under the Tool menu).

    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.

  12. Save your project.

  13. When you're finished, exit from JUDE Community and use the exit command to close your shell. Open the Actions menu to logout from phoenix.



Thomas P. Kelliher 2008-09-18
Tom Kelliher