How to configure your laptop to ease access to the clusters.

Besides installing one or two programs, there is no reason why you would not be able to connect and use the clusters from your laptop or desktop computer. But, as the clusters are running Linux, things go smoother if your laptop is also running Linux.

If you have a Linux computer...

... then things are made easier as you can set up your laptop just like the clusters are configured and hence have an homogeneous experience running your experiments and analysing your results.

Linux comes with all your need to connect to the cluster with your SSH Key. Just get accustomed to the notion of Agent Forwarding and Key Management software such as Key Ring and KWallet and you will never have to type in a passphrase again, even to copy files from one cluster to another. If you prefer a command-line solution, Keychain is a good alternative..

If you have customized your Bash environment, you can simply copy your .bashrc and .bash_profile (or the equivalent) file to the cluster and feel like home out there.

Copying data is done easily with the rsync command, and managing your code is done effectively with a tool such as Mercurial or Git.

One major difference, though, is that, on your laptop, you will most probably install software using packages (typically rpms or debs). On the cluster, you will not be able to do that. You will need to compile the software from sources. So it can be wise to take the habit of recompiling all the software you use on your laptop so that you have sufficient experience doing it on the cluster. Compiling several versions of the gcc compiler and getting them to co-exist peacefully is a very good exercise. It furthermore allows you to install the same version as is installed on the cluster so your compilation tests are consistent.

Note that most clusters run REHL, or a derivative such as CentOS or Scientific Linux, or Debian. Those are proffered over more up-to-date-but-less-stable distributions as Ubuntu or Fedora.

If you have a Windows computer...

… then you will need to install some software no matter what. One option is to just install what is needed to connect to the clusters, namely an SSH program and an SFTP program, as explained here.

Another option is to install UNIX-like tools on your windows machine, such as Cygwin or Mingw.

Of course, you still have the possibility to install Linux as a dual boot: every Linux distribution will allow you to do so effortlessly.

A final option, discussed here, is to install a Linux virtual machine, for instance with software such as Virtual Box. This option is very interesting if you do not have administrator privileges in your computer. Just ask to have that software installed, and, within it, you will have no restriction in your Linux virtual machine. It furthermore allows you to save the state of your machine, which is interesting for full system backups and migration to another computer. The downside is that you will need a fairly strong hardware configuration, especially if you plan on using several virtual machines in parallel (for instance to debug MPI programs)..

If you have a Mac...

... then you are nearly as comfortable as if you had a Linux, except that standard libraries are different, and differently organized so compiling will be a different experience. Still, you can install Linux in a Virtual Machine, or install a dual boot.

© CÉCI.