Creating AFS Directories on the Local Disk
mkdir /usr/vice
mkdir /usr/vice/etc
mkdir /cdrom
Incorporating AFS MOdifications into the Kernel
*Mount the AFS CD-ROM on the local /cdrom directory*
cd /cdrom/i386_linux22/root.client/usr/vice/etc
cp -rp modload /usr/vice/etc
cp -p afs.rc /etc/rc.d/init.d/afs
/etc/rc.d/init.d/afs start
Loading Client Files and Creating the ThisCell and CellServDB Files
cd /cdrom/i386_linux22/root.client/usr/vice/etc
cp -p * /usr/vice/etc
cp -rp C /usr/vice/etc
echo "cellname" > /usr/vice/etc/ThisCell
*Copy your CellServDB file from your AFS server, an example is below. How you
really get it is up to you*
cp -p /afs/cellname/common/etc/CellServDB /usr/vice/etc
Configuring the Cache
*For a disk cache - recommended*
mkdir /usr/vice/cache
echo "/afs:/usr/vice/cache:#blocks" > /usr/vice/etc/cacheinfo
*For a memory cache*
echo "/afs:/usr/vice/cache:#blocks" > /usr/vice/etc/cacheinfo
Configuring the Cache Manager
cp /usr/vice/etc/afs.conf /etc/sysconfig/afs
*edit the /etc/sysconfig/afs file to suite your needs*
Enabling AFS Login
*for Red Hat releases*
cd /lib/security
*for other Linux releases*
cd /usr/lib/security
*if you use the AFS authentication Server*
cp /cdrom/i386_linux22/lib/pam_afs.so.1 .
ln -s pam_afs.so.1 pam_afs.so
*if you use the Kerberos implementation of AFS authentication*
cp /cdrom/i386_linux22/lib/pam_afs.krb.so.1 .
ln -s pam_afs.krb.so.1 pam_afs.so
*insert the following line into PAM files (ex /etc/pam.d/login)*
*for more complete instructions on this step, go here*
*for Red Hat releases*
auth sufficient /lib/security/pam_afs.so try_first_pass ignore_root
*for other Linux releases*
auth sufficient /usr/lib/security/pam_afs.so try_first_pass ignore_root
Starting the Cache Manager and INstalling the AFS INitialization Script
cd /
shutdown -r now
*reboots, then log back in as root*
/etc/rc.d/init.d/afs start
/sbin/chkconfig --add afs
Setting Up Volumes and Loading Binaries into AFS
ln -s /afs/cellname/@sys/usr/afsws /usr/afsws
How-To
Aug 6, 1999