Installing Bash on Windows 10
First Step
Hello everyone,
This first article help some people to install bash on windows 10.
In first step you need uninstall all antivirus that you have, for example, I use Avast, I needed to uninstall this to install the bash. If you use windows protection, unable this to forward.
Installing
Open the prompt on Windows.
Than you will run: lxrun /install
If this is the first time, you will inform a user to Bash console.
Or you can just use lxrun /install /y
To do this step automatically.
Uninstalling
You just need run on prompt:
lxrun /uninstall /full
Install Bash under Windows 10
This Documentation is a small summary of the offical one
Prerequisites
-
Your PC must be running a 64-bit version of Windows 10 Anniversary Update build 14393 or later
To find your PC’s CPU architecture and Windows version/build number, open Settings>System>About. Look for the OS Build and System Type fields.
-
Turn-on Developer Mode
- Open Settings -> Update and Security -> For developers
- Select the Developer Mode radio button
-
Enable the Windows Subsystem for Linux feature (GUI or command-line
- From Start, search for “Turn Windows features on or off”
- Select Windows Subsystem for Linux (beta)
- Click OK
- OR Open a PowerShell prompt as administrator and run:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
- From Start, search for “Turn Windows features on or off”
-
Restart your computer
Install Bash on Windows
Open a command prompt and run bash
After you have accepted the License, the Ubuntu user-mode image will be downloaded and a “Bash on Ubuntu on Windows” shortcut will be added to your start menu.
After installation your Linux distribution will be located at: %localappdata%\lxss\
Run Bash on Windows
To run bash just like in the other step
Open a command prompt and run
bash
Or use the “Bash on Ubuntu on Windows” shortcut
The first time you install Bash on Windows, you will be prompted to create a UNIX username and password.
Credits to the official link!