Bash on Ubuntu on Windows 10

0
60
Bash on Ubuntu on Windows 10

Here we can see “Bash on Ubuntu on Windows 10

For the previous couple of years as an enormous data developer, I have been employing a Mac at work and a Linux desktop for my personal needs. However, I recently started employing a Windows laptop at work. I was initially concerned about the way to access my favourite development tools until I found the native Bash Shell for Windows and, therefore, the choice to access Docker from an equivalent environment. This provides the power to run an entire set of Ubuntu tools and utilities (e.g. Docker, Git, Python, Spark and every one the info munging Linux commands) natively on Windows 10.

Microsoft has brought “native” Linux capabilities to Windows 10 by allowing you to put in Ubuntu Bash. Microsoft has achieved this by building a replacement infrastructure into Windows called the Windows Subsystem for Linux (WSL) and worked with Canonical to run Ubuntu userland on top of this infrastructure. This suggests developers using Windows machines will have access to the entire Ubuntu instruction toolset (vi, grep, awk, sed, etc..) and may install instruction tools available for Ubuntu using “apt-get install”. This avoids clunky workarounds like Virtual Machines and Cygwin, which will hamper your machine. So, the rock bottom line is that Windows users can now get an equivalent Linux experience that they get during a Mac or Linux desktop.

Before you get too excited, you would like to see that you have a version of Windows 10 that supports Ubuntu Bash. At a minimum, it must be Version 1607 (Anniversary Update). You’ll check this by opening the “About my PC” option from Windows Start and ensuring the version is “1607” or above. If Yes, you’re good to travel, otherwise you’ll get to update to the newest version. Don’t worry if you’ve got Home edition as developer mode is also out there in Home edition.

Enough of the background, let’s get to the particular fun stuff of getting it to figure by following the steps below:

  • Open Settings app and attend Update & Security -> For Developers and choose the “Developer Mode” radio button.
  • Then attend the instrument panel -> Programs and click on “Turn Windows feature on or off”. Enable “Windows Subsystem for Linux(Beta)”. Once you click OK, you’ll be prompted to reboot. Click “Restart Now” to reboot your PC.
  • After rebooting, head to start and look for “bash”. Run the “bash.exe” file. Once you run it for the first time, you’ll get to accept the terms of service as “Bash on Ubuntu for Windows” will be downloaded from the Windows Store. You’ll be asked for a Username and Password for the Ubuntu environment. Please store them somewhere because the password is required to run commands as sudo.

After completing this process, you’ll now have a full Ubuntu command-line and may use Ubuntu’s apt-get command to put in software from Ubuntu’s repositories. In theory, all binaries should work, but beware that this facility remains in beta and not every application may go flawlessly. Also, note that graphical applications and desktops aren’t supported, and running server applications isn’t recommended.

You can become a “root” user and have full system access, just like the “Administrator” user on Windows. Your Windows filing system is found at /mnt/c within the Bash shell environment.

Watch this space for a subsequent blog within the series, which will check out the way to get Docker & Spark performing from Windows 10 Ubuntu Bash shell.

User Questions:

  1. A few tips for those using Ubuntu (bash) on Windows 10

A few tips for those using Ubuntu (bash) on Windows 10 from Windows10

I am a Linux dev that recently came back to Windows 10 from Ubuntu. I immediately enabled the Linux subsystem and …

  1. The Windows Subsystem for Linux Subreddit

https://www.reddit.com/r/bashonubuntuonwindows/

r/bashonubuntuonwindows: This is the Windows Subsystem for Linux (WSL, WSL2, WSLg) Subreddit where you can get help installing, running or using the …

  1. How to install bash on Windows 10

How to install bash on Windows 10 from bashonubuntuonwindows

19.1k members in the bashonubuntuonwindows community. This is the Windows Subsystem for Linux (WSL, WSL2, WSLg) Subreddit where you can get help …

See Also:  the windows subsystem for linux optional component is not enabled. please enable it and try again.
  1. Make Bash on Ubuntu on Windows 10 Look Like the

Make Bash on Ubuntu on Windows 10 Look Like the Ubuntu Terminal from bashonubuntuonwindows

19.0k members in the bashonubuntuonwindows community. This is the Windows Subsystem for Linux (WSL, WSL2, WSLg) Subreddit where you can get help …

  1. Linux subsystem for Windows – is it legit

Linux subsystem for Windows – is it legit? from linuxmasterrace

Please see: and: “this is more than just a Bash shell. … Instead, Windows 10 offers a full Windows Subsystem intended for Linux for running Linux software …