How to Install Ubuntu on Windows 10 WSL

29/12/2020
Chưa phân loại
The full form of WSL is Windows Subsystem for Linux. It is a feature of Windows 10 that lets you install and run a full-fledged Linux environment on Windows 10. Windows did not use any virtualization technique here. Instead, Microsoft built a way (WSL) to run Linux binaries on Windows. So, it’s fast and does not require much memory to run.  In this article, I will show you how to install Ubuntu on Windows 10 using Windows WSL. Let’s get started.

Enabling WSL:

First, you have to enable WSL on Windows 10. It is really easy.  First, go to the Settings app from the Start menu.

Now, click on Apps.

Now, from the Apps & features tab, click on Programs and Features as marked in the screenshot below.

Now click on Turn Windows features on or off from the Programs and Features as marked in the screenshot below.

Now, check the Windows Subsystem for Linux checkbox as marked in the screenshot below and click ok OK.

Now, click on Restart now. Windows 10 should reboot.

Installing and Configuring Ubuntu on Windows 10 WSL:

Once your computer starts, open Microsoft Store from the Start menu as shown in the screenshot below.

Now, search for ubuntu. As you can see in the screenshot below, you can install Ubuntu 16.04 LTS or Ubuntu 18.04 LTS at the time of this writing.

I decided to install Ubuntu 16.04 LTS in this article. So, I clicked on it. Now, click on Get as marked in the screenshot below to install Ubuntu.

As you can see, Ubuntu is being installed from the Microsoft Store. It may take a while to complete.

After a while, Ubuntu should be installed.

Now, start Ubuntu from the Start menu as shown in the screenshot below.

As you’re running Ubuntu on Windows 10 for the first time, you will have to configure it. Just press <Enter> to continue.

Now, you have to create a user account on Ubuntu. Type in the username and press <Enter>.

Now, type in a new password for the username you picked and press <Enter>.

Now, retype the password and press <Enter>.

A new user for Ubuntu should be created.

Now, you can run any Ubuntu Linux command here. I ran the lsb_release -a command and as you can see in the screenshot below, I am running Ubuntu 16.04.5 LTS on Windows 10 through WSL.

Ubuntu WSL version is using a custom version of the Linux kernel as you can see in the screenshot below.

You can also exit out of the bash like you always do with the exit command.

Once you do the initial configuration, every time you run the Ubuntu app, you will see a bash console as shown in the screenshot below.

As you can see, the Ubuntu’s free command also works.

Installing Ubuntu Packages:

You can also install Ubuntu packages here as well. The popular apt and apt-get commands are available.  For example, let’s install the htop package on this version of Ubuntu and see what happens.  First, open Ubuntu app and run the following command to update the APT package repository cache:

$ sudo apt update

As you can see, the APT package repository cache is updated.

Now, install htop with the following command:

$ sudo apt install htop

As you can see, htop is installed.

Now, you can run htop with the command:

$ htop

As you can see, htop is running.

So, that’s how you install and use Ubuntu on Windows 10 through WSL. Thanks for reading this article.

ONET IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, ONET IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

Git Tutorial for Beginners

Software development is a collaborative job. As a software engineer, you need to share your work with others. But sharing...
29/12/2020

How to Install Jetbrains CLion on Ubuntu

CLion is one of the best C/C++ IDE by JetBrains. If you’re a professional C/C++ programmer, then you can use CLion to...
29/12/2020

Battle For Wesnoth 1.13.6 Development Released, Install on Ubuntu 17.04 Zesty

Battle For Wesnoth 1.13.6 released last month, is the sixth development release in the 1.13.x series and it delivers a...
28/12/2020
Bài Viết

Bài Viết Mới Cập Nhật

Huớng dẫn dùng proxy cho ios, iphone 2023
23/09/2023

Cách gắn set proxy cho điện thoại android, oppo, giả lập android, Ldplayer Bằng Proxydroid
20/09/2023

Mua Proxy Socks5 VN Chơi Game Gia Lập Tăng Cường Trải Nghiệm Chơi Game
22/06/2023

Mua Proxy Mỹ, Us Nuôi Tài Khoản Etsy, eBay Tìm Hiểu Về Mua Proxy Mỹ tại Onet.com.vn
22/06/2023

Mua Proxy Game – Giải pháp tuyệt vời cho việc chơi game trên mạng mà không bị giới hạn về vị trí địa lý
03/06/2023