TWiki
>
AtlasCanada Web
>
ComputingPage
>
ATLASLocalRootBase2
(2026-10-05,
AsokaDeSilva
)
(raw view)
E
dit
A
ttach
---+ !ATLASLocalRootBase (v2) %BR%%BR%%BR%%BR%%BR% %X% *WARNING:* This page is obsolete. Please look at [[ https://atlas-software.docs.cern.ch/analysis/analysis_tutorial/basicSetup/alrb/ ]]. %BR%%BR%%BR%%BR%%BR% %TOC% ---++ Brief description and usage of the !ATLASLocalRootBase package !ATLASLocalRootBase is a consistent "look and feel" user interface for ATLAS users on any platform or site where it is installed. It is installed with the [[ManageTier3SW][manageTier3SW]] package and is available on cvmfs and on all grid sites, Tier3s as well as on !CernVM. From the user perspective, all one has to do is the following: %ICON{tip}%(!CernVM users, or sites with cvmfs, replace below <path to> with /cvmfs/atlas.cern.ch/repo and see the [[#LocalOverrides][section below]] for overrides.) <verbatim> export ATLAS_LOCAL_ROOT_BASE=/<path to>/ATLASLocalRootBase # use your path alias setupATLAS='source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh' setupATLAS</verbatim> %ICON{tip}% The user can also add this in ~/.bashrc or ~/.zshrc and simply type setupATLAS when needed. <verbatim> export ATLAS_LOCAL_ROOT_BASE=/<path to>/ATLASLocalRootBase # use your path alias setupATLAS='source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh'</verbatim> %T% If you do not like the reverse highlight menu, you can disable it: export ALRB_userMenuFmtSkip=true. ---++ Container (setupATLAS -c) If you are want to run in a (Apptainer/Docker/Podman/Shifter) container, please see [[Containers][this section]]. After =setupATLAS= is done, there is a tool =queryC= which is available to find containers or list details about them. Do =queryC -h= for details. ---++ !CernVM users or using !ATLASLocalRootBase from cvmfs Non-CernVM users, you can also use !ATLASLocalRootBase from cvmfs if you have cvmfs installed - almost all sites have it. You should have the following lines in ~/.bashrc or ~/.zshrc: <verbatim> export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase alias setupATLAS='source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh' export ALRB_localConfigDir=$HOME/localConfig</verbatim> See the next section on "Local Overrides" for what to insert in $HOME/localConfig. ---++ Local Overrides #LocalOverrides Note that you can override some settings by creating a local directory. For example, do the following: <verbatim> mkdir $HOME/localConfig cp $ATLAS_LOCAL_ROOT_BASE/exampleLocalConfig/* $HOME/localConfig/</verbatim> Next edit the files in $HOME/localConfig and then insert the following line into ~/.bashrc or ~/.zshrc: <verbatim> export ALRB_localConfigDir=$HOME/localConfig</verbatim> This will setup the appropriate local overrides for Frontier-squid and Containers. Usually you need not do this as site admins will have done it for you globally. Examples can be found in $ATLAS_LOCAL_ROOT_BASE/exampleLocalConfig. ---++ !MacOS !ATLASLocalRootBase is also available for !MacOS users. * Please install cvmfs as described [[https://twiki.cern.ch/twiki/bin/view/AtlasComputing/Cvmfs21#Mac_OSX_client_installation_and][here]]. * Then define these: <verbatim> export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase alias setupATLAS='source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh'</verbatim> * This is mainly meant for users to run containers on !MacOS. * Note that you can install only !ATLASLocalRootBase on your Mac and use standalone containers without cvmfs. (or use both local and cvmfs !ATLASLocalRootBase depending if you have network. See [[https://gitlab.cern.ch/atlas-tier3sw/manageTier3SW#instructions-for-an-alrb-only-installation][this link]]. ---++ What do you want to do ? ---+++ Note about when to do voms-proxy-init If you setup any tool and you see emi (or grid middleware) setup, and this at the end of the setup: <verbatim> >>>>>>>>>>>>>>>>>>>>>>>>> Information for user <<<<<<<<<<<<<<<<<<<<<<<<< emi: No valid proxy present. Type "voms-proxy-init -voms atlas" ************************************************************************</verbatim> or this: <verbatim> >>>>>>>>>>>>>>>>>>>>>>>>> Information for user <<<<<<<<<<<<<<<<<<<<<<<<< emi: Your proxy has 0h:29m:54s remaining Renew by typing "voms-proxy-init -voms atlas" ************************************************************************</verbatim> or even this (only if you want to extend your proxy beyond the time listed below): <verbatim> >>>>>>>>>>>>>>>>>>>>>>>>> Information for user <<<<<<<<<<<<<<<<<<<<<<<<< emi: Your proxy has 10h:59m:55s remaining ************************************************************************</verbatim> Then you should do the voms-proxy-init -voms atlas explicitly. Otherwise you do not. The idea is that everything needed is already setup and you should not need to explicitly setup grid middleware through rucio or other ways. ---+++ Help * =setupATLAS -c -h= to show container help * =setupATLAS -h= to show setupATLAS help options * =setupATLAS= followed by =helpMe= for links to documentation * =lsetup -h= for lsetup help * =lsetup -h <tool>= for lsetup help on a tool ---+++ Versions * =setupATLAS -c --showVersions= to show list of containers in /cvmfs/unpacked.cern.ch * =setupATLAS= and then =showVersions athena= to show available ATLAS releases * =setupATLAS= and then =showVersions root= to show ROOT versions (or any tool) ---+++ Using Rucio Clients * setupATLAS * lsetup rucio * get a proxy if needed (notice I do not setup grid middleware - it is automatically done): * voms-proxy-init --voms atlas * do the usual rucio commands. For details, refer to the links in helpMe * You should setup rucio in a terminal session of its own if possible. * However, if you need to setup rucio in the same setup as an ATLAS release, use the wrapper version: * =lsetup "rucio -w"= * you can set it all up on one line; e.g.: =lsetup "rucio -w" "asetup <release>"= ---+++ Using !PandaClient * setupATLAS (you can do this anytime - when you need it, or type printMenu) * lsetup panda * If you need an ATLAS release, you can set it up as follows (do not run pbook with an ATLAS release; set panda up in a new terminal to run that alone): * lsetup "asetup <athena version>" panda * use the pathena / prun / pbook tools as usual. * Notice that I did not setup grid-middleware anywhere and you should not either - Panda clients do it for you. * if a proxy is missing or invalid, the Panda clients will ask your password to generate it. ---+++ Advanced Users * =setupATLAS= followed by =advancedTools= shows more tools * For lcgenv or views, look at [[lcgenv][this page]] for details. * Note also the tools =installPip= and =installRpm= available from the advancedTools menu that allows you to install and reuse missing software for containers or bare-metal. Type =-h= for details. ---+++ xcache [[xcache]] allows for the caching of datafiles on a local disk; eg if you are accessing a file at a remote site through the root protocol, it can be cached at a specified location so that subsequent accesses will be very fast. For details, please click on the link. ---+++ Tutorials This is for tutorial conveners who want to ask users to test that their computer is ready to be used for tutorials. Please refer to [[setMeUp][this page]] for details. ---+++ Diagnostics Diagnostic tools offer a way for users and user support to understand issues; these are described in more detail [[diagnosticTools][here]]. ---++ How-to ---+++ Batch Jobs Bash does not expand aliases and so this is what you can do if you need to use the menu options in !ATLASLocalRootBase. Do one of these to overcome this: * Either do this in your script: <verbatim> if [ -z $ATLAS_LOCAL_ROOT_BASE ]; then export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase fi source $ATLAS_LOCAL_ROOT_BASE/user/atlasLocalSetup.sh # and the menu options will then be available</verbatim> * Or insert in your script: <verbatim> #!/bin/bash if [ -z $ATLAS_LOCAL_ROOT_BASE ]; then export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase fi shopt -s expand_aliases alias setupATLAS='source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh' setupATLAS #(the rest of your code should now work with the menu commands)</verbatim> ---++++ !SLURM Submit with the following option to prevent the local environment from being set on the batch job environment. sbatch --export=NONE ... ---++++ !LSF Submit with the following option to prevent the local environment from being set on the batch job environment. bsub -L /bin/bash ... -- Main.AsokaDeSilva - 24 Jun 2008</verbatim>
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r15
<
r14
<
r13
<
r12
<
r11
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r15 - 2026-10-05
-
AsokaDeSilva
AtlasCanada
Navigate ATLAS-Canada Wiki:
*
Home
* *
Activities
*
Analysis
Computing
Datasets
Getting Started
Grid Activities
*
Meetings
* *
People in ATLAS Canada
*
User Services
Travel To CERN
Wikis:
ATLAS
ATLAS Physics
Alberta
McGill
Montreal
SFU
Toronto
TRIUMF
UVic
ATLAS-Canada Institute Websites:
ATLAS-Canada
ATLAS Home
Alberta
UBC
Carleton
IPP
McGill
Montreal
SFU
Toronto
TRIUMF
UVic
York
Create New Topic
Search
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback