CS 0449 – thoth.cs.pitt.edu

We’re going to use thoth.cs.pitt.edu to do our work for this course. This is a quad-core x86 machine with many GBs of RAM and over a terabyte of disk space. In other words, a modern, powerful machine.

To use it, we first need to modify the path to point to some helper programs, and since the man pages also might be useful, it’s worth a digression to fix this on thoth.cs.pitt.edu permanently.

cd ~

vim .bash_profile

 

Type a capital G to go to the end of the file.  Scroll up a bit until your cursor is under the line:

# Define your own private shell functions and other commands here

 

Type the letter i  to enter insert mode, and add the lines (spacing around the [ ] is critical!):

if [ "$HOSTNAME" = "thoth.cs.pitt.edu" ]; then

        source /opt/set_specific_profile.sh;

fi

 

Hit the ESCAPE key, then type :w! to save, followed by :q to quit.

We did it this way because the file was read only, and we can just let vim take care of the permissions via the forced write.  This won’t take effect until the next time you log in, so log out and reconnect to thoth.

To check that it worked type at the prompt:

 

man open

 

If you see:

No manual entry for open.

 

that you made a mistake in typing the code. Go back and check your spaces and the characters and try again.

Note

We have also set up an alias for the machine as: cs449.cs.pitt.edu

You can connect with either name, but the script above has to be in terms of the canonical hostname, thoth.