Customizing Mac OS X


Installing Kerberos:

To install system software in Mac OS X, you must have administrative privilages on the machine. Also, you should be running Mac OS X 10.1.2 or later.

Go to http://web.mit.edu/kerberos/www/ and follow the link "Getting Kerberos Sources and Binaries from MIT (US and Canada only). Download MIT Kerberos for Macintosh 4.0.x Release. If it does not automatically expand and mount as a disk image, drag the downloaded onto stuffit expander and diskcopy or double click on the downloaded icon.

Double click on the Kerberos for Mac OS X 4.0 icon. A dialog box will pop up asking for your administrator name and password. Once you do this, install normally on the disk your system is running on. When it is installed, you will have to restart your computer. This will place a program Kerberos in yoiur Applications folder. You can obtain tickets either by double-clicking on the kerberos icon or by typing kinit in a terminal.


Installing AFS:

To install system software in Mac OS X, you must have administrative privilages on the machine. Also, to run use AFS you should first install Kerberos.

Go to http://www.openafs.org and download from the release section OpenAFS.pkg.tar for Mac OS X. If it does not automatically untar, drag the double-click on the package and install.

Now, create a file /var/db/openafs/etc/ThisCell containing the line:
athena.mit.edu
and a file /var/db/openafs/etc/config/afsd.options containing the line:
-stat 2000 -dcache 800 -daemons 3 -volumes 70 -rootvol root.afs

Replace /var/db/openafs/etc/CellServ with /usr/vice/etc/CellServ from your favorite athena machine.

Next type:
sudo mkdir /Network/afs

Now download aklog from http://web.mit.edu/openafs. Put it in /bin/ and type:
sudo chmod a+x /bin/aklog
then restart machine. Log in. In a Terminal, get your kerberos tickets by typing "kinit" and entering your password at the prompt. Next type "aklog". You will be able to access afs space through a terminal or xterm in /Network/afs/.

It may be convenient to create a on your link on your disk to your athena directory. To do so, type
sudo ln -s /Network/afs/athena.mit.edu/user/firstletterofusername/secondletterofusername/username /location/of/link

If you look in the finder at the Network folder, you see a server called afs. Navigating AFS through the finder is possible, though there are some errors in the way the finder deals with AFS. However, giving yourself access to your athena directory through the finder requires some significant changes to your local account that should not be necessary in the future. It is not recommended that you do this, but this is one way of doing it.

First, make sure that your local username (your short name on your computer) is the same as your athena username. If it is not the same already, open Netinfo Manager (found in Applications/Utilities/), select users, and select your shortname. Click the lock in the lower left corner and enter your password at the prompt. Edit the values below so that _writers_hints, writers_passwd, name, and _writers_picture contain your username instead of your old shortname.

Next, find your uid on athena by logging in on any athena machine and typing id. In The Netinfo Manager, select your username, copy your local-uid and change the value of your uid to be the same as your athena-uid. In a terminal type
sudo find / -xdev -user local-uid -print0 | sudo xargs -0 chown -h username
this changes the owner of your files to be your new uid instead of your old uid

You should now be able to access files in your athena directory. This will not give you access to files you have access to through AFS permissions but do not own.


Installing Xfree86

Go to http://www.xfree86.org/4.2.0/Darwin.html. Download "Install" from the darwin ppc 5.x directory and follow its instructions. It may be more convenient to keep the files you download in their own folder. cd into that directory and type "sudo sh Xinstall.sh" at the prompt. The installer will ask a few questions about your installation. When it is done you will have the application XDarwin in your applications folder. Double-click on this icon to start X, using twm as the default window manager.


Installing and Configuring Netscape 6:

Visit http://web.mit.edu/is/help/netscape/ and follow it's instructions


Getting Kerberos and AFS Tickets on Login

Create a file that contains
#!/bin/sh
kinit athena-username
aklog
exit
and make it executable by typing into a terminal
chmod a, in the fi menu select show info. Drag the menu in this window down to "Open with Application." Click on the icon below and change it to Other. It will make you select an application. Next to show pick "All Applications" and choose the Terminal.

Open System Preferences and open the login pane. Go to login items and add the file you've created and uncheck the box next to it under the "Hide" column.

Now when you log into your machine the terminal will open and prompt you for your athena password in order to get tickets.