Difference between revisions of "LHCb Software At Nikhef: Prepare for Workshop 22-24 June 2009"
Jump to navigation
Jump to search
Line 46: | Line 46: | ||
− | == Install a Virtual Machine on | + | == Install a Virtual Machine on laptop (windows): CernVM == |
See talk by Pere Mato, slide 14: | See talk by Pere Mato, slide 14: | ||
Line 76: | Line 76: | ||
Follow CernVM beginner's guide step by step: | Follow CernVM beginner's guide step by step: | ||
[https://twiki.cern.ch/twiki/bin/view/Atlas/CernVMGuideDetail CernVM beginner's guide] | [https://twiki.cern.ch/twiki/bin/view/Atlas/CernVMGuideDetail CernVM beginner's guide] | ||
+ | |||
+ | ''' 3) Start Exceed + SSH ''' | ||
+ | |||
+ | <pre> | ||
+ | Start exceed | ||
+ | start ssh | ||
+ | connect to vm with ssh to 192.168.204.128 | ||
+ | (Your number might be different!) | ||
+ | (fink tunnel x11 connections in ssh!) | ||
+ | </pre> | ||
+ | |||
+ | ''' 4) Configure CernVM ''' | ||
+ | |||
+ | <pre> | ||
+ | (once for configuring cernvm:) | ||
+ | back to instructions afs | ||
+ | sudo conary update openafs=1.4.8-1-1 | ||
+ | sudo conary update openafs-client=1.4.8-1-1 | ||
+ | sudo conary update openafs-kernel=1.4.8-1-1 | ||
+ | sudo /etc/init.d/afs start | ||
+ | </pre> | ||
+ | |||
+ | ''' 5) CernVM session on ssh ''' | ||
+ | |||
+ | <pre> | ||
+ | Never do: ls /opt/ !! (It could start caching all atlas software...) | ||
+ | |||
+ | kinit user@CERN.CH (capitals!) | ||
+ | cd /opt/lhcb | ||
+ | source /opt/lhcb/LbLogin.cshhcb/lhcb/GAUDI/GAUDI_v21r0 | ||
+ | python $GAUDIEXAMPLESROOT/python/HistoEx.py | ||
+ | SetupProject Bender v12r0 | ||
+ | cd $BENDEREXAMPLEROOT/python/BenderExample/ | ||
+ | ./Phi.py | ||
+ | |||
+ | ''' 6) Create shared data folder on your laptop ''' | ||
+ | |||
+ | <pre> | ||
+ | Make folder C:\Data | ||
+ | Change properties of C:\Data | ||
+ | -> sharing | ||
+ | -> network sharing without wizard | ||
+ | V share | ||
+ | name: Data | ||
+ | V allow | ||
+ | </pre> | ||
+ | |||
+ | <pre> | ||
+ | Edit configuration file (in C:\Program Files\CernVM ) | ||
+ | |||
+ | sharedFolder.maxNum = "1" | ||
+ | |||
+ | sharedFolder0.present = "TRUE" | ||
+ | sharedFolder0.enabled = "TRUE" | ||
+ | sharedFolder0.readAccess = "TRUE" | ||
+ | sharedFolder0.writeAccess = "TRUE" | ||
+ | sharedFolder0.hostPath = "C:\Data" | ||
+ | sharedFolder0.guestName = "data" | ||
+ | sharedFolder0.expiration = "session" | ||
+ | |||
+ | usb.autoConnect.device1 = "" | ||
+ | </pre> | ||
+ | |||
+ | <pre> | ||
+ | In VMware: | ||
+ | -> Share folders | ||
+ | -> o always enabled | ||
+ | </pre> | ||
+ | |||
+ | sudo ln -s /usr/sbin/mount.vmhgfs /sbin |
Revision as of 16:02, 28 May 2009
Your first time to run over a MicroDST at Nikhef
Prepare ssh on your Nikhef account
Follow these instructions: Configuring SSH access from Linux/Unix
Get software packages
mkdir cmtuser cd cmtuser setenv MYSITEROOT /project/bfys/lhcb/sw source $MYSITEROOT/lhcb/LBSCRIPTS/prod/InstallArea/scripts/LbLogin.csh --quiet --mysiteroot $MYSITEROOT SetupProject --build-env DaVinci v23r0p1 getpack Phys/DaVinci v23r0p1 cd ~/cmtuser/DaVinci_v23r0p1/Phys/DaVinci/cmt/ make
cd ~/cmtuser/DaVinci_v23r0p1/ getpack Ex/MicroDSTExample v2r3 cd ~/cmtuser/DaVinci_v23r0p1/Ex/MicroDSTExample/cmt cvs update -A cmt br cmt make
Loop over events
cd /data/bfys/h71/Workshop/ SetupProject DaVinci v23r0p1 python -i BfysWorkshopMicroDSTReader_1.1.py --input SeqDC06selBs2JpsiPhiWithMC_50.0_Kevt_NoPVReFit.dst
Plot
>>> massPlots.plots[443].Draw() >>> massPlots.plots[531].Draw() >>> massResPlots.plots[531].Draw() >>> propTimePlots.plots[531].Draw()
Install a Virtual Machine on laptop (windows): CernVM
See talk by Pere Mato, slide 14: 17 March 2009
CernVM beginner's guide: CernVM beginner's guide
1) Download VMware player under windows
Download from http://www.vmware.com/download/player/ Put CernVM in fixed place. For example C:\Program Files\CernVM Start vmplayer from desktop Open CernVM from C:\Program Files\CernVM Open in browser: http://192.168.204.128:8004/ (your number might be different!) Create account. For example: use lxplus username and password Virtual organization: lhcb Change memory allocation in vmware player -> troubleshoot -> change memory allocation -> 1024 GB
2) Start CernVM
Follow CernVM beginner's guide step by step: CernVM beginner's guide
3) Start Exceed + SSH
Start exceed start ssh connect to vm with ssh to 192.168.204.128 (Your number might be different!) (fink tunnel x11 connections in ssh!)
4) Configure CernVM
(once for configuring cernvm:) back to instructions afs sudo conary update openafs=1.4.8-1-1 sudo conary update openafs-client=1.4.8-1-1 sudo conary update openafs-kernel=1.4.8-1-1 sudo /etc/init.d/afs start
5) CernVM session on ssh
Never do: ls /opt/ !! (It could start caching all atlas software...) kinit user@CERN.CH (capitals!) cd /opt/lhcb source /opt/lhcb/LbLogin.cshhcb/lhcb/GAUDI/GAUDI_v21r0 python $GAUDIEXAMPLESROOT/python/HistoEx.py SetupProject Bender v12r0 cd $BENDEREXAMPLEROOT/python/BenderExample/ ./Phi.py ''' 6) Create shared data folder on your laptop ''' <pre> Make folder C:\Data Change properties of C:\Data -> sharing -> network sharing without wizard V share name: Data V allow
Edit configuration file (in C:\Program Files\CernVM ) sharedFolder.maxNum = "1" sharedFolder0.present = "TRUE" sharedFolder0.enabled = "TRUE" sharedFolder0.readAccess = "TRUE" sharedFolder0.writeAccess = "TRUE" sharedFolder0.hostPath = "C:\Data" sharedFolder0.guestName = "data" sharedFolder0.expiration = "session" usb.autoConnect.device1 = ""
In VMware: -> Share folders -> o always enabled
sudo ln -s /usr/sbin/mount.vmhgfs /sbin