From a6acc3148046313aca41addce584ad7f6eb62d96 Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 6 Aug 2024 14:36:20 -0500 Subject: [PATCH] update set up --- setup.md | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/setup.md b/setup.md index b8c5032..186f6c5 100644 --- a/setup.md +++ b/setup.md @@ -1,7 +1,62 @@ --- title: Setup --- -FIXME +## Setup the work area +Set up the CMSSW environment and clone the repository from github for the trigger exercise: + +~~~ +source /cvmfs/cms.cern.ch/cmsset_default.csh +setenv SCRAM_ARCH slc7_amd64_gcc700 +cd nobackup/ +cmsrel CMSSW_10_6_31_patch1 +cd CMSSW_10_6_31_patch1/src +cmsenv +git clone -b 2024 https://github.com/kakwok/LPCTriggerHATS.git +scram b -j 4 +~~~ +{: .language-bash} + +## Jupyter noteboooks + +If you want to use Jupyter notebooks on cmslpc, please review the content of your `~/.ssh/config` file on your system by executing: +~~~ + cat ~/.ssh/config +~~~ +{: .source} + +In case the file does already contain the following lines, add: +~~~ + Host cmslpc*.fnal.gov + StrictHostKeyChecking no + UserKnownHostsFile /dev/null +~~~ +{: .source} + +When you log into cmslpc, add a `-L` option to your ssh command: +### + ssh -L localhost:8888:localhost:8888 @cmslpc-el9.fnal.gov +~~~ +{: .source} + +Then you can make your area as detailed above and start Jupyter with this command: +~~~ + jupyter notebook --no-browser --port=8888 --ip 127.0.0.1 +~~~ +{: .source} + +After a pause (while cmslpc loads the necessary libraries for the first time) you should see a message like the following: +~~~ + [I 08:22:45.871 NotebookApp] Serving notebooks from local directory: /uscms_data/d2/pivarski/CMSSW_9_0_0_pre6/src + [I 08:22:45.871 NotebookApp] 0 active kernels + [I 08:22:45.871 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/?token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + [I 08:22:45.871 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). + [C 08:22:45.873 NotebookApp] + + Copy/paste this URL into your browser when you connect for the first time, + to login with a token: + http://localhost:8888/?token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +~~~ +{: .source} {% include links.md %}