WSL Auto Rice Bootstrap Scripts
This is a set of scripts that will automatically setup a WSL with all the programs needed. It works with Fedora & Ubuntu.
- Clone this repository
- Optional: modify the list of programs in the
programs
file - Run the
install.sh
script - Use the WSL
Your organization may have its own CA certificates. You can add them to the WSL by putting them in the ca-certificates
directory. The install.sh
script will automatically copy them to the right place. Just make sure the files are in the right format (.crt
).
chmod x change_dns.sh
./change_dns.sh
If you have DNS issues, you can try to change the DNS server in the /etc/resolv.conf
file.
You can find script here that would do that for you, just specify DNS servers you want in custom_dns_servers.txt
file.
Then:
chmod x change_dns.sh
./change_dns.sh
You need to have WSL installed. If you don't have it, you can install it by following the instructions here.
TL;DR: Open PowerShell as Administrator and run:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Then install wsl itself:
wsl --install
Set WSL 2 as the default version:
wsl --set-default-version 2
This is where you probably need to restart your PC
Then select a distro:
wsl --list --online
And install it:
wsl --install -d <distro>