Hands-on training for analysing Oxford Nanopore Technologies (ONT) sequencing data for microbial pathogen detection
This guide will help you install WSL on Windows to run Linux-based bioinformatics tools.
wsl --install
Restart your computer when prompted
After restart, Ubuntu will automatically install and ask you to:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Restart your computer
wsl --set-default-version 2
Before proceeding with the installation, it’s important to ensure your system packages are up to date. This step updates the package lists and upgrades all installed packages to their latest versions.
# Refresh the package index,
sudo apt update
# Perform the actual upgrade with automatic confirmation (`-y` flag).
sudo apt upgrade -y
sudo apt install -y build-essential curl wget git vim nano unzip ca-certificates
# Check Ubuntu version
lsb_release -a
# Check available disk space
df -h
# Check WSL version
wsl --list --verbose
Your Windows drives are mounted under /mnt/:
# Access C: drive
cd /mnt/c/
# Access D: drive
cd /mnt/d/
# Navigate to your Documents folder
cd /mnt/c/Users/YOUR_USERNAME/Documents/
In Windows File Explorer, type:
\\wsl$\Ubuntu\home\YOUR_USERNAME
Or access via:
Solution: Download and install the WSL2 kernel update from https://aka.ms/wsl2kernel
Solution:
# Reset WSL
wsl --shutdown
wsl --unregister Ubuntu-22.04
wsl --install
Solution: Ensure virtualization is enabled in BIOS/UEFI settings
Solution: Ensure you’re using WSL2, not WSL1
wsl --set-version Ubuntu-22.04 2