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...)
- copy below config file,or get it from here
:
cp /lustre/AtlUser/lcq/Report/FileFromLxplus/krb5.conf ~/.ssh/
- 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
- 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
- Have a test with the below commant. If everything goes well, you will get no return
strongly recommend to start a fresh shell to perform this test.
-
kinit your_cern_account@CERN.CH
- AFS+KRB5: https://frankenthal.dev/post/afs-kerberos-on-macos/
Generate the grid proxy
voms-proxy-init -voms atlas -hours 99 -vomslife 99:00
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
|