User Tools

Site Tools


Linux in CERN

CASTOR commands

Direcotry listing

  rfdir <dir>


  rfcp <local file> <castor file>
  rfcp <castor file> <local file>

Castor 2 environment

  export STAGE_HOST=castorpublic
  export STAGE_SVCCLASS=default

Full documentation

AFS installation/configuration

I installed OpenAFS package (AUR). For 2.6.23 kernel it was smooth, no patch needed. A good trick is to delete the etc entry in the pkg directory and repackage it (makepkg -fR). That excludes configuration files from the package and keeps your original configuration.

Then, I had to prepare a standalone partition for cache. using parted I made an ext2 partition and mounted it as /var/cache/afs. This path went to /etc/openafs/cacheinfo:


The cache size must be less than 95% of the partition size, if you make to large, afsd will tell you.


I modified PAM configuration. I added a line to /etc/pam.d/login

 auth        sufficient use_first_pass ignore_root

The is a link to /usr/lib/

Then, I configured Kerberos5, here is the resulting /etc/krb5.conf.

Transfering AFS tickets via SSH

First, obtain a TGT ticket by kinit and chect it by klist. Update your .ssh/config entry for the server you intend and enable GSSAPI authetication:

Host calc
HostName pctotem31
PubkeyAuthentication no
GSSAPIAuthentication yes
GSSAPIDelegateCredentials yes

More information can be found here.

CVS without password

Follow the CERN CVS manual.

Printer setup

Lots of useful hints can be found here

The list of CERN printers (and their settings) can be obtained here:

For CUPS, the LPD queue is of form lpd:server/queue. For CERN printers it means, for example''.

en/linux/cern.txt · Last modified: 2010/04/12 12:59 (external edit)