-
Notifications
You must be signed in to change notification settings - Fork 452
WSL BOINC Image
Vitalii Koshura edited this page Dec 17, 2024
·
1 revision
This applies to the https://github.com/BOINC/WSL-DistroLauncher project maintainers 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
boinc
with 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
- Downgrade WSL to version 1
wsl.exe --set-version Ubuntu-24.04 1
- Export WSL
wsl.exe --export Ubuntu-24.04 install.tar.gz
- Archive install.tar.gz into install.tar.gz.7z file using
ultra
compression and theLZMA2
method - Put install.tar.gz.7z into the
WSL-DistroLauncher
directory