Configuring your work environment on HEP01

add the following to your .bash_profile (in your home directory):

# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

 PATH=$PATH:$HOME/bin

 export PATH

add the following to your .bashrc file (in your home directory):

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

# User specific aliases and functions
export PYTHONSTARTUP="$HOME/.pythonrc.py"
#export http_proxy='srvcnthep001.uct.ac.za:3128' (giving errors recently)
#ATLAS Specific
export LC_CTYPE=en_ZA.UTF-8
export PATH
export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase
alias setupATLAS='source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh'

#optional
alias voms='voms-proxy-init -voms atlas:/atlas/za'
export XRD_STREAMTIMEOUT=300 #if you're going to download files using xrdcp

then at the command line type:

setupATLAS

Create, or edit .ssh/config in your home directory to include:


HOST lxplus*
#    HostName lxplus.cern.ch
        ForwardX11 yes
        GSSAPIAuthentication yes
        GSSAPIDelegateCredentials yes
        GSSAPITrustDNS yes
HOST hep*
#    HostName 
        ForwardX11 yes
        GSSAPIAuthentication yes
        GSSAPIDelegateCredentials yes
        GSSAPITrustDNS yes
-- Main.SahalYacoob - 2016-03-30

Some useful commands on HEP01:


In order to copy file "a.b" from directory"/eos/atlas/{}/a.b" get a VOMS proxy and then:

    lsetup xrootd  
    xrdcp root://eosatlas.cern.ch//eos/atlas/{}/a.b .  
In order to copy file "a.b" from directory"/eos/user/{}/a.b" get a VOMS proxy and a kerberos ticket and then:
    lsetup xrootd  
    xrdcp root://eosuser.cern.ch//eos/user/{}/a.b .  
to list the contents of a directory on eos (2 options given):
'xrd eosatlas.cern.ch dirlist /eos/atlas/{path}' (VOMS proxy required)
'xrd eosuser.cern.ch dirlist /eos/user/{path}' (kerberos ticket and VOMS proxy required)

Sahal has written a script in /atlas/temp_data/eos_get.py which can be used to download samples via xrdcp

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r7 - 2020-03-03 - SahalYacoob
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Atlas All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback