|
Information
|
In the future, this
page will be better organized and in a permanent area.
How to
set up a linux machine to use AFS?
|
In order to set machine up to
use AFS here at Lehigh, you need to do the following: (As I did this on
RedHat 8, I will be somewhat RedHat 8 specific in my discussion. Most
things are applicable to other linuxes.)
1) Download AFS binaries from www.openafs.org
. In order to do this, you need to go the Open AFS web site. From
the home page, click on the link that says "Latest Releases" on the left
hand side of the page. Then locate the downloads to bring down. For
RedHat 8 Linux, you will download the following Red Hat 8 Package Management
(rpm) files.
Note: As
Jeff Spirko has pointed out, the binaries below are Red Hat 8 specific! You
must download the code or binaries that pertain to your distribution and
release!
|
2) After downloading the appropriate binary files, you will then want
to install them. To do this, you must first be sure to be logged
in as root.
I always run a check to see if any of the packages I am going to install
are already on the system. It may seem silly to do this if you know
you have not installed the packages before, but rather safe than sorry.
To do this I run the following command:
rpm -qa | grep openafs
If anything is returned from that query, I would suggest removing
it before putting the new openafs binaries on. To remove (erase)
packages in RedHat, you would use the rpm command as follows:
rpm -e openafs-xxxxxxxxxxxxxx
where xxxxxxxxxxxxx is the text that comes from the results of what
was displayed from your "rpm -qa | grep openafs" command.
Once you run the command rpm -qa | grep openafs and nothing is returned,
you are ready to load the new openafs binaries.
3) In order to load the new openafs binaries, run the following rpm
commands in the following order: (you will use file names that correspond
to your downloads)
rpm -Uv openafs-1.2.7-rh8.0.2.i386.rpm
rpm -Uv openafs-kernel-1.2.7-rh8.0.2.i386.rpm
rpm -Uv openafs-client-1.2.7-rh8.0.2.i386.rpm
rpm -Uv openafs-kpasswd-1.2.7-rh8.0.2.i386.rpm
rpm -Uv openafs-krb5-1.2.7-rh8.0.2.i382.rpm
It is possible that not all these are needed, but this is what I load
and it works. If anyone has finds that you don't need to load all these,
please pass that information on.
4) You then need to edit two files to set up open afs to work with
Lehigh University. The two files are /usr/vice/etc/CellServDB and
/usr/vice/etc/ThisCell.
In the file CellServDB, you need append the lines listed below to the
file.
>cc.lehigh.edu
#Lehigh University
128.180.39.25
#fs2.cc.lehigh.edu
128.180.2.13
#fs3.cc.lehigh.edu
128.180.2.10
#fs4.cc.lehigh.edu
128.180.2.11
#fs5.cc.lehigh.edu
|
In the file /usr/vice/etc/ThisCell, you need to
replace the information with a single line which is listed below.
5) Reboot
6) Login in as you normally would. Once your are in, you can log into
AFS by using the following command at a prompt:
klog YourUserID
When you are done doing working with AFS on your session, you can log
out with the command:
unlog
7) To test whether this has worked, proceed to the section of this documentation that shows you how to access your
AFS home directory.
A special note of thanks to Steve L and Jim E for
getting applications mounted on AFS space.
|
|
|