NOTE: These instructions are very out-of-date and may not work!
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo add-apt-repository ppa:openafs/stable
sudo apt-get update
sudo apt-get install csh libpam-krb5 krb5-user openafs-client openafs-fileserver openafs-krb5 openafs-modules-dkms libpam-afs-session
When installing and configuring, it will ask for some default settings. The default Kerberos version 5 realm is CRC.ND.EDU
, the workstation belongs to the AFS cell crc.nd.edu
, and the CRC suggests an AFS cache size of 3 GB (3000000 kB).
sudo su
AFS=/usr/local/etc/openafs
mkdir -p ${AFS}
echo "crc.nd.edu" > ${AFS}/ThisCell
echo "crc.nd.edu #University of Notre Dame - Center for Research Computing
129.74.85.34 #afsdb1.crc.nd.edu
129.74.85.35 #afsdb2.crc.nd.edu
129.74.85.36 #afsdb3.crc.nd.edu" > ${AFS}/CellServDB
CRCGID=1313
groupadd -g ${CRCGID} campus
/afs/crc.nd.edu/common/etc/passwd
and save the values in the following variables.CRCUSER:x:UID:GID:CRCNAME:home_path:CRCSHELL
)
CRCUSER=
CRCUID=
CRCNAME=
CRCSHELL=
useradd -u ${CRCUID} -g ${CRCGID} -c "${CRCNAME}" -d /afs/crc.nd.edu/user/${CRCUSER:0:1}/${CRCUSER} -s ${CRCSHELL} ${CRCUSER}
usermod -aG ${CRCGID} ${CRCUSER}
/etc/krb5.conf
, overwriting the ATHENA.MIT.EDU
defaults.
#Krb5.conf v1.0
[appdefaults]
debug = false
forward = true
forwardable = true
ticket_lifetime = 30d
renew_lifetime = 30d
[libdefaults]
forwardable = true
dns_lookup_realm = false
dns_lookup_kdc = true
default_realm = CRC.ND.EDU
ticket_lifetime = 30d
renew_lifetime = 30d
default_tkt_enctypes = aes256-cts-hmac-sha1-96 des3-hmac-sha1 des-cbc-crc
default_tgs_enctypes = aes256-cts-hmac-sha1-96 des3-hmac-sha1 des-cbc-crc
allow_weak_crypto = yes
[realms]
CRC.ND.EDU = {
kdc = kerberos.crc.nd.edu:88
kdc = kerberos-1.crc.nd.edu:88
kdc = kerberos-2.crc.nd.edu:88
admin_server = kerberos.crc.nd.edu:749
}
ND.EDU = {
kdc = kerberos.nd.edu:88
kdc = kerberos-1.nd.edu:88
kdc = kerberos-2.nd.edu:88
admin_server = kerberos.nd.edu:749
}
[domain_realm]
.crc.nd.edu = CRC.ND.EDU
.helios.nd.edu = ND.EDU
kinit
!)
kinit ${CRCUSER}@CRC.ND.EDU
/etc/init.d/openafs-client force-start
aklog
rm /opt/crc
ln -s /afs/crc.nd.edu/x86_64_linux /opt/crc
rm /usr/local/Startup
ln -s /afs/crc.nd.edu/x86_64_linux/usr/local/Startup /usr/local/Startup
usermod -aG sudo ${CRCUSER}
echo "xhost +local:" >> /afs/crc.nd.edu/user/${CRCUSER:0:1}/${CRCUSER}/.profile