

Make sure to click OS X hosts to start the download.

Head over to the following URL and download VirtualBox, a free hypervisor that allows you to create virtualized environments on your machine.Follow the steps below to install the Virtual Machine: It is a little bit harder to install a Linux virtual machine on macOS as you have to create the Virtual Environment yourself. You will now be asked to fill in some details such as a UNIX username (pick anything you will remember your first name all lowercase should be enough) and a UNIX password (pick something you will remember because you will be using it a lot).Once complete close Powershell and the Ubuntu Subsystem App and reopen the Ubuntu Subsystem App.If you run into the error of wsl is not recognized, paste the following command instead: Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform.Finally, paste the following: wsl -set-default-version 2.After the previous command is done running, paste the following: dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart.

Paste the following command into it: dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart.Open Powershell as Administrator (right-click Powershell in Start and select Run as administrator).Complete the following steps to fix this else move to step 7: If you are prompted with the following message: The Windows Subsystem for Linux optional component is not enabled.Once a Terminal is opened it should automatically begin the installation processes.Once finished, type Ubuntu into the Start search box, and the app should pop up- click on it.Click on the Get button and it should redirect you to the Microsoft Store app on your machine.

Follow the steps below to install the subsystem: It is much easier to set up a CLI (Command-Line Interface) environment for Windows as Microsoft has already implemented a Ubuntu subsystem virtual machine that is built onto Windows. Please scroll down to the operating system you use. How to install Ubuntu on a Virtual Machine
