Hello Everybody,
Tis howto is for the people who want to connect to an afs cell witt the open-afs client. It is not a guide to install an afs server.
For the client to run you must unfortunately compile a kernel module for the kernel that you are using. This means that you have to recompile the module each time tat you update your kernel.
You need to have the linux-headers package and the kernel-package package installed for the kernel you are running. (you can use apt-get or synaptic)
Where x.x.x is the version of the kernel that you are using.Code:sudo apt-get install linux-headers-x.x.x kernel-package
Then you have to get the openafs-modules-source package and untar the tarball it gives you:
Then you need to build the openafs kernel module. We will create a new .deb file in your /usr/src directory and then use dpkg to install it. A very big lot of text will defile during the process, it is normal.Code:sudo apt-get install openafs-modules-source cd /usr/src sudo tar xzvf openafs.tar.gz
Finally nstall the newly created openafs-modules package:Code:cd /usr/src/linux-headers-x.x.x. sudo make-kpkg configure (lots of stuff will fly by) sudo make-kpkg modules_image (if it asks about the version number, don't abort)
This is the end of the part that you need to do every time that you update your kernel.Code:sudo dpkg -i /usr/src/openafs-modules-x.x.x....deb
Now get the openafs-client and kerberos packages (if you need the kerberos 4 packages, also install the krb4 equivalents):
Configuration:Code:sudo apt-get install openafs-client openafs-krb5 krb5-user krb5-config
During the process you will be asked to give the name of the AFS cell, the size of the AFS cache and the default kerberos realm:
Code:default Kerberos version 5 realm: <blank> AFS cell: name of the cell you want to connect to. Ask the administrator. AFS cache: 50000
If you wish for the AFS client to start at boot, edit /etc/openafs/afs.conf.client:
change
AFS_CLIENT=false
to
AFS_CLIENT=true
Load the newly made module (I don't know why, bu it is not automatically loaded at startup)
Start the openafs client:Code:sudo insmod /lib/modules/x.x.x/fs/openafs.ko
Get an AFS token using kerberosCode:sudo /etc/init.d/openafs-client start
You can then access the afs server in the /afs/the_name_of_the_AFS_serverCode:klog -principal your_username -cell the_name_of_the_AFS_server
directory.
Yours
Christophe Schlicht
Bookmarks