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
  6. AFS+KRB5: https://frankenthal.dev/post/afs-kerberos-on-macos/

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

Useful twiki link

HComb group

VHbb group

workspace

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

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

Download sample on eos:

https://cern.service-now.com/service-portal/article.do?n=KB0001998

Rucio usage

https://twiki.cern.ch/twiki/bin/viewauth/AtlasComputing/RucioClientsHowTo#Create_a_dataset_from_files_on_m

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:

Apply a personal Website

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

SM VHbb analysis

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

B-Tagging-Calibration

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

SM VHbb analysis fitting NEW

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

SM VHbb analysis fitting

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

Edit | Attach | Watch | Print version | History: r22 < r21 < r20 < r19 < r18 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r22 - 2021-04-15 - ChangqiaoLi
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2023 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