Home > Kerberos, Linux, OpenAFS > OpenAFS-Client on Ubuntu 9.10 “Karmic Koala”

OpenAFS-Client on Ubuntu 9.10 “Karmic Koala”

January 31st, 2010

After installing my favourite window manager, next thing I’ll need is the OpenAFS-Client.

The installation of the client on modern Linux distributions is pretty straight forward.

  1. get the packages
  2. compile the kernel module
  3. mess around in some config files

First step: get the packages
sudo apt-get install
openafs-client openafs-doc openafs-modules-source openafs-krb5 krb5-clients krb5-config krb5-user krb5-doc

(Yes, we’ll install the -doc-Packages, because everyone likes documentation)

Next step: build the kernel module
Maybe you’ll need some more packages for this step:
sudo apt-get install module-assistant build-essential
Now start the module assistant, to build the openafs-module.
sudo module-assistant

m-a

The first entries “UPDATE” and “PREPARE” could take a few minutes, because eventually missing packages (e.g. kernel sources or headers, or the compiler-chain) will be installed. “SELECT” will open the next window, where you should search the module and select it.

build

Now build the module. The next question will be “would you like to install the build module?”, but you should now have a guess what to do ;-)
You should now exit the module assistant.

Last step: the config files
Open /etc/krb5.conf and edit the sections containing the following:

1
2
3
4
5
6
7
8
9
10
11
12
[libdefaults]
        default_realm = MYCELL.NET
[realms]
        MYCELL.NET = {
                kdc = kdc1.mycell.net
                kdc = kdc2.mycell.net
                admin_server = kdc1.mycell.net
                default_domain = mycell.net
        }
[domain_realm]
        .mycell.net = MYCELL.NET
        mycell.net = MYCELL.NET

You should translate mycell.net to your local cell settings, but you already knew that, right? Ask your AFS Admin, if you are not sure about the correct values.

You may also take a look at /etc/openafs/afs.conf.client, /etc/openafs/ThisCell and /etc/openafs/CellServDB, but in most cases there’s no need to change something within these three files. If you need to get an updated version of /etc/openafs/CellServDB, just get it via FTP from grand.central.org.
wget -O /etc/openafs/CellServDB
ftp://ftp.central.org/pub/cellservdb/CellServDB

The very last step: restart the client
sudo /etc/init.d/openafs-client restart
Stopping AFS services:.
Starting AFS services: openafs afsd.
afsd: All AFS daemons started.

You’re done! kinit and aklog will be your best friends from now on! :-)

Bookmark and Share


Related:
  1. OpenAFS-Client on Ubuntu 9.10 – the dkms way...
  2. Enlightenment e17 on Ubuntu 9.10 “Karmic Koala”...
  3. OpenAFS 1.5.50 in debian/experimental...

, ,

  1. February 1st, 2010 at 13:58 | #1

    apt-get install linux-headers-2.6-[amd64|686] openafs-modules-dkms

    and the openafs module gets compiled automatically at boot time if it doesn’t exist yet. You can leave out the linux-headers package, but then you have to make sure by yourself that the matching kernel headers are available.

  2. February 1st, 2010 at 17:47 | #2

    @sur5r
    Woh? Cool! Thanks for the hint!

Comments are closed.