-
Notifications
You must be signed in to change notification settings - Fork 160
Installing on Windows Subsystem for Linux
Alexander G. Zimmerman edited this page May 17, 2019
·
5 revisions
-
Follow the instructions here to install Ubuntu Linux on your Windows 10 machine using the Windows Subsystem for Linux (WSL).
-
Ensure your Ubuntu installation is up to date.
Run the following commands at the bash prompt:
sudo apt update
sudo apt upgrade
- Install Firedrake using the instructions here.
- Set up X forwarding.
If you want to have any gui (e.g. plotting), you need to set up X forwarding. This is not supported by Windows yet, but can be set up following the instructions here.
- Download Xming from here, default settings are fine.
- run the following command before running graphical commands:
export DISPLAY=:0
- You will probably wish to add that line to your
.bashrc
to avoid typing that command every time. - If you want Xming to auto-run when you start, it is helpful
to put these lines in your .bashrc:export PATH = $PATH:/mnt/c/<path to Xming folder> "/mnt/c/<path to Xming.exe in your Xming folder>" :0 - clipboard -multiwindow &> /dev/null
- Without something like those lines, you have to run Xming from the Windows side each time you want to use it
- General Tips:
- If you need to edit Windows files from the Linux side, your C: drive is located at /mnt/c
- Because C: is mounted at /mnt/c, build systems can mistakenly pick up libraries which are installed on Windows. For example it has been observed both on Ubuntu 16.04 and 18.04 (using WSL) that having Anaconda for Python installed at C: can break firedrake-install, as documented in this issue. While a more elegant solution may exist, it works well to unmount /mnt/c/ before installing Firedrake, and mounting it again afterward:
sudo umount /mnt/c python3 firedrake-install sudo mount -t drvfs 'C:\' /mnt/c -o metadata
- Editing Linux files from Windows is not recommended.
- The default behavior for the terminal (which allows copy and pasting between Windows and Linux) also pauses whatever process is running in the terminal if you have anything selected (e.g. if you are running the firedrake install and click on the terminal, it will pause but not tell you) Just press some key while on the terminal to de-select and get it running again - You can change this by right-clicking on the top bar selecting Properties, and under General disabling Quick-Edit mode. Keep in mind that this may also disable copy and paste. - From Properties you can also change text size/font, and other things
author: Ben Sepanski (alternative email)
Thanks also to Rob Kirby.
Building locally
Tips
- Running Firedrake tests with different subpackage branches
- Modifying and Rebuilding PETSc and petsc4py
- Vectorisation
- Debugging C kernels with
lldb
on MacOS - Parallel MPI Debugging with
tmux-mpi
,pdb
andgdb
- Parallel MPI Debugging with VSCode and
debugpy
- Modifying generated code
- Kernel profiling with LIKWID
- breakpoint() builtin not working
- Debugging pytest with multiple processing
Developers Notes
- Upcoming meeting 2024-08-21
- 2024-08-07
- 2024-07-24
- 2024-07-17
- 2024-07-10
- 2024-06-26
- 2024-06-19
- 2024-06-05
- 2024-05-29
- 2024-05-15
- 2024-05-08
- 2024-05-01
- 2024-04-28
- 2024-04-17
- 2024-04-10
- 2024-04-03
- 2024-03-27
- 2024-03-20
- 2024-03-06
- 2024-02-28
- 2024-02-28
- 2024-02-21
- 2024-02-14
- 2024-02-07
- 2024-01-31
- 2024-01-24
- 2024-01-17
- 2024-01-10
- 2023-12-13
- 2023-12-06
- 2023-11-29
- 2023-11-22
- 2023-11-15
- 2023-11-08
- 2023-11-01
- 2023-10-25
- 2023-10-18
- 2023-10-11
- 2023-10-04
- 2023-09-27
- 2023-09-20
- 2023-09-06
- 2023-08-30
- 2023-08-23
- 2023-07-12
- 2023-07-05
- 2023-06-21
- 2023-06-14
- 2023-06-07
- 2023-05-17
- 2023-05-10
- 2023-03-08
- 2023-02-22
- 2023-02-15
- 2023-02-08
- 2023-01-18
- 2023-01-11
- 2023-12-14
- 2022-12-07
- 2022-11-23
- 2022-11-16
- 2022-11-09
- 2022-11-02
- 2022-10-26
- 2022-10-12
- 2022-10-05
- 2022-09-28
- 2022-09-21
- 2022-09-14
- 2022-09-07
- 2022-08-25
- 2022-08-11
- 2022-08-04
- 2022-07-28
- 2022-07-21
- 2022-07-07
- 2022-06-30
- 2022-06-23
- 2022-06-16
- 2022-05-26
- 2022-05-19
- 2022-05-12
- 2022-05-05
- 2022-04-21
- 2022-04-07
- 2022-03-17
- 2022-03-03
- 2022-02-24
- 2022-02-10
- 2022-02-03
- 2022-01-27
- 2022-01-20
- 2022-01-13
- 2021-12-15
- 2021-12-09
- 2021-11-25
- 2021-11-18
- 2021-11-11
- 2021-11-04
- 2021-10-28
- 2021-10-21
- 2021-10-14
- 2021-10-07
- 2021-09-30
- 2021-09-23
- 2021-09-09
- 2021-09-02
- 2021-08-26
- 2021-08-18
- 2021-08-11
- 2021-08-04
- 2021-07-28
- 2021-07-21
- 2021-07-14
- 2021-07-07
- 2021-06-30
- 2021-06-23
- 2021-06-16
- 2021-06-09
- 2021-06-02
- 2021-05-19
- 2021-05-12
- 2021-05-05
- 2021-04-28
- 2021-04-21
- 2021-04-14
- 2021-04-07
- 2021-03-17
- 2021-03-10
- 2021-02-24
- 2021-02-17
- 2021-02-10
- 2021-02-03
- 2021-01-27
- 2021-01-20
- 2021-01-13
- 2021-01-06