Thứ Năm, Tháng Năm 19, 2022
  • Home
  • Health
  • News
  • Software
  • Tech
  • Travel
  • Gen Z
NATuts
  • Home
  • Health
  • News
  • Software
  • Tech
  • Travel
  • Gen Z
No Result
View All Result
NATuts
  • Home
  • Health
  • News
  • Software
  • Tech
  • Travel
  • Gen Z
No Result
View All Result
NATuts
No Result
View All Result
Home Tech

How to Install Ubuntu 21.10 on WSL for Windows 10 and 11

6 Tháng Hai, 2022
in Tech
0
How to Install Ubuntu 21.10 on WSL for Windows 10 and 11
586
SHARES
3.3k
VIEWS
Share on FacebookShare on Twitter

Các bài viết liên quan:

Download Ashampoo PDF Pro – Detailed installation instructions

Download Ashampoo PDF Pro – Detailed installation instructions

19 Tháng Năm, 2022
Sunrise Hội An Resort – Đắm mình vào thiên nhiên xanh mát

Sunrise Hội An Resort – Đắm mình vào thiên nhiên xanh mát

19 Tháng Năm, 2022
Finland does not want to place nuclear weapons on its territory

Finland does not want to place nuclear weapons on its territory

19 Tháng Năm, 2022
How to hide your home from Google Maps

How to hide your home from Google Maps

19 Tháng Năm, 2022
7 Outlook Tips and Tricks Everyone Should Know Now

7 Outlook Tips and Tricks Everyone Should Know Now

19 Tháng Năm, 2022
Những kiểu tóc lob đẹp

Những kiểu tóc lob đẹp

19 Tháng Năm, 2022

Job install WSL 2 on Windows 10 and 11 is easier than ever, and when you want to add a distribution, you can simply download the app from the Microsoft Store. But it doesn’t just stop there. The Microsoft Store is a good choice, but it’s limited on Linux distributions, and in the case of Ubuntu, you can essentially get LTS versions, not the latest releases.

How to Install Ubuntu 21.10 on WSL for Windows 10 and 11

This is perfectly fine for many people, but there’s always a good reason you’d want to use the latest version, especially during development. If you need Ubuntu 21.10, and don’t want to have to reboot or create virtual machines; then you can easily install it on Windows 10 or 11.

How to get Ubuntu 21.10 for WSL

How to install Ubuntu 21.10 on WSL for Windows 10 and 11 34

Getting Ubuntu 21.10 for WSL isn’t difficult, but it also doesn’t have an obvious download place. You can upgrade inside WSL to the latest version, but in case of 21.10 you need to use 21.04.

But here I will download the image file and install a brand new build of Ubuntu 21.10.

To get the files you need, go to Ubuntu website and follow these steps.

1. Click the option labeled impish.

2. Next, click current.

How to install Ubuntu 21.10 on WSL for Windows 10 and 11 35

3. Find the files labeled wsl.rootfs.tar.gz.

How to install Ubuntu 21.10 on WSL for Windows 10 and 11 36

There will be many files, but the ones labeled with the file manifest you can skip. You also need to choose the right version for your PC. If you are using a machine supported by Intel or AMD, choose the amd64 version. If you are using an ARM-based machine, choose the arm64 version.

Download the relevant files, and then install.

How to Install Ubuntu 21.10 on WSL for Windows 10 and 11

How to install Ubuntu 21.10 on WSL for Windows 10 and 11 37

From now on, you’ll be in your PowerShell. Make a note of where you downloaded the tar file from the steps above as you will need the file location for the installation.

The installation begins with importing the downloaded image from Ubuntu into your WSL.

Inside PowerShell, you will need to enter the following command to import and install Ubuntu 21.10:

wsl --import <name> <location to unpack> <location of download>

On my system, the command would look like this:

wsl --import Ubuntu-2110 c:/WSL/Ubuntu-2110 c:/Downloads/impish-server-cloudimg-amd64-wsl.rootfs.tar.gz

It doesn’t really matter where you extract and install the image, but it’s a good idea to create a dedicated folder, especially if you’re going to install multiple distributions this way.

Alternatively, you can specify a WSL version at the end with the –version flag. It will install to any version of WSL that your system recognizes as default, but you can change that version at install time to avoid having to switch it later. Just add 1 or 2 after the flag to specify the version you require.

How to install Ubuntu 21.10 on WSL for Windows 10 and 11 38

It will take a few minutes, but once it’s done, you can move on to setup. Since this feature has not been installed from the Microsoft Store, there is no app shortcut created in the Start Menu. You will need to launch it manually with the command:

wsl -d <distroname>

However, if you use Windows Terminal and you do, WSL will automatically add it to the drop-down menu along with all the other shells you can open.

Basic Setup of Ubuntu 21.10

When you install Ubuntu 21.10, it basically doesn’t run through the initial setup process you get when you install Ubuntu from the Microsoft Store. So you won’t have a user set up, there will only be root. So you need to create a new user and add it to the sudo group:

adduser <yourusername>
usermod -aG sudo <yourusername>

And switch to that user with:

su <yourusername>

To launch into Ubuntu 21.10 as your new user, from PowerShell, type:

wsl -d <distroname> -u <yourusername>

While it shouldn’t be a long process to switch to or import your new settings as your user instead of root, it’s always better to automate the process. Configuring the default user for a distro installed this way is slightly different from one downloaded from the Store.

