Inhaltsverzeichnis

AFS configuration on self-administrated computers

Linux

Debian / Ubuntu and its derivatives

Under Ubuntu it can be useful to integrate a 'ppa' (private package archive) prior to the installation of OpenAFS. This package contains the most recent version of OpenAFS.
add-apt-repository -y "ppa:openafs/stable"
apt-get update && apt-get upgrade

Type into the terminal window:

sudo apt-get install heimdal-clients openafs-client openafs-krb5

During the installation you'll be prompted to enter the 'Default Realm' of Kerberos. Enter in CAPITALS! please: MATH.UNI-HAMBURG.DE. Furthermore you need to enter the 'Default cell' of AFS. In small letters please enter: math.uni-hamburg.de.

After a reboot of the computer, AFS will start automatically, although it's possible to manually start the AFS service by typing the following into a terminal window:

sudo service openafs-client start

If secure boot is enabled in BIOS, the Linux kernel can only load modules that are signed. OpenAFS cannot be signed, since it is build on your computer upon install.

If you need the AFS only seldom and you DON'T want it to be started automatically with the system, you can deactivate it with the following command-line

sudo sed -i "s/AFS_CLIENT=true/AFS_CLIENT=false/" /etc/openafs/afs.conf.client

To start the AFS at need, you then need a force-start:

sudo service openafs-client force-start

To access to the AFS, you first need to obtain a Kerberos ticket and an AFS token. Please enter the following commands into a terminal window:

If for any reasons the 'Default Realm' and / or 'Default Cell' should be different from those mentioned above, you can use the long versions of the commands. In a terminal window please enter the following:

Windows

Please note: This 'how-to' refers to the 64-bit version of Windows
Installation-programs for 32-bit Windows are available at the respective “original address”.

Now restart the computer.

First Login to AFS

Mac OS X

There are two different clients to access the AFS filesystem. The first is the open-source OpenAFS-Client, the other is the closed-source Auristor-Client. The installation of the latter is a little bit different than shown below, but in principle similar.
When Updating the Operating System, please remember: You must uninstall the old AuriStor or OpenAFS version with the corresponding version (e.g. uninstall OpenAFS for Yosemite with the same version). After that, choose the corresponding version for your Operating System.
Access to files in the AFS is also for example via sftp on the command-line possible:
e.g. for your private Department-Website:
sftp <kennung>@login1.math.uni-hamburg.de connect with the Server
cd public_html change into the correct directory
ls -al list directory
get index.html fetch the file
Edit the file index.html e.g. in TextWrangler - you can leave the Terminal with the sftp open
put index.html Upload the modified file
bye end SFTP