Skip to content

Commit 0b602c8

Browse files
committed
Merge remote-tracking branch 'origin/live'
2 parents 7c1b714 + afc8cc2 commit 0b602c8

21 files changed

Lines changed: 1122 additions & 186 deletions

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ If you find doc issues / errors or have an improvement you'd like to suggest, pl
55

66
> **Note:** This repo's issue tracker is only for reporting issues with the WSL docs.
77
> Other related issue repo's:
8-
> * WSL: https://github.com/Microsoft/BashOnWindows/
8+
> * WSL: https://github.com/Microsoft/WSL/
99
> * Windows Console: https://github.com/Microsoft/Console/
1010
1111
## External Links
1212

13-
[Rendered documentation website](https://msdn.microsoft.com/commandline)
13+
[Rendered documentation website](https://docs.microsoft.com/windows/wsl/)
1414

15-
[Release notes for WSL](https://msdn.microsoft.com/en-us/commandline/wsl/release_notes)
15+
[Release notes for WSL](https://docs.microsoft.com/en-us/windows/wsl/release-notes)
1616

1717
## Microsoft Open Source Code of Conduct
1818

WSL/TOC.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# [About the Windows Subsystem for Linux](./about.md)
22
# [Install on Windows 10](./install-win10.md)
33
# [Install on Windows Server](./install-on-server.md)
4-
# [User account and permissions](./user-support.md)
5-
# [Multi-distro management](./wsl-config.md)
4+
# [User accounts and permissions](./user-support.md)
5+
# [Distro management](./wsl-config.md)
66
# [Interoperability](./interop.md)
7+
# [Build a Custom Distro](./build-custom-distro.md)
78
# [Frequently Asked Questions](./faq.md)
89
# [Troubleshooting](./troubleshooting.md)
910
# [Release Notes](./release-notes.md)

WSL/about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ You can:
3434
* [Read frequently asked questions](faq.md)
3535

3636
## Team Blogs
37-
* [Overview post with a collection of videos and blogs](https://blogs.msdn.microsoft.com/commandline/learn-about-bash-on-windows-subsystem-for-linux/)
37+
* [Overview post with a collection of videos and blogs](https://blogs.msdn.microsoft.com/commandline/learn-about-windows-console-and-windows-subsystem-for-linux-wsl/)
3838
* [Command-Line blog](https://blogs.msdn.microsoft.com/commandline/)
3939
* [Windows Subsystem for Linux Blog](https://blogs.msdn.microsoft.com/wsl/)
4040

WSL/build-custom-distro.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
title: Build a Custom Linux Distro for WSL
3+
description: Learn how to create a custom Linux distribution for WSL.
4+
keywords: BashOnWindows, bash, wsl, windows, windowssubsystem, distro, custom
5+
author: taraj
6+
ms.author: taraj
7+
ms.date: 3/27/2018
8+
ms.topic: article
9+
ms.prod: windows-subsystem-for-linux
10+
ms.service: windows-subsystem-for-linux
11+
ms.assetid: a5095219-0c82-4ce5-9a6d-5c2fc00835a3
12+
---
13+
14+
# Creating a Custom Linux Distro for WSL
15+
16+
Use our open source WSL sample to build WSL distro packages for the Microsoft Store and/or to create custom Linux distro packages for sideloading. You can find the [distro launcher repo](https://github.com/Microsoft/WSL-DistroLauncher) on GitHub.
17+
18+
This project enables:
19+
* Linux distribution maintainers to package and submit a Linux distribution as an appx that runs on WSL
20+
* Developers to create custom Linux distributions that can be sideloaded onto their dev machine
21+
22+
## Background
23+
We distribute Linux distros for WSL as UWP applications through the Microsoft Store. You can install those applications that will then run on WSL - the subsystem that sits in the Windows kernel. This delivery mechanism has many benefits as discussed in an earlier blog post.
24+
25+
## Sideloading a Custom Linux Distro Package
26+
You can create a custom Linux distro package as an application to sideload on your personal machine. Please note that your custom package would not be distributed through the Microsoft Store unless you submit as a distribution maintainer.
27+
To set up your machine to sideload apps, you will need to enable this in the system settings under “For Developers”. Be sure to either have developer mode, or sideload apps selected
28+
29+
## For Linux Distro Maintainers
30+
To submit to the Store, you will need to work with us to receive publishing approval. If you are a Linux distribution owner interested in adding your distribution to the Microsoft Store, please contact [email protected].
31+
32+
## Getting Started
33+
Follow the instructions on the [Distro Launcher GitHub repo](https://github.com/Microsoft/WSL-DistroLauncher) to create a custom Linux distro package.
34+
35+
36+
## Team Blogs
37+
* [Open Sourcing a WSL Sample for Linux Distribution Maintainers and Sideloading Custom Linux Distributions](https://blogs.msdn.microsoft.com/commandline/2018/03/26/wsl-distro-launcher/)
38+
* [Command-Line blog](https://blogs.msdn.microsoft.com/commandline/)
39+
40+
## Provide Feedback
41+
* [Distro Launcher Gitub repo](https://github.com/Microsoft/WSL-DistroLauncher)
42+
* [GitHub issue tracker for WSL](https://github.com/Microsoft/BashOnWindows/issues)
43+
* [Command-line UserVoice portal](https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/category/161892-bash)

WSL/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ You can also access your local machine’s filesystem from within the Linux Bash
3131
![](media/ls.png)
3232

3333
### What is Bash?
34-
[Bash](https://en.wikipedia.org/wiki/Bash_%28Unix_shell%29) is a popular text-based shell and command-language. It is the default shell included within Ubuntu and other Linux distros, and in MacOS. Users type commands into a shell to execute scripts and/or run commands and tools to accomplish many tasks.
34+
[Bash](https://en.wikipedia.org/wiki/Bash_%28Unix_shell%29) is a popular text-based shell and command-language. It is the default shell included within Ubuntu and other Linux distros, and in macOS. Users type commands into a shell to execute scripts and/or run commands and tools to accomplish many tasks.
3535

3636
### How does this work?
3737
Check out our [blog](https://blogs.msdn.microsoft.com/wsl/) where we go into detail about the underlying technology.

WSL/install-on-server.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,14 @@ ms.assetid: 9281ffa2-4fa9-4078-bf6f-b51c967617e3
1515

1616
> Applies to Windows Server 1709 and later
1717
18-
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.
18+
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 the Windows Subsystem for Linux on Windows Server 1709 and later.
1919

2020
## Enable the Windows Subsystem for Linux
2121

2222
Enable the "Windows Subsystem for Linux" optional feature and reboot.
2323

2424
1. Open PowerShell as Administrator and run:
2525
``` PowerShell
26-
PowerShell
2726
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
2827
```
2928
@@ -38,10 +37,9 @@ Enable the "Windows Subsystem for Linux" optional feature and reboot.
3837
* [OpenSUSE](https://aka.ms/wsl-opensuse-42)
3938
* [SLES](https://aka.ms/wsl-sles-12)
4039
41-
You can download the distributions to Windows Server with [`Invoke-WebRequest`](https://msdn.microsoft.com/powershell/reference/5.1/microsoft.powershell.utility/invoke-webrequest) cmdlet. Here's a sample instruction to download OpenSUSE.
40+
You can download the distributions to Windows Server with [`Invoke-WebRequest`](https://msdn.microsoft.com/powershell/reference/5.1/microsoft.powershell.utility/invoke-webrequest) cmdlet. Here's a sample instruction to download Ubuntu.
4241
4342
``` PowerShell
44-
PowerShell
4543
Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1604 -OutFile ~/Ubuntu.zip -UseBasicParsing
4644
```
4745
@@ -82,4 +80,4 @@ Enable the "Windows Subsystem for Linux" optional feature and reboot.
8280
8381
You're done! Go use your new Linux environment!
8482
85-
![](media/server-cowsay.png)
83+
![](media/server-cowsay.png)

WSL/install-win10.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,17 @@ Enable the "Windows Subsystem for Linux" optional feature and reboot.
2424
2. Restart your computer when prompted.
2525
2626
## Install your Linux Distribution of Choice
27-
### Fall Creators Update and later: Install from the Windows Store
27+
### Fall Creators Update and later: Install from the Microsoft Store
2828
29-
> 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).
29+
> This section is for Windows 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).
3030
31-
1. Open the Windows Store and choose your favorite Linux distribution.
31+
1. Open the Microsoft Store and choose your favorite Linux distribution.
3232
Here are links directly to the store installers:
3333
* [Ubuntu](https://www.microsoft.com/store/p/ubuntu/9nblggh4msv6)
3434
* [OpenSUSE](https://www.microsoft.com/store/apps/9njvjts82tjx)
3535
* [SLES](https://www.microsoft.com/store/apps/9p32mwbh6cns)
36+
* [Kali Linux](https://www.microsoft.com/store/apps/9PKR34TNCV07)
37+
* [Debian GNU/Linux](https://www.microsoft.com/store/apps/9MSVKQC78PK6)
3638
3739
![](media/UbuntuStore.png)
3840
@@ -44,7 +46,7 @@ Enable the "Windows Subsystem for Linux" optional feature and reboot.
4446
> ![](media/AppStorage.png)
4547
4648
3. Once the download has completed, select "Launch".
47-
This will open a console window. Wait for installation to complete then you will be prompted to create your UNIX user account.
49+
This will open a console window. Wait for installation to complete then you will be prompted to create your LINUX user account.
4850
![](media/UbuntuInstall.png)
4951
5052
> **Troubleshooting: Installation failed with error 0x8007007e**
@@ -54,12 +56,12 @@ Enable the "Windows Subsystem for Linux" optional feature and reboot.
5456
5557
5658
57-
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).
59+
5. Create your LINUX username and password. This user account has no relationship to your Windows username and password and hence can be different. [Read more](user-support.md).
5860
5961
You're done! Now you can use your Linux environment.
6062
6163
### For Anniversary Update and Creators Update: Install using lxrun
62-
lxrun installs Ubuntu user-mode by default on top of the Windows subsystem for Linux.
64+
lxrun installs Ubuntu user-mode by default on top of the Windows Subsystem for Linux.
6365
6466
> Since moving to the store, we have stopped keeping this user-mode image up to date. When you're done, run `apt-get update`.
6567
@@ -81,7 +83,7 @@ lxrun installs Ubuntu user-mode by default on top of the Windows subsystem for L
8183
8284
4. Create a UNIX user
8385
84-
The first time you install the Windows subsystem for Linux, you will be prompted to create a UNIX username and password.
86+
The first time you install the Windows Subsystem for Linux, you will be prompted to create a UNIX username and password.
8587
![](media/new-user.png)
8688
8789
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).

0 commit comments

Comments
 (0)