Controlling local and remote machines
cd
, ls
, cp
, mv
, and rm
provide all features of a graphical file manager (e.g. Finder)info <command>
for more informationYou can bundle commands in a shell script, e.g.:
Running the script will execute the commands sequentially:
Supercomputers consist of various components
High-performance computers consist of various components
Different ways to work on a cluster depending on the task:
salloc
/sbatch
)Connect to the login nodes via secure shell (ssh
)
(use your user id instead of a123456)
Now you have access to the command line on levante
Generate a private / public ssh key pair for authentication on your local system
Upload the public (.pub
) key to your DKRZ profile (instructions), so levante can check your connection attempts
Use your private ssh key instead of your password when connecting to levante
Create a config file for convenience
~/.ssh/config
(call man ssh_config
for more info)
The connection to levante simplifies to
The configuration is used by all tools using an ssh connection (more than you think)
There are different tools to transfer between your local machine and a remote server
For single files, a simple scp
is sufficient
rsync
is a more powerful alternative
There are different tools to transfer between your local machine and a remote server
For single files, a simple scp
is sufficient
rsync
is a more powerful alternative with more options
/home |
/work |
/scratch |
---|---|---|
keep scripts | store output | temporary stuff |
small | big | big |
SSD | HDD | HDD |
backuped | no backup | deleted after 2 weeks |
We all lost data to /scratch
, many killed something on /work
Jobs that require more resources or run longer can be submitted to the job scheduler (SLURM)
There are dedicated partitions for different use cases (e.g., compute
, shared
, interactive
, …)
Try to use the smallest amount of resources (e.g. shared
with --mem=50G
)
ssh
) one can login to Levante and use it as any other machineI am just gonna throw a bunch of stuff at you. Take what you might find interesting. — Scott Chacon
tmux
enables to create and (re)attach to terminal sessions
Crate a new session
Attach to to running sessions
You need to login to the same login node (e.g., levante3
1)
You can use X-forwarding to forward graphical user interfaces (GUIs) from the server
Install an X-server on your local machine (e.g. XQuartz)
Pass the -X
option to your ssh
command1