License : Creative Commons Attribution 4.0 International (CC BY-NC-SA 4.0)
Copyright :
Hervé Frezza-Buet, Jérémy Fix,
CentraleSupelec
Last modified : May 2, 2024 02:04
Link to the source : booking.md
Here are tips for booking and light maintenance, for teachers usually.
Booking requires to have an account on the Data Center d’Enseignement du Grand Est.
With your ssh account, log to the access node of the cluster (see the list at My ssh-ed remote account).
Then, from here, become root, and ssh on the cluster frontend.
Then inspire from the following commands
E.g. installation on the whole cluster skynet, cam and tx, from term2.grid :
mylogin@mymachine:~$ pdsh -Rssh -gsh -gcam -gtx "apt update; apt install -y somepackage"
E.g. installation on the whole cluster kyle and sarah from slurm1 :
mylogin@mymachine:~$ pdsh -Rssh -w kyle[00-68],sar[01-32] "apt update; apt install -y somepackage"
E.g. on term2.grid
mylogin@mymachine:~$ pdcp -Rssh -gsh mylocalfile /destination/path
If you want to easily administrate the accounts of the students, for example by copying some files on their home, adding your ssh key to the authorized keys of student accounts is useful.
Denote <password>
the password of the student accounts, and account_1
, … account_30
are the accounts. The access node is denoted by access.centralesupelec.fr
but you have to select the appropriate (see the list at My ssh-ed remote account).
mylogin@mymachine:~$ for i in {1..30}; do sshpass -p <password> ssh-copy-id account_$i@access.centralesupelec.fr; done
Then, for example, you could copy a file on the home of the students by
mylogin@mymachine:~$ for i in {1..30}; do scp myfile.tar.gz account_$i@access.centralesupelec.fr:~; done