Bash on Ubuntu on Windows! YES!!

On March 30th 2016 Microsoft announced that they are partnering with Canonical to bring Bash to Windows 10. The companies worked together on creating a Linux-subsystem that runs on Windows-libraries. When I read the news I was very exited. Some things that I love on Linux just aren’t as good on Windows, or worse don’t exist at all. Some examples are Git, Irssi, Locate, Screen, ssh, Python, Perl and so on. Most are available on Windows or have alternatives but are way more complex.

What’s easier then running:
[code language=”bash”]
apt-get update && apt-get install git irssi vim aria2
[/code]
To install a few packages?

When Microsoft released build 14316 yesterday I couldn’t wait to try it out.

Setting up Bash on Windows 10

To get it setup first make sure you are running the latest build (currently only on the Windows Insider fast-ring).
[code language=”powershell”]
gwmi win32_operatingsystem | select BuildNumber
[/code]
As stated before you should be on BuildNumber 14316 (minimal). If you have confirmed that you are on the latest build you can now install the Windows Feature.

[code language=”powershell”]
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
[/code]

After your computer reboots you can now run bash.exe!

bash

Running bash on Windows.

Still beta!

Microsoft already stated the following:

First, this is the first time we’re releasing this technology – it’s marked as beta for a reason: We know that there are some rough edges and that some things will break! Do not expect every Bash script and tool that you run will work perfectly – there will be gaps. But by trying out this feature, you’ll help us figure out what we need to work on in order to greatly improve our reliability, coverage, and reach.

Unfortunately for now this is still true. When trying to run some of my favorite applications I ran into some issues…

bash.exe failures

bash.exe failures

What does work?!

Some other apps work very well, I’ve setup irssi, git, ssh (incl ssh-keys) and some others without any issues.

Leave a Comment

Your email address will not be published. Required fields are marked *