There are a few different ways you can deal with this, but the easiest and safest way is to edit the wsl.conf file on your distribution to require WSL to log in with a user account instead of root. Open Ubuntu 21.10 and navigate to the file like below. The file may not exist on first install, so set it up and since you’ll want to log in as root and not your user account.

How to install Ubuntu 21.10 on WSL for Windows 10 and 11 39

  1. In terminal, type cd /etc/
  2. Import ls to list files. If you don’t have wsl.conf, we can create file wsl.conf.
  3. Import touch wsl.conf.
  4. Open the wsl.conf file with nano wsl.conf.

You will now need to enter the necessary information to tell Ubuntu 21.10 to launch as user and not as root. Enter the following command in the document.

# Set the user when launching a distribution with WSL.
[user]
default=YourUserName

The first line is optional, but you should keep comments throughout your wsl.conf file to remind you of the functionality of each section.

Exit nano by pressing Ctrl + X, then press Y and Enter to save the file. Close WSL completely, let it sit for a few seconds, then the next time you reboot Ubuntu 21.10 you will be the user, not the root.

How to install Ubuntu 21.10 on WSL for Windows 10 and 11 40

Alternatively, if you’re using Windows Terminal, open Settings, find your Ubuntu 21.10 installation in the sidebar and in command line, make sure this command is cached:

wsl.exe -d <distroname> -u <yourusername>

It’s a bit more step-by-step than installing from the Microsoft Store, but not too difficult.

Previous Post

Microsoft reveals new details about Russia’s offensive campaign against Ukraine

Next Post

Download WinToHDD Full – Reinstall Windows without disc

Admin Natuts

Admin Natuts

Related Posts

How to hide your home from Google Maps

How to hide your home from Google Maps

19 Tháng Năm, 2022
7 Outlook Tips and Tricks Everyone Should Know Now

7 Outlook Tips and Tricks Everyone Should Know Now

19 Tháng Năm, 2022
Những kiểu tóc lob đẹp

Những kiểu tóc lob đẹp

19 Tháng Năm, 2022
The web tracker blocked the online form even before the user hit submit

The web tracker blocked the online form even before the user hit submit

19 Tháng Năm, 2022
How to Create a Vietcombank Account with a Free Phone Number

How to Create a Vietcombank Account with a Free Phone Number

18 Tháng Năm, 2022
12 Best Private Instagram Viewers in 2022 [No Human Verification]

12 Best Private Instagram Viewers in 2022 [No Human Verification]

18 Tháng Năm, 2022
Load More
Next Post
Download WinToHDD Full – Reinstall Windows without disc

Download WinToHDD Full - Reinstall Windows without disc

Trả lời Hủy

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *

Bài viết mới

Download Ashampoo PDF Pro – Detailed installation instructions
Software

Download Ashampoo PDF Pro – Detailed installation instructions

19 Tháng Năm, 2022
Sunrise Hội An Resort – Đắm mình vào thiên nhiên xanh mát
Travel

Sunrise Hội An Resort – Đắm mình vào thiên nhiên xanh mát

19 Tháng Năm, 2022
Finland does not want to place nuclear weapons on its territory
News

Finland does not want to place nuclear weapons on its territory

19 Tháng Năm, 2022
How to hide your home from Google Maps
Tech

How to hide your home from Google Maps

19 Tháng Năm, 2022
7 Outlook Tips and Tricks Everyone Should Know Now
Tech

7 Outlook Tips and Tricks Everyone Should Know Now

19 Tháng Năm, 2022
Những kiểu tóc lob đẹp
Tech

Những kiểu tóc lob đẹp

19 Tháng Năm, 2022
W3Schools

Ads

Contact: [email protected]

DMCA.com Protection Status

Categories

  • Android
  • Cạm bẫy tâm lí
  • Chưa được phân loại
  • Đồ họa
  • Đời sống
  • Gen Z
  • Health
  • iOS
  • Kĩ năng mềm
  • News
  • Nhà mạng
  • Phần mềm
  • Phần mềm đồ họa
  • Review sách
  • Software
  • Tech
  • Thiết kế ảnh
  • Thiết kế video
  • Thủ thuật
  • Travel
  • Văn hóa Nam Bộ
  • Văn học
  • Window

Browse by Tag

ai là triệu phú android Apple browser Bullet Journal bản thân Chỉnh ảnh data domain download du lịch fshare game game show hosting HÌNH XĂM IKEA ios khuyến mãi kinh doanh kiến thức kiểm tra pin lừa đảo messenger miễn phí mua sắm Máy ảnh mạng mồi tiềm thức network nghệ thuật nhà Trần quảng cáo review tháp phân tầng xã hội tiếng anh tiện ích Trần Thủ Độ tên miền từ vựng viettel word xã hội Đơn giản đánh bạc

Recent News

Download Ashampoo PDF Pro – Detailed installation instructions

Download Ashampoo PDF Pro – Detailed installation instructions

19 Tháng Năm, 2022
Sunrise Hội An Resort – Đắm mình vào thiên nhiên xanh mát

Sunrise Hội An Resort – Đắm mình vào thiên nhiên xanh mát

19 Tháng Năm, 2022

Trang tin nóng hổi - vừa thổi vừa xem

No Result
View All Result
  • Home
  • Health
  • News
  • Software
  • Tech
  • Travel
  • Gen Z

Trang tin nóng hổi - vừa thổi vừa xem