Over a million developers have joined DZone.

Enabling Ubuntu Bash Shell on Windows 10 with the Anniversary Update

Much ado has been made about Windows 10 making available an Ubuntu Bash shell in the Windows 10 Anniversary Update. But how do you actually go about enabling it?

· DevOps Zone

The DevOps Zone is brought to you in partnership with Sonatype Nexus. The Nexus Suite helps scale your DevOps delivery with continuous component intelligence integrated into development tools, including Eclipse, IntelliJ, Jenkins, Bamboo, SonarQube and more. Schedule a demo today

I already had the Anniversary Update on my Windows 10 installed, and I needed to SSH into one of my Raspberry Pis. I normally do this from my Mac, but since I was in Windows 10 working on something, I thought, "this would be a great opportunity to install the new Ubuntu Bash support, and then I can SSH from there, right?" (I could just install Putty, but then I wouldn’t have a reason to check out the Ubuntu Bash support, right?)

On the first attempt, I followed instructions here. The Bash windows opened and closed too quickly to read whether there was an error or not.

On the second attempt, from a Command Prompt, entering Bash, I got this:

I enabled Developer Mode, went into Settings, and clicked the radio button under "Use Developer Features":

Then I got this error:

Hmm. Not very helpful. Clicking on "Learn More" opened a browser to a help page, but it didn’t load. I’d reconfigured my IP address to a static address on a local network for testing and I didn’t have internet access. 0x80004005 probably could be a little more helpful, but I enabled DHCP to get an internet connection and then tried selecting the Developer Mode option again. It downloaded and said, "some features may not be available until your PC is rebooted." I rebooted and ran Bash from Command Prompt. Next, it prompted to download the Ubuntu Bash support. Why it couldn’t have done this already is beyond me - I’d already rebooted once - but answering "y," it started downloading:

After it completes, you create a Unix username and then you’re all set. It even has SSH included.

The DevOps Zone is brought to you in partnership with Sonatype Nexus. Use the Nexus Suite to automate your software supply chain and ensure you're using the highest quality open source components at every step of the development lifecycle. Get Nexus today

Topics:
devops ,windows 10 ,ubuntu ,bash ,shell ,howto

Published at DZone with permission of Kevin Hooke, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}