OS X Terminal

From OCFwiki

Jump to: navigation, search

NOTE: For OCF SSH settings, please consult the general SSH documentation.

Using OS X Terminal

Computers which run the Unix operating system, like the ones in the OCF, are sometimes called command-line oriented. This means that like an IBM PC clone and unlike a Macintosh, you get the computer to do things by typing the name of the program you want to run to a system prompt. The default prompt on machines in the OCF looks like this:

apocalypse [100]

Note: You SHOULDN'T type "apocalypse [100]"! That is your PROMPT, as in, something that computer shows you to PROMPT you for another command. In addition, apocalypse [100] is an example, your prompt is not always the same thing. The first word is the name of the machine you're logged into; the number is the number of the command you're about to type, which is useful for repeating a command. Some Unix other systems are set up to use "%" as their prompt; the prompt on the OCF acts the same, but gives you a bit more information.


Detailed Instructions

  1. Find the Terminal utility and open it. It's usually found under Macintosh HD/Applications/Utilities.

    screenosxterm1.jpg

  2. Launch the Terminal program. It should look something like this:

    screenosxterm2.jpg

  3. Login to OCF using the command "ssh username@ocf.berkeley.edu". Just replace "username" with your actual username.

    If this is the first time you have connected to ocf using this client, you will be prompted to check the identity of the remote host. At this point, there is no way for the SSH client to determine if the host you are connecting to is actually the host it claims to be. It will provide you with a key fingerprint and asks you if you want to continue. Most people will just click Yes and assume it to be the correct host. The OCF publishes the SSH host keys of all of its systems, so you really should check. It doesn't take that long and you only have to do it once. If the fingerprints match, go ahead and continue and type "yes" to save the key so you don't have to check later. Then enter your password. (note: it won't appear as you type it in)

    screenosxterm3.jpg

  4. If this is the first time you have logged in to your OCF shell account, you will see the new user information. You should probably read this information, but if you are in a hurry, you can just page through it until you get to the end. At this point you will be asked whether or not to make your files world-readable. If you aren't sure what to pick, go with unreadable and enter 'u'. Once you get a prompt like the one below (or something similar like "apocalypse [1] "), you are now logged-in and may issue commands.

    screenosxterm4.jpg

If you fail to login, then you may have...

  • Mistyped your password.
  • Forgot to put your "username@" before ocf.berkeley.edu at the command line. Without specifying a username, OS X will automatically use the name of your local account in OS X, which may not correspond to your OCF username.
Personal tools