- 
                Notifications
    You must be signed in to change notification settings 
- Fork 495
WSL BOINC Image
        Vitalii Koshura edited this page Dec 18, 2024 
        ·
        2 revisions
      
    This applies to the https://github.com/BOINC/WSL-DistroLauncher project maintainers only.
WSL 1 doesn't support Docker, so the WSL image should be created for WSL 2 only
- Download Ubuntu 24.04 LTS from the Microsoft Store
- Install Ubuntu 24.04 LTS
- Open Ubuntu 24.04 LTS
- When prompted to create a new user, create a new user boincwith passwordboinc
- Update the system
sudo apt update -y sudo apt upgrade -y 
- Install required packages
sudo apt install ca-certificates gnupg lsb-release curl -y 
- Install docker
sudo mkdir -p /etc/apt/keyrings sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg sudo echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt update -y sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y 
- Setup permissions
sudo groupadd docker sudo usermod -aG docker boinc 
- Cleanup
sudo apt autoclean -y sudo apt clean -y sudo apt autoremove -y sudo rm -rf /tmp/* sudo rm -rf /var/tmp/* sudo journalctl --vacuum-size 10M 
- Exit Ubuntu 24.04 LTS and wait until stopped
wsl.exe --list -v 
- Shutdown WSL if necessary
wsl.exe --shutdown 
- Export WSL
wsl.exe --export Ubuntu-24.04 install.tar.gz 
- Archive install.tar.gz into install.tar.gz.7z file using ultracompression and theLZMA2method
- Put install.tar.gz.7z into the WSL-DistroLauncherdirectory