Script for installing WSL on Windows 10 AME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.7 KiB

3 years ago
  1. # install-wsl
  2. Script for installing WSL on Windows 10 AME.
  3. ![install-wsl Screenshot](data/screenshot.png)
  4. ## Downloading and Running
  5. To get this script, simply head over to [releases](https://git.ameliorated.info/LoganDark/install-wsl/releases) and download the latest release. You can also clone this repo:
  6. git clone https://git.ameliorated.info/LoganDark/install-wsl.git
  7. To run a script in CMD or Powershell, enter the path of the script and press return:
  8. C:\Users\user> "Downloads\install-wsl\install-wsl.bat"
  9. You can also just double-click the .bat file, and it'll open the main menu (the one you can see in the screenshot). The script should not be run as administrator.
  10. ## Flags for Non-Interactive Installations
  11. This script also includes extra flags for non-interactive insallations. They can be viewed by specifying the `--help` flag.
  12. ```
  13. Usage: install-wsl.bat --help
  14. Displays all possible invocations of this script and brief descriptions of
  15. each.
  16. Usage: install-wsl.bat --install <distro> [--quiet]
  17. Begins installing the given distribution. If the --quiet flag is given then
  18. no output will be printed. If the Windows Subsystem for Linux is not
  19. installed, it will be enabled and a startup item will be created to resume
  20. the installation on reboot.
  21. Valid distributions:
  22. wslubuntu2004, wslubuntu2004arm, wsl-ubuntu-1804, wsl-ubuntu-1804-arm,
  23. wsl-ubuntu-1604, wsl-debian-gnulinux, wsl-kali-linux-new, wsl-opensuse-42,
  24. wsl-sles-12
  25. Usage: install-wsl.bat --cancel [--quiet]
  26. Cancels all pending installs. If the --quiet flag is given then no output
  27. will be printed.
  28. Usage: install-wsl.bat --windows-terminal
  29. Installs Windows Terminal using scoop.
  30. ```