Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/live'
Browse files Browse the repository at this point in the history
  • Loading branch information
scooley committed Nov 16, 2017
2 parents 6abd78f + c930453 commit c730836
Show file tree
Hide file tree
Showing 17 changed files with 1,699 additions and 1,690 deletions.
6 changes: 3 additions & 3 deletions commandline/WSL/TOC.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

# [About the Windows Subsystem for Linux](./about.md)
# [Install on Windows 10](./install_guide.md)
# [Install on Windows 10](./install-win10.md)
# [Install on Windows Server](./install-on-server.md)
# [User account and permissions](./user_support.md)
# [User account and permissions](./user-support.md)
# [Multi-distro management](./wsl-config.md)
# [Interoperability](./interop.md)
# [Frequently Asked Questions](./faq.md)
# [Troubleshooting](./troubleshooting.md)
# [Release Notes](./release_notes.md)
# [Release Notes](./release-notes.md)
1 change: 1 addition & 0 deletions commandline/WSL/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Learn about the Windows Subsystem for Linux
description: Learn more about how the Windows Subsystem for Linux works.
keywords: BashOnWindows, bash, wsl, windows, windowssubsystem
author: scooley
ms.author: scooley
ms.date: 7/11/2016
ms.topic: article
ms.prod: windows-subsystem-for-linux
Expand Down
26 changes: 0 additions & 26 deletions commandline/WSL/architectural_overview.md

This file was deleted.

1 change: 1 addition & 0 deletions commandline/WSL/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Frequently Asked Questions (FAQ)
description: Frequently Asked Questions about the Windows Subsystem for Linux.
keywords: BashOnWindows, bash, wsl, windows, windowssubsystem
author: scooley
ms.author: scooley
ms.date: 7/31/2017
ms.topic: article
ms.prod: windows-subsystem-for-linux
Expand Down
4 changes: 2 additions & 2 deletions commandline/WSL/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
redirect_url: https://msdn.microsoft.com/commandline/wsl/about
---
redirect_url: about
---
54 changes: 8 additions & 46 deletions commandline/WSL/install-on-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ title: Install the Linux Subsystem on Windows Server
description: Installation instructions for the Linux Subsystem on Windows Server.
keywords: BashOnWindows, bash, wsl, windows, windows subsystem for linux, windowssubsystem, ubuntu, windows server
author: scooley
ms.date: 7/11/2017
ms.author: scooley
ms.date: 11/15/2017
ms.topic: article
ms.prod: windows-subsystem-for-linux
ms.service: windows-subsystem-for-linux
Expand All @@ -12,48 +13,9 @@ ms.assetid: 9281ffa2-4fa9-4078-bf6f-b51c967617e3

# Windows Server Installation Guide

At //Build2017, Microsoft announced that Windows Subsystem for Linux will be [available on Windows Server](https://blogs.technet.microsoft.com/hybridcloud/2017/05/10/windows-server-for-developers-news-from-microsoft-build-2017/). These instructions help you become a Windows Insider, download Windows Server, and get Linux running on the Windows Subsystem for Linux.
> Applies to Windows Server 1709 and later
## Prerequisites

Windows Server (build 16215+). Right now, that means a Windows Insider's build.

