Windows software installation

From 22115
Revision as of 13:08, 31 January 2026 by Gorm (talk | contribs)
Jump to navigation Jump to search

These are instructions for how to install software and data used on the course Computational Molecular Evolution (22115) when using the Windows operating system.


Windows 11

  1. Update Windows to latest version (necessary if you want to install WSL2): Windows Update
  2. Install WSL2:
    1. Start Windows Terminal as administrator, and then issue the following command (followed by RETURN):
    2. wsl --install
    3. More details: How to install WSL2 on Windows 10/11
  3. Set Ubuntu as default profile in Windows Terminal:
    1. Open Windows Terminal app
    2. Click down-arrow button on the top bar of the terminal window, and click Settings
    3. Select Startup --> Default profile --> Ubuntu
    4. Click Save, and close settings.
  4. Set Ubuntu home directory as starting directory for Windows Terminal
    1. In Windows Terminal running Ubuntu:
    2. echo "cd ~" >> ~/.profile
  5. Install Linux software:
    1. Start Ubuntu in your Windows Terminal
    2. Follow instructions on Linux software installation page

Windows 10

Installing and running Windows Subsystem for Linux 2 (WSL2) is simpler on Windows 11. We therefore recommend that you upgrade to Windows 11 if possible. If you can't upgrade to windows 11, then follow the instructions for Windows 10.

  1. Update Windows to latest version (necessary if you want to install WSL2): Windows Update
  2. Install Windows Terminal from Microsoft Store (free): Windows Terminal
  3. Install WSL2:
    1. Start Windows Terminal as administrator, and then issue the following command (followed by RETURN):
    2. wsl --install
    3. More details: How to install WSL2 on Windows 10/11
  4. Install VcXsrv X-server:
    1. Follow instructions here: How to use GUI apps in WSL2 (forwarding X server)
    2. When you need to use linux with graphical user interface software: Start the X-server by clicking Xlaunch (and just let it run in the background)
  5. Set Ubuntu as default profile in Windows Terminal:
    1. Open Windows Terminal app
    2. Click down-arrow button on the top bar of the terminal window, and click Settings
    3. Select Startup --> Default profile --> Ubuntu
    4. Click Save, and close settings.
  6. Set Ubuntu home directory as starting directory for Windows Terminal
    1. In Windows Terminal running Ubuntu:
    2. echo "cd ~" >> ~/.profile
  7. Install Linux software:
    1. Start Ubuntu in your Windows Terminal
    2. Follow instructions on Linux software installation page

Troubleshooting

Windows Subsystem for Linux

R + RStudio: consider running Windows version instead of Linux version