- Log to one of the multiple computer of the m2psa
ssh username@sbgli[1..20].in2p3.fr
- N.B: choose a (small) number between 1 and 20. If an error occurs, try another number. In fact, many users can be connected, you have to choose a free one. You will have to enter your password later. Example:
ssh [email protected]
- N.B: choose a (small) number between 1 and 20. If an error occurs, try another number. In fact, many users can be connected, you have to choose a free one. You will have to enter your password later. Example:
- Log to a specific environment
ssh sbglmd[1..20]
- Launch the ROOT environment
source /scratch/jcerasol/root_course/setup_root.sh
- Create a new repository wherever you want, let's call it
TIPP
mkdir TIPP
- Init a git session
git init
- Clone the git repository.
- Try :
git clone [email protected]:roronoarapha/JUNO.git
- N.B: Maybe you will have to generate a ssh key, so do :
ssh-keygen
- If that doesn't work, use :
git clone https://github.com/roronoarapha/JUNO.git
- Try :
- JUNO
- bin/
- build/
- include/
- fonctions.h
- plotter.h
- src/
- main.cpp
- fonctions.cpp
- plotter.cpp
- output/
- CMakeList.txt
-
Go in JUNO, do
cd JUNO
-
To see all the available branches, do :
git branch -a
-
The branch name with a star is the current branch. Example :
*main remotes/origin/HEAD -> origin/main remotes/origin/main remotes/origin/model_sigma remotes/origin/newfeature/rootgraph`
-
(optional, your already are on the main branch) Got a remote branch in local. Example :
git checkout -b newfeature/rootgraph origin/newfeature/rootgraph
- Be sure you are in the JUNO folder
- Go in the folder
build
- For a first use, trash its contain
rm -r *
- N.B Do not use this command line without thinking n times about what you want to do
- From here, you can also trash the output folder, do
rm ../output/*
- Generate a Makefile associated to the project with
cmake ..
- Create an executable with
make
- Execute the code with
../bin/monExe
- Check the output folder to got some graphics
- Check your screen output to got some informations
- Here are some few steps to download the contain of the output folder in your personal computer
- Assuming you are in the folder build, do :
cd ../output
- Do
pwd
to got your current absolute path, let's call it/remote_output_path
- Open a new terminal on your local computer
- Choose a directory where you can save the results of our project (example:
/home/TIPP_2024/TIPP_Raphael_Felix/output
) - Enter in this directory
- From there, do :
scp [email protected]:/remote_output_path/* ./
. You will have to enter your password.
- Assuming you are in the folder build, do :