This note is intended for system administrator who wants to install UPS on his new wonderful Linux box.
Fermilab Computing Division is famous for developing of the so
called UPS
product. It allows users to issue commands like:
$ setup cern
$ setup geant
It also gives system administrators a serious headache, because UPS is organized on different principals and is intended to solve different problems than packaging systems of major Linux distributions.
If you have AFS installed you can try to use UPS directly from Fermilab. You probably will end up setting up your local copy anyway, but it is good place to start, just to see that whole project is not completely hopeless. Assuming that you have bash :
kushnir@sphinx04:~$ . /afs/fnal.gov/ups/etc/setups.sh kushnir@sphinx04:~$ setup cern kushnir@sphinx04:~$ which paw /afs/fnal.gov/ups/cern/2001/Linux+2.4/bin/paw
Following are steps to install your local UPS setup. They are based on steps described here There is a bunch of automated scripts - but they did not work for me, and I seriously dislike automated procedures.
mkdir /usr/ups chown root.staff /usr/ups chmod g+w /usr/ups
export UPS_DIR=/usr/ups/prd/ups/v4_7/Linux-2 export PRODUCTS=/usr/ups/db export UPS_SHELL=sh
cd /usr/ups wget ftp.fnal.gov:/products/bootstrap/tarfiles/Linux+2.tar.gz tar -xzvf Linux+2.tar.gz rm Linux+2.tar.gz chown -R kushnir.staff * chmod -R g+w *
${EDITOR} ${PRODUCTS}/.upsfiles/dbconfig ${EDITOR} ${PRODUCTS}/../etc/upsdb_listI recommend to define environment variable $UPS_ROOT_DIRECTORY in /etc/environment file and refer to this directory in UPS configuration files: dbconfig and upsdb_list .
This way if you decided to move all ups tree in some other location you only need to modify /etc/environment .
${UPS_DIR}/bin/ups declare -c -2 ups v4_7
# Start UPS if available if [ -f $UPS_ROOT_DIRECTORY/etc/setups.sh ]; then . $UPS_ROOT_DIRECTORY/etc/setups.sh fior
# start UPS setup if it exists if ( -x $UPS_ROOT_DIRECTORY/etc/setups.csh ) then source $UPS_ROOT_DIRECTORY/etc/setups.csh endif