PowerShell and Command Prompt are both command-line utilities that allow users to manage their computer. PowerShell is developed by Microsoft, while Command Prompt is a free utility developed by the Linux Foundation. When the initial release of PowerShell was released, it substituted a Microsoft-developed Linux-compatible kernel for the original one. This caused some problems because regular users cannot install WSL as a regular user on Windows if they merely click “Enter” to open the command line. ..
Windows 10 now includes a Hyper-V hypervisor that allows you to run the entire Linux kernel natively. Previously, installing WSL required downloading the tool, installing it without much assistance from Windows, and manually enabling a number of services. Later versions of Windows 10 changed that, though, and Windows 11 still makes it simple to boot up with a choice of Linux distributions in a lightweight virtual machine environment. To install Linux OS such as Ubuntu in Windows 11 PC:
- Open the Start menu and search for “Windows Virtual PC.”
- Click on the result to open it.
- On the left side of the window, click on “New.”
- On the resulting window, type “Linux” in the name field and click on OK.
- In the next window, select “Microsoft Windows XP (SP3)” from the operating system drop-down list and click on Next.
- On the following screen, make sure that “Use my own computer image” is selected and click on Next again.
- In the next window, type in a name for your virtual machine (e.g., “Ubuntu”) and click on Next again to continue setting up your virtual machine environment. After setting up your virtual machine environment:
- Launch your virtual machine by clicking on its icon in your Start menu or by pressing Ctrl+Alt+F11 (or by using VMWare’s View menu).
- Log into your virtual machine as root using sudo su - . (If you are not familiar with how to do this please consult an online guide or ask someone else who knows how to do this.) This will give you full access to all of its files and settings without having to enter a password each time you launch it: Type exit when you are finished logging out.) ..
Steps to install Linux OS such as Ubuntu in Windows 11 PC
Make sure your PC is up to date
Windows 11 is a new operating system that is being released today. It has many new features and improvements over Windows 10. To install it, open Settings by pressing Windows + I, go to the Windows Update section and click Check for updates. Download and install any available updates and restart Windows if prompted.
Windows features can be turned on or off by clicking Start, typing Windows features, and clicking Turn Windows features on or off in the results. Scrolling down the list of options, checking the box labeled Virtual Machine Platform, and clicking OK will turn on the Virtual Machine Platform. Restarting your computer if necessary is recommended. ..
Install using Command Prompt
Step 2: Type “cmd” and press enter. Step 3: Change the directory to “C:\Windows\system32” and type “cmd.exe”. Step 4: Press enter to run the command.
Step 2: Execute the “wsl –install” command to install the WSL.
This command lists all Linux releases, including the latest.
Step 4: You can install your favorite Linux distribution, using “wsl –install -d NameofLinuxDistro.”
Install Using Windows Features
Step 2: On the left side of the window, click on “Advanced”. Step 3: In the “Advanced” window, click on the “Turn Windows Features On” button. Step 4: The “Turn Windows Features On” button will now be highlighted. Click on it to turn on Windows features.
Step 3: Type the following into the text field and press the “Enter” button: sudo apt-get install linux-headers-$(uname -r) linux-libc-$(uname -r) Step 4: Type the following into the text field and press the “Enter” button: sudo apt-get update sudo apt-get install linux-image-$(uname -r) linux-modules-$(uname -r)
When the operation is complete, you will be asked to restart your computer. ..
To launch the Linux distribution, open the Start menu and select it. ..
Final Words
Windows 10 is the latest operating system from Microsoft. It was released on July 29, 2015, and it is the successor to Windows 8.1. Windows 10 is built on the latest version of the Windows NT kernel, which was released in 2009. It has a new user interface, called “The Shell”, which replaces the traditional Start menu and taskbar with a single pane that includes a search bar and an app list. The “The Shell” can be customized using themes or by adding your own programs. Windows 10 also includes features that were previously only available in professional versions of Windows such as Hyper-V and System Center 2016. ..