Skip to content

Commit

Permalink
Merge pull request #279 from nunix/patch-1
Browse files Browse the repository at this point in the history
Added step for setting the Windows PATH variable
  • Loading branch information
Ben Hillis committed Oct 29, 2018
2 parents e666ef9 + 046f432 commit 7bb376a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion WSL/install-on-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Now that you've downloaded a distro, extract its contents and manually install t

> Make sure your target directory (`~/Ubuntu` in this example) is on your system drive. Usually this is your `C:` drive. For example: `C:\Distros\Ubuntu`
1. Run the distro launcher
2. Run the distro launcher
To complete installation, run the distro launcher application in the target folder, named `<distro>.exe`. For example: `ubuntu.exe`, etc.

![Expanded Ubuntu distro on Windows Server](media/server-appx-expand.png)
Expand All @@ -53,5 +53,13 @@ Now that you've downloaded a distro, extract its contents and manually install t
> * **Installation failed with error 0x8007007e**: This error occurs when your system doesn't support WSL. Make sure that:
> * You're running Windows build 16215 or later. [Check your build](troubleshooting.md#check-your-build-number).
> * The Windows Subsystem for Linux optional component is enabled and the computer has restarted. [Make sure WSL is enabled](troubleshooting.md#confirm-wsl-is-enabled).
3. Add your distro path to the Windows environment PATH (`C:\Distros\Ubuntu` in this example), e.g. using Powershell:

``` PowerShell
$userenv = [System.Environment]::GetEnvironmentVariable("Path", "User")
[System.Environment]::SetEnvironmentVariable("PATH", $userenv + "C:\Distros\Ubuntu", "User")
```
You can now launch your distro from any path by typing `<distro>.exe`. For example: `ubuntu.exe`

Now that your Linux distro is installed, you must [initialize your new distro instance](initialize-distro.md) before using your distro.

0 comments on commit 7bb376a

Please sign in to comment.