Useful Tips

Introduction

This page collects the most useful tips for users from ustc.

Setup CERN Kerberos On UI

Through Kerberos, you could connect to cern service with passwordless (like svn etc...)

  1. copy below config file,or get it from here:
    cp /lustre/AtlUser/lcq/Report/FileFromLxplus/krb5.conf ~/.ssh/
  2. add below information in ~/.ssh/config, change your_cern_account !!!
    Host *.cern.ch
     Protocol 2
     ForwardAgent no
     ForwardX11 yes
     GSSAPIAuthentication yes
     GSSAPIDelegateCredentials yes
     User your_cern_account
  3. set the environmant variable, change your_ui_account !!! everytime you want to use Kerberos in a fresh shell, don't forget this step.
    export KRB5_CONFIG=/home/your_ui_account/.ssh/krb5.conf 
  4. Have a test with the below commant. If everything goes well, you will get no return smile strongly recommend to start a fresh shell to perform this test.
  5. kinit your_cern_account@CERN.CH

Generate the grid proxy

voms-proxy-init -voms atlas -hours 99 -vomslife 99:00

TagAndProbe SVN repository

https://svnweb.cern.ch/cern/wsvn/atlasinst/Institutes/USTC/

STXS

HComb

https://twiki.cern.ch/twiki/bin/view/AtlasProtected/HiggsProperties

Hbb STXS

https://twiki.cern.ch/twiki/bin/viewauth/AtlasProtected/HiggsbbSTXS

WorkspaceCombiner

https://twiki.cern.ch/twiki/bin/viewauth/AtlasProtected/WorkspaceCombiner#Workspace_editing

Give access to any of your directories to specific users (chenc)

eos attr set user.acl="u:chenc:rx" /eos/atlas/user/c/changqia/

https://cernbox.web.cern.ch/cernbox/en/web/personal_website_content.html#create_personal_space

Git

tutorial

http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000

cheating sheet

https://www.git-tower.com/blog/git-cheat-sheet/

get the url of repository

git config --get remote.origin.url

untrack the file

git rm --cached -r .

Avoid being asked passphrase each time I push to Git

$ eval $(ssh-agent)
$ ssh-add

Afs access control:

#!/bin/bash
#$1 - path
#$2 - userid
find ${1} -type d -exec fs setacl -dir {} -acl ${2} rl \;

Webpage for analysis:

B-Tagging-Calibration

/eos/user/c/changqia/www/BTaggingCalibration

http://b-tagging-calibration.web.cern.ch/B-Tagging-Calibration

SM VHbb analysis

/eos/user/c/changqia/www/VHbbAnalysis

http://smvhbb.web.cern.ch/SMVHbb/

SM VHbb analysis fitting

/eos/user/c/changqia/www/VHbbFitting

http://smvhbbfitting.web.cern.ch/SMVHbbFitting/

SM VHbb analysis fitting NEW

/afs/cern.ch/user/c/changqia/www/vhbbfitting

http://vhbbfitting.web.cern.ch/vhbbfitting/

Edit | Attach | Watch | Print version | History: r22 < r21 < r20 < r19 < r18 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r19 - 2018-02-02 - ChangqiaoLi
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

  • Edit
  • Attach
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