Bashing Windows 10 Insider Preview Build

By Andy Barnes
Published

Now the Windows 10 Anniversary update is out, you won't need to go through the Insider Preview rigamarole to get the integrated Bash shell.

The Insider Preview of Windows 10 (Build 14316 and later) has the beta of the new port of Bash shell from Ubuntu included, however it takes a bit of fiddling to get it going.

First turn on Developer Mode via Settings > Update & security > For developers. For Developers

Next we want to check we are using the Insider Preview in Settings > Update & Security > Advanced Options. Settings, Update & Security

You need to be running the Insider Preview "Fast" track to get build 14316 or later currently. Advanced Options

Then search for “Turn Windows Features on or off” and enable Windows Subsystem for Linux (Beta). Turn Windows features on or off

Now open start > cmd to open a command prompt and type bash. After a few moments it should have installed the bash shell.

Usage

Now open start > bash and you should be presented with a full Ubuntu 14.04 bash prompt, with working apt and all the other command line goodness (no Desktop/Graphical UI).

Troubleshooting

The process of opting into the Insider Builds did not go smoothly for me. It appears if you opt in after a build has been released you won't update to the Insider Preview until the next preview is pushed out to customers. Patience is key here.

Check which build of Windows you are running, the release build is 10586.

start > run > winver

About Windows

Check the registry entries for the Insider Preview:

start > run > regedit

goto key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\Applicability

Check that BranchName and UserPreferredBranchName strings are set to rs1_release.

Also ensure that EnablePreviewBuilds and ThresholdOptedin DWORDs are set to 1.

regedit

If the key

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\Applicability\RecoveredFrom

exists it features builds that have been installed and then reverted from. These will be unavailable to install again unless the key is removed.

If you had to change anything in the registry editor, restart your computer and check for updates again.

References: