Recently, Microsoft came out at their yearly Build conference and stated that they’re bringing the Bash shell to Windows 10 with the help of Linux developer Canonical. This news has struck a chord in not only the Windows community but the Linux community as well. Everyone wants to know what it’s like, how to get it and why it exists.
That’s why we’ve created this: it’s a guide on exactly how you can get Bash working on your Windows 10 installation today. It’s a fairly tedious process, but if you’re a geek, you might want to give this one a go.
Note: Bash on Ubuntu on Windows (the Windows subsystem for Linux) only supports the 64-bit version of Windows. If you use any other version, this method will not work.
Before you can try out the new Windows subsystem for Linux on Windows 10, you’ll need to join the Windows insider program (if you haven’t already). This can be done by visiting this page, and creating an account.
Be sure to read anything and everything Microsoft has on these pages in relation to the Insider program, as there may be other things that interest you besides just the new Linux subsystem.
Now that you’ve joined the Insider program, it’s time to sign in. Open the Start menu, and start typing “settings.” You should see the system settings icon show up. Click on it to launch it.
Once you’re in Settings, use the search box and type “Advanced Windows Update Options,” and then click on it to go there. Inside this Advanced options area, scroll down and look for “Get Insider Preview builds,” and click the “Get started” button.
You’ll be prompted to sign in to your Microsoft account. Do so. After that, you’ll notice a slider appear. Drag this slider all the way to the far right.
With Insider enabled, it’s time to enable something else: Developer mode. Open the Start menu and start searching for “developer mode.” You’ll notice something appear called “For developers settings.” Click on it.
Now that you’re inside the “For Developers” area, click the radio button next to “Developer mode.” This will enable your Windows 10 machine to use the latest development features. After the setting is clicked, close the window.
Installing Bash for Windows
Now that all of the prerequisites have been met, it’s time to actually install the ability to use the Windows subsystem for Linux . Open the Start menu and start searching for “Check for updates.” After that, click on an icon with “Check for updates” next to it.
This will launch the Windows Updates area. Inside this update area, click the “check for updates” button to start the update process. Once clicked, Windows 10 will go out and get all of the latest development patches and get them ready to install.
When the downloading is complete, restart your PC to install the updates.
Now that your PC has been rebooted and the updates installed, it’s time to enable the Bash feature. Go to the Start menu and start searching for “features.” This will return a few results. Look for the “Turn Windows features on or off” result and click on it to launch the window.
Inside the Windows Feature window, scroll all the way to the bottom and look for “Windows subsystem for Linux (beta).” Once there, just check the box. This will enable the new Bash feature. After that just reboot your machine and call it good.
Bash can be launched easily. Just open the Start menu, and search for “Bash.” This will return “Bash on Ubuntu on Windows” as a result. Launch it. From here you’ll be prompted to download some things as well as accept a license agreement. Do it and you’ll be set to use the new subsystem.
Inside this shell, you’ll be able to run basically any Linux binary, install programs and use just about every Bash-related thing you can think of.
A Linux subsystem on Windows. What a time to be alive! With Microsoft and Canonical coming together, there is most certainly some huge potential coming in the future. Support for Docker on Windows server? Installing alternative Desktop environments on Windows? Using first-class Linux tools right in Windows? The possibilities are endless!
Linux and Windows users: How do you feel about Bash on Windows? Do you think it’s a good decision or a bad decision? Tell us below!
Image credit: andremachado.blog.br