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.

42 lines
1.5 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 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. ## Flags for non-interactive Installations
  10. This script also includes extra flags for non-interactive insallations. They can be viewed by specifying the `--help` flag.
  11. ```
  12. Usage: install-wsl.bat --help
  13. Displays all possible invocations of this script and brief descriptions of
  14. each.
  15. Usage: install-wsl.bat --install <distro> [--quiet]
  16. Begins installing the given distribution. If the --quiet flag is given then
  17. no output will be printed. If the Windows Subsystem for Linux is not
  18. installed, it will be enabled and a startup item will be created to resume
  19. the installation on reboot.
  20. Valid distributions:
  21. wslubuntu2004, wslubuntu2004arm, wsl-ubuntu-1804, wsl-ubuntu-1804-arm,
  22. wsl-ubuntu-1604, wsl-debian-gnulinux, wsl-kali-linux-new, wsl-opensuse-42,
  23. wsl-sles-12
  24. Usage: install-wsl.bat --cancel [--quiet]
  25. Cancels all pending installs. If the --quiet flag is given then no output
  26. will be printed.
  27. Usage: install-wsl.bat --windows-terminal
  28. Installs Windows Terminal using scoop.
  29. ```