User Tools

Site Tools


en:linux:cern

Linux in CERN

CASTOR commands

Direcotry listing

  rfdir <dir>

Coping

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

Castor 2 environment

  export RFIO_USE_CASTOR_V2=YES
  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:

  /afs:/var/cache/afs:209570

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

/etc/openafs/ThisCell

  cern.ch

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

 auth        sufficient  pam_afs.so use_first_pass ignore_root

The pam_afs.so is a link to /usr/lib/pam_afs.krb.so.1

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 https://linux.web.cern.ch/linux/docs/printing.shtml

The list of CERN printers (and their settings) can be obtained here: https://winservices.web.cern.ch/winservices/Services/Printers/Default.aspx

For CUPS, the LPD queue is of form lpd:server/queue. For CERN printers it means lpd:NAME.print.cern.ch/NAME, for example lpd:559-COR-XEROX.print.cern.ch/559-COR-XEROX''.

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