Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to start a WSL trip on Windows 10

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to start a WSL trip on Windows 10, which has a certain reference value, and interested friends can refer to it. I hope you will gain a lot after reading this article.

Prepare for WSL

You must use the * * version of Windows 10 Fall Creator Update. Then check the version of Windows 10 by searching for "About" in the start menu bar. In order to use WSL, your version should be version 1709 or *.

Here is a screenshot of my operating system.

If you installed the previous version, you need to download and install Windows 10 Fall Creator Update (FCU) here. After installation, install the available updates (search for "updates" in the search box on the start menu).

Go to "enable or disable Windows function", then scroll to the bottom, as shown in the screenshot, check "Windows Subsystem for Linux", and click OK. It will download the packages required for installation.

After the installation is complete, the system will ask if you want to restart. Yes, restart the device. WSL will not start until the system is rebooted, as follows:

Once your system restarts, return to the "enable or disable Windows feature" page and make sure that "Windows Subsystem for Linux" is checked.

Install Linux in Windows

There are many ways to install Linux in Windows, and here we choose the easiest one. Open Microsoft Store and search for Linux. You will see the following options:

Click "get" and the Windows store will offer three options: Ubuntu, openSUSE Leap 42, and SUSE Linux Enterprise Server. You can install the above three distributions together, and they can run at the same time. In order to use SLE, you need a subscription.

Here, I will install openSUSE Leap 42 and Ubuntu. Select the distribution you want, click the "get" button and install it. Once installed, you can start openSUSE in Windows. For easy access, you can dock it to the start menu.

Using Linux in Windwods

When you start the distribution, it will open a Bash Shell and install the distribution. Once installed, you can start using it. You should note that there are no (normal) users in openSUSE, it runs directly under root users, but Ubuntu will ask you if you want to create users. In Ubuntu, you can perform administrative tasks as sudo users.

On openSUSE, you can easily create a user:

# useradd [username] # passwd [username]

Create a new password for this user. For example:

# useradd swapnil# passwd swapnil

You can switch from the root user with the su command.

Su swapnil

You need a non-root user to perform many tasks, such as using rsync to move files to a local device.

The first task is to update the release. For openSUSE, you should:

Zypper up

For Ubuntu:

Sudo apt-get updatesudo apt-get dist-upgrade

Now you have the native Linux Bash shell on Windows. Want to connect to your server through ssh on Windows 10? No need to install puTTY or Cygwin. After opening Bash, you can access your server through ssh. It's the simplest.

Want to synchronize files to your server through rsync? Use rsync directly. It really makes our Windows devices more practical, helping users who need to use native Linux commands and Linux tools to avoid virtual machines and open the door.

Where is Fedora?

You may wonder why there is no Fedora. Unfortunately, there is no Fedora in the mall. "We are working on some non-technical issues," the head of Fedora project release said on Twitter. "We may not be able to provide more now."

We are not sure what these non-technical problems are. When some users asked the WSL team why they didn't release Fedora, after all, it was also an open source project. Project leader Rich Turner responded on Microsoft, "We have a policy of not publishing other intellectual property rights to the app store. We believe that the community would rather see the distribution released by the distribution owner than by Microsoft or other non-authorities."

Therefore, it is not convenient for Microsoft to release Debian or Arch systems directly in the Windows store. These tasks should fall on their official team, who should bring the release to Windows 10 users.

Thank you for reading this article carefully. I hope the article "how to start a WSL Journey on Windows 10" shared by the editor will be helpful to you. At the same time, I also hope you will support us and follow the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report