Install Ubuntu From Inside Windows 10

  1. Ubuntu Install From Windows
  2. How To Install Ubuntu In Win 10
  3. Opening Ubuntu In Win 10

In Windows 10, it is now possible to run Ubuntu Bash shell, without dual boot nor virtual machine, directly using the Windows kernel’s new properties. It is named Windows Subsystem for Linux (WSL).

In this tutorial, I’ll give you the command to install and use Ubuntu shell on a typical enterprise Windows computer.

I assume that you already have a Windows operating system on your laptop or desktop and want to install Ubuntu 20.04 in dual boot with Windows 10. This tutorial should also work if you are installing Ubuntu 20.04 in dual boot with previous versions ofo Microsoft Windows such as Windows 8.1 or Windows 8. To access Ubuntu from within Windows 10 you'll first need to enable the Developer mode. You can do this by going to the Start menu, going to Settings, then to Update and security. Open settings in windows and enable developer mode. Once the developer mode is enabled, Go to Windows search and Type Bash. It will open Bash command prompt. Allow it to download Ubuntu automatically. Create A New Partition Drive In Windows. This is a preliminary step to create a separate free space. Download Ubuntu 20.04 LTS ISO. Download Ubuntu 20.04 LTS desktop iso image from the Ubuntu.

First, in Settings > Update and security > For developers, activate Developer mode:

Second, in Settings > Applications > Applications and features, click on Programs and features,

open activate or desactivate Windows features panel:

Win

enable the “Windows Subsystem for Linux” optional feature (you can also enable the feature with Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux in PowerShell as administrator).

Third reboot.

Inside

Last, run lsxrun /install in the Windows Command Prompt to install Ubuntu Bash, without requiring the activation of the Windows Store of applications.

You’ll find the Ubuntu bash under Bash in the Windows Command prompt:

Ubuntu Install From Windows

Windows

It is possible to run graphical applications from Ubuntu, for that purpose you need to install Xming X Server for Windows. Then, run Xming server and set the DISPLAY environment variable in the Ubuntu Bash Shell:

Install ubuntu from within windows 10

Now you can run firefox in your Ubuntu Bash terminal.

In the Ubuntu Bash terminal under Windows, it is also possible to get the GUI environment from a remote server as under Linux, with command ssh -X. To enable this, install SSH, XAUTH and XORG:

and edit the ssh_config file, uncommenting or adding the following lines:

Now, setting the display, you can access your Ubuntu remote server through the Ubuntu server X on your Windows Ubuntu computer:

Line endings

You will probably find your files created with Atom editor with strange line endings under your Linux servers:

Ubuntu

To avoid that, you can install Windows Carriage Return Removers to remove Windows line endings.

How To Install Ubuntu In Win 10

You will also install the Line Ending Selector Package to write new files with Linux the new line.

Opening Ubuntu In Win 10

Well done!