Already have Windows Server preview? [Skip ahead](install-on-server.md#enable-the-windows-subsystem-for-linux).

### Join Windows Insiders and Download Windows Server

1. Join a Windows Insiders program:
* [Windows Insiders](https://insider.windows.com)
* [Windows Insiders for Business](https://insider.windows.com/ForBusiness)

2. Download [Windows Server - Insider Preview](https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewserver).
Make sure you're logged in, images are only available to Windows Insiders.

### Set up Windows Server

Now that you have a Windows Server image (.iso), install Windows Server on a physical computer or a virtual machine. I'm going to use a virtual machine on Hyper-V.

Here are instructions for [enabling Hyper-V](https://docs.microsoft.com/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v) and [creating a new virtual machine from an .iso](https://docs.microsoft.com/virtualization/hyper-v-on-windows/quick-start/quick-create-virtual-machine).

During installation, Windows Server will ask for a product key. The following keys are available for unlimited activations of Windows Server (pre-release builds only). These keys may be used throughout the pre-release cycle. Read more [here](https://blogs.windows.com/windowsexperience/2017/07/13/announcing-windows-server-insider-preview-build-16237).
* Server Datacenter Core: B69WH-PRNHK-BXVK3-P9XF7-XD84W
* Server Standard Core: V6N4W-86M3X-J77X3-JF6XW-D9PRV

When you're done, you should see something like this:
![](media/WindowsServer.png)

### Check your build number

To find your Windows Server build number, run the following in PowerShell:
``` PowerShell
systeminfo | Select-String "^OS Name","^OS Version"
```

You can also confirm that your build has the Windows Subsystem for Linux by running the following in PowerShell:
``` PowerShell
PowerShell
Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
```
At //Build2017, Microsoft announced that Windows Subsystem for Linux will be [available on Windows Server](https://blogs.technet.microsoft.com/hybridcloud/2017/05/10/windows-server-for-developers-news-from-microsoft-build-2017/). These instructions walk through running on the Windows Subsystem for Linux on Windows Server 1709 and later.

## Enable the Windows Subsystem for Linux
Enable the "Windows Subsystem for Linux" optional feature and reboot.
Expand Down Expand Up @@ -101,14 +63,14 @@ Enable the "Windows Subsystem for Linux" optional feature and reboot.
> **Troubleshooting: 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](install_guide.md#prerequisites).
> * The Windows Subsystem for Linux optional component is enabled and the computer has restarted. [Instructions here](install_guide.md#install-the-windows-subsystem-for-linux).
> * 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).
4. Create a UNIX user
The first time you install the Windows Subsystem for Linux, you will be prompted to create a UNIX username and password.
This UNIX username and password can be different from, and has no relationship to, your Windows username and password. [Learn more about your UNIX account.](https://msdn.microsoft.com/en-us/commandline/wsl/user_support).
This UNIX username and password can be different from, and has no relationship to, your Windows username and password. [Learn more about your UNIX account.](user-support.md).
5. Run distro's preferred update/upgrade.
Expand All @@ -119,4 +81,4 @@ Enable the "Windows Subsystem for Linux" optional feature and reboot.
You're done! Go use your new Linux environment!
![](media/server-cowsay.png)
![](media/server-cowsay.png)
88 changes: 88 additions & 0 deletions commandline/WSL/install-win10.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
---
title: Install the Linux Subsystem on Windows 10
description: Installation instructions for the Linux Subsystem on Windows 10.
keywords: BashOnWindows, bash, wsl, windows, windows subsystem for linux, windowssubsystem, ubuntu, windows 10
author: scooley
ms.author: scooley
ms.date: 7/11/2017
ms.topic: article
ms.prod: windows-subsystem-for-linux
ms.service: windows-subsystem-for-linux
ms.assetid: 7afaeacf-435a-4e58-bff0-a9f0d75b8a51
---

# Windows 10 Installation Guide

## Install the Windows Subsystem for Linux
Enable the "Windows Subsystem for Linux" optional feature and reboot.

1. Open PowerShell as Administrator and run:
``` PowerShell
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
```
2. Restart your computer when prompted.
## Fall Creators Update and later: Install from the Windows Store
> This section is for Windows Insiders (build 16215 or later). Follow these steps to [Check your build](troubleshooting.md#check-your-build-number). For earlier versions of Windows 10, follow [these instructions using lxrun](install-win10.md#for-anniversary-update-and-creators-update-install-using-lxrun).
1. Open the Windows Store and choose your favorite Linux distribution.
Here are links directly to the store installers:
* [Ubuntu](https://www.microsoft.com/store/p/ubuntu/9nblggh4msv6)
* [OpenSUSE](https://www.microsoft.com/store/apps/9njvjts82tjx)
* [SLES](https://www.microsoft.com/store/apps/9p32mwbh6cns)
![](media/UbuntuStore.png)
2. Select "Get"
> **Troubleshooting: Installation failed with error 0x80070003**
> The Windows Subsystem for Linux only runs on your system drive (usually this is your C: drive). Make sure that new apps are stored on your system drive.
> Open **Settings** -> **Storage** -> **More Storage Settings: Change where new content is saved**
> ![](media/AppStorage.png)
3. Once the download has completed, select "Launch".
This will open a console window. Wait for installation to complete then you will be prompted to create your UNIX user account.
![](media/UbuntuInstall.png)
> **Troubleshooting: Installation failed with error 0x8007007e**
> This error occurs when your system doesn't support Linux from the store. 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).
5. Create your UNIX username and password. This user account can be different from, and has no relationship to, your Windows username and password. [Read more](user-support.md).
You're done! Now you can use your Linux environment.
## For Anniversary Update and Creators Update: Install using lxrun
lxrun installs Ubuntu user-mode by default on top of the Windows subsystem for Linux.
> Since moving to the store, we have stopped keeping this user-mode image up to date. When you're done, run `apt-get update`.
1. Turn on Developer Mode
Open **Settings** -> **Update and Security** -> **For developers**
Select the Developer Mode radio button
![](media/updateAndSecurity.png)
2. Open a command prompt. Run `bash`
![](media/bashShellInstall.png)
After you have accepted the License, the Ubuntu user-mode image will be downloaded and extracted. A "Bash on Ubuntu on Windows" shortcut will be added to your start menu.
3. Launch a new Ubuntu shell by either:
* Running `bash` from a command-prompt
* Clicking the start menu shortcut
4. Create a UNIX user
The first time you install the Windows subsystem for Linux, you will be prompted to create a UNIX username and password.
![](media/new-user.png)
This UNIX username and password can be different from, and has no relationship to, your Windows username and password. [Learn more about your UNIX account.](user-support.md).
After installation your Linux distribution will be located at: `%localappdata%\lxss\`.
99 changes: 1 addition & 98 deletions commandline/WSL/install_guide.md
Original file line number Diff line number Diff line change
@@ -1,100 +1,3 @@
---
title: Install the Linux Subsystem on Windows 10
description: Installation instructions for the Linux Subsystem on Windows 10.
keywords: BashOnWindows, bash, wsl, windows, windows subsystem for linux, windowssubsystem, ubuntu, windows 10
author: scooley
ms.date: 7/11/2017
ms.topic: article
ms.prod: windows-subsystem-for-linux
ms.service: windows-subsystem-for-linux
ms.assetid: 7afaeacf-435a-4e58-bff0-a9f0d75b8a51
redirect_url: install-win10
---

# Windows 10 Installation Guide

## Prerequisites
Your PC must be running a 64-bit version of Windows 10 Anniversary Update or later (build 1607+).

To find your PC's architecture and Windows build number, open
**Settings** > **System** > **About**

Look for the **OS Build** and **System Type** fields.
![](media/system.png)

## Install the Windows Subsystem for Linux
Enable the "Windows Subsystem for Linux" optional feature and reboot.

1. Open PowerShell as Administrator and run:
``` PowerShell
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
```
2. Restart your computer when prompted.
## Fall Creators Update and later: Install from the Windows Store
> This section is for Windows Insiders (build 16215 or later). Follow these steps to [Check your build](install_guide.md#prerequisites). For earlier versions of Windows 10, follow [these instructions using lxrun](install_guide.md#for-anniversary-update-and-creators-update-install-using-lxrun).
1. Open the Windows Store and choose your favorite Linux distribution.
Here are links directly to the store installers:
* [Ubuntu](https://www.microsoft.com/store/p/ubuntu/9nblggh4msv6)
* [OpenSUSE](https://www.microsoft.com/store/apps/9njvjts82tjx)
* [SLES](https://www.microsoft.com/store/apps/9p32mwbh6cns)
![](media/UbuntuStore.png)
2. Select "Get"
> **Troubleshooting: Installation failed with error 0x80070003**
> The Windows Subsystem for Linux only runs on your system drive (usually this is your C: drive). Make sure that new apps are stored on your system drive.
> Open **Settings** -> **Storage** -> **More Storage Settings: Change where new content is saved**
> ![](media/AppStorage.png)
3. Once the download has completed, select "Launch".
This will open a console window. Wait for installation to complete then you will be prompted to create your UNIX user account.
![](media/UbuntuInstall.png)
> **Troubleshooting: Installation failed with error 0x8007007e**
> This error occurs when your system doesn't support Linux from the store. Make sure that:
> * You're running Windows build 16215 or later. [Check your build](install_guide.md#prerequisites).
> * The Windows Subsystem for Linux optional component is enabled. [Instructions here](install_guide.md#Install-the-Windows-Subsystem-for-Linux).
5. Create your UNIX username and password. This user account can be different from, and has no relationship to, your Windows username and password. [Read more](https://msdn.microsoft.com/en-us/commandline/wsl/user_support).
You're done! Now you can use your Linux environment.
## For Anniversary Update and Creators Update: Install using lxrun
lxrun installs Ubuntu user-mode by default on top of the Windows subsystem for Linux.
> Since moving to the store, we have stopped keeping this user-mode image up to date. When you're done, run apt-get update.
1. Turn on Developer Mode
Open **Settings** -> **Update and Security** -> **For developers**
Select the Developer Mode radio button
![](media/updateAndSecurity.png)
2. Open a command prompt. Run `bash`
![](media/bashShellInstall.png)
After you have accepted the License, the Ubuntu user-mode image will be downloaded and extracted. A "Bash on Ubuntu on Windows" shortcut will be added to your start menu.
3. Launch a new Ubuntu shell by either:
* Running `bash` from a command-prompt
* Clicking the start menu shortcut
4. Create a UNIX user
The first time you install the Windows subsystem for Linux, you will be prompted to create a UNIX username and password.
![](media/new-user.png)
This UNIX username and password can be different from, and has no relationship to, your Windows username and password. [Learn more about your UNIX account.](https://msdn.microsoft.com/en-us/commandline/wsl/user_support).
After installation your Linux distribution will be located at: `%localappdata%\lxss\`.
**Avoid creating and/or modifying files in %localappdata%\lxss\ using Windows tools and apps!** If you do, it is likely that your Linux files will be corrupted and data loss may occur. Avoid this issue by using a directory located under /mnt/.
Read this [blog post](https://blogs.msdn.microsoft.com/commandline/2016/11/17/do-not-change-linux-files-using-windows-apps-and-tools/) for more information.
You're done! Go use your new Linux environment!
1 change: 1 addition & 0 deletions commandline/WSL/interop.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Windows interoperability with Linux
description: Describes Windows interoperability with Linux distributions running on the Windows Subsystem for Linux.
author: scooley
ms.author: scooley
ms.date: 7/31/2017
ms.topic: article
ms.prod: windows-subsystem-for-linux
Expand Down
1 change: 1 addition & 0 deletions commandline/WSL/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Windows Subsystem for Linux Command Reference
description: List of commands that manage the Windows Subsystem for Linux
keywords: BashOnWindows, bash, wsl, windows, windows subsystem for linux, windowssubsystem, ubuntu
author: scooley
ms.author: scooley
ms.date: 7/31/2017
ms.topic: article
ms.prod: windows-subsystem-for-linux
Expand Down
Loading

0 comments on commit c730836

Please sign in to comment.