How to enable Bash in Windows 10 developer preview?

LinuxWindowsBashWindows 10Windows Subsystem-for-Linux

Linux Problem Overview


I am using windows 10 developer preview Build 14295. From the Build conference I understood that we can enable bash in windows 10. But its not clear how to enable bash in windows 10.

Please find below the blog post for running bash in windows 10. Link : http://www.hanselman.com/blog/DevelopersCanRunBashShellAndUsermodeUbuntuLinuxBinariesOnWindows10.aspx

> After turning on Developer Mode in Windows Settings and adding the > Feature, run you bash and are prompted to get Ubuntu on Windows from > Canonical via the Windows Store

enter image description here

I enabled the developer mode. But I am not sure how to add a feature and run the bash. Kindly help.

Linux Solutions


Solution 1 - Linux

To enable bash in Windows 10:

  1. Click the Start button , click Control Panel, click Programs, and then click Turn Windows features on or off.
  2. Enable Windows Subsystem for Linux
  3. To get Bash installed, open Command Prompt and type “bash”

Enable Windows Subsystem for Linux Installing Ubuntu on Windows using windows store Start Bash

For More Information visit :

  1. Announcing Windows 10 Insider Preview Build 14316
  2. Run Bash on Ubuntu on Windows

In some cases, attempting to turn on Developer Mode on may crash the Settings app. If this happens, the workaround is to use these steps here to enable Developer Mode

Solution 2 - Linux

The Bash feature isn't available on build 14295.

  • Scott answered a question that an update will be coming soon to insiders (Microsoft want to make sure everything is OK with this feature before pushing it to Insiders)
  • I've been chatting with a Microsoft Program Manager (Sarah Cooley) and she confirm that she have the Bash feature on Build 14311 (which isn't out for insiders yet)

You can see Scott's answer here: https://news.ycombinator.com/item?id=11394994.

Solution 3 - Linux

Solution 4 - Linux

Step1: Enable Developer Mode (Settings - Update & security > For developers)

Step2: Search for “Windows Features” and choose “Turn Windows features on or off” and enable Windows Subsystem for Linux (Beta).

Step3: To get Bash installed, open Command Prompt and type “bash”

Step4: Bash will install required packages on windows you can start with windows bash

Step5: Install any package through apt-get install package_name

Happy Bash programming on windows!

Solution 5 - Linux

Now, you don´t have to enable developer mode anymore, to run bash. Better security for you without having the dev. mode enabled.

Solution 6 - Linux

download git bash to run bash commands on your windows file system

git-bash website

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionNithin K AnilView Question on Stackoverflow
Solution 1 - LinuxNithin K AnilView Answer on Stackoverflow
Solution 2 - LinuxMohamed Anas Ben OthmanView Answer on Stackoverflow
Solution 3 - LinuxjohnView Answer on Stackoverflow
Solution 4 - LinuxShrishail MashalView Answer on Stackoverflow
Solution 5 - LinuxNomemorytodayView Answer on Stackoverflow
Solution 6 - LinuxPaolo SecciView Answer on Stackoverflow