How to install Bash on Ubuntu on Windows

How to install Bash on Ubuntu on Windows
Please share with your friends...
  • 1
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    1
    Share

Command-Line

For advanced users that would like to install Bash on Ubuntu on Windows from the command-line, you can do so using either a Command Prompt or Windows PowerShell. Otherwise, you can proceed to the step-by-step guide on the next page.

Command Prompt

  1. Press Windows Windows + X. The Quick Link menu will be displayed.
  2. Select Command Prompt (Admin) from the available menu options. A User Account Control window will be displayed.
  3. Click Yes. A Command Prompt window will be displayed.
  4. Execute each of the following commands at the Command Prompt:
    REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1"
    DISM /Online /Add-Capability /CapabilityName:Tools.DeveloperMode.Core~~~~0.0.1.0
    DISM /Online /Enable-Feature /FeatureName:Microsoft-Windows-Subsystem-Linux
  5. When prompted to restart the computer, press Y. The computer will restart immediately.
  6. Complete the final step by installing Bash.

Windows PowerShell

  1. Press Windows Windows + S. The Cortana Search window will be displayed.
  2. Type PowerShell. Search results for Windows PowerShell will be displayed.
  3. Right-click on Windows PowerShell and select Run as administrator from the context menu. A User Account Control window will be displayed.
  4. Click Yes. A Windows PowerShell window will be displayed.
  5. Execute each of the following commands using Windows PowerShell:
    New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" -Name "AllowDevelopmentWithoutDevLicense" -Value 1
    Add-WindowsCapability –Online -Name Tools.DeveloperMode.Core~~~~0.0.1.0
    Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  6. When prompted to restart the computer, press Enter. The computer will restart immediately.
  7. Complete the final step by installing Bash.

Please share with your friends...
  • 1
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    1
    Share

Leave a Reply