<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>MemberManual/TransferringFiles/OpenAFS/Arch</title><revhistory><revision><revnumber>2</revnumber><date>2013-01-14 09:07:18</date><authorinitials>ClintonEbadi</authorinitials><revremark>cat</revremark></revision><revision><revnumber>1</revnumber><date>2011-07-11 11:47:19</date><authorinitials>MarkMeyer</authorinitials><revremark>Initial revision</revremark></revision></revhistory></articleinfo><para>This is the chapter of the <ulink url="https://wiki.hcoop.net/MemberManual/TransferringFiles/OpenAFS/Arch/MemberManual#">MemberManual</ulink> that describes how to install and configure OpenAFS Client on <ulink url="https://wiki.hcoop.net/MemberManual/TransferringFiles/OpenAFS/Arch/ArchLinux#">ArchLinux</ulink>. </para><section><title>Build OpenAFS package from AUR</title><para>OpenAFS is not part of the Arch core distribution, so you will want to fetch it from the AUR <ulink url="http://aur.archlinux.org/packages.php?ID=3359"/>. Get the <emphasis>Tarball</emphasis>. </para><para>Now we'll unpack the package, and tell it to download and compile OpenAFS. </para><screen><![CDATA[$ tar zxvf openafs.tar.gz
$ cd openafs
$ makepkg -s]]></screen><para>After a considerable amount of time you will have a newly built openafs-*.tar.xz in the current directory. </para></section><section><title>Install and configure package</title><para>Now install the package you got. </para><screen><![CDATA[$ sudo pacman -U openafs-*.tar.xz]]></screen><para>After the installation finished open up <code>/etc/krb5.conf</code>. Under the category <code>libdefaults</code> set <code>default_realm</code> to <code>HCOOP.NET</code>. Now login with your Hcoop username and password. </para><screen><![CDATA[$ kinit USERNAME@hcoop.net
< give password >
$ klist
Ticket cache: FILE:/tmp/krb5cc_1000
Default principal: USERNAME@HCOOP.NET
]]><![CDATA[
Valid starting     Expires            Service principal
07/11/11 13:23:59  07/11/11 23:23:59  krbtgt/HCOOP.NET@HCOOP.NET
        renew until 07/12/11 13:24:38]]></screen><para>The <code>klist</code> commands shows you, that your login at the Hcoop Kerberos server was successful. You obtained a ticket granting ticket (krbtgt). </para><para>Now configure and startup openafs. Go to <code>/etc/openafs/ThisCell</code> and change it to <code>hcoop.net</code>. </para><screen><![CDATA[# start OpenAFS
$ sudo rc.d openafs start
]]><![CDATA[
# get AFS tokens
$ aklog
]]><![CDATA[
# verify this worked
$ klist
Ticket cache: FILE:/tmp/krb5cc_1000
Default principal: USERNAME@HCOOP.NET
]]><![CDATA[
Valid starting     Expires            Service principal
07/11/11 13:23:59  07/11/11 23:23:59  krbtgt/HCOOP.NET@HCOOP.NET
        renew until 07/12/11 13:24:38
07/11/11 13:24:05  07/11/11 23:23:59  afs/hcoop.net@HCOOP.NET
        renew until 07/12/11 13:24:38]]></screen><para>Do an <code>ls -l /afs/hcoop.net/</code> to verify that your good to go. If you want the OpenAFS daemon to start automatically on each reboot, add <code>openafs</code> to the <code>DAEMONS</code> line in <code>/etc/rc.conf</code>. </para><!--rule (<hr>) is not applicable to DocBook--><para> <ulink url="https://wiki.hcoop.net/MemberManual/TransferringFiles/OpenAFS/Arch/CategoryMemberManual#">CategoryMemberManual</ulink> </para></section></article>