Notes for Linux and WSL users

Notes for Linux and WSL users#

Warning

If you use macOS, you can skip this page and directly step to the next subject.

Most Linux distributions are based on tools to install software in the system. For example, Debian and Debian based distributions (like Ubuntu and Mint) use the command line apt. Others Linux distributions use other tools but we will focus here on apt.

After a fresh install of Ubuntu (like with WSL), it’s important to upgrade the packages of the system by launching in a terminal the following commands:

sudo apt update
sudo apt upgrade

Then, one can install other packages with commands starting with sudo apt install. For example, we advise to install the package curl (which is sometimes used in tutorials and is not present by default) with

sudo apt install curl

We can also install few applications and libraries useful for scientific computing:

sudo apt install \
  clang gfortran make cmake \
  libpng-dev libfftw3-dev libfftw3-mpi-dev \
  libhdf5-dev libopenmpi-dev libopenblas-dev