Some time ago, the Ubuntu 20 system was put on the Microsoft App Store.
Personally, I only use Ubuntu in class. I don't involve some high-end operations. I just learn some basic Linux commands, so I don't plan to do some fancy stuff.
My system is Windows10 Professional Edition.
-
First open the developer options: System Settings -> Update and Security -> Developer Options -> Developer Mode
-
Modify system settings
Open the control panel -> Programs and Features -> enable or disable windows functions -> check the [windows subsystem for linux] option
right, you can also check the sandbox mode in the same directory, there will be a Windows 10 version of the virtual machine. After installing the Windows Sandbox in the picture below, click to open
it and it will be the highlight -
Download and install
Open the application store that comes with Microsoft and search for Ubuntu 20 to get the installation.
Usually it is installed in the C drive. I have tried to modify the default installation location of the application store, but the initialization will fail. . . I expanded the partition of the C drive a bit, not more than 5G (I guess I can't use that much, after all, I just installed the command line window, I didn't plan to install the graphical interface) After
installation, you can see it by pressing the win button. , I fixed it to the start screen. -
Initialization After
opening, there will be a few minutes of initialization. After initialization, you will be asked to enter the user name, password, and confirm the password. (Linux has a password protection operation, which is equivalent to Windows ***, and you can’t see what you have entered when you enter it)
-
Setting up root
Linux is a system with high requirements for permissions, it is best to set up root
terminal inputsudo passwd root
-
Configure the mirror source It is
inevitable that you will download some things using Ubuntu, but the domestic download will be slower, so you need to configure the domestic mirror source. Here, I chose Tsinghua Mirror. Tsinghua Mirror Portal
Choose the corresponding version, and you will need to copy the contents later.
Back up the original mirror source first, and then modify the source
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo vim /etc/apt/sources.list
There is a lot of content in it, but we had a backup before, so we don’t need it. Press d + shift + g
to clear the file, copy the source code of the mirror image just searched into the file, press to i
enter the editing mode, and then paste the code. After a good press esc
and then :wq!
modify successful. (If not modified, it knocked su
into the root
mode to enter the modification)
Modify not updated, we continue to be updated now, to wait for a while.
sudo apt-get update
7. Update software
sudo apt-get dist-upgrade
We have changed the mirror source, so downloading the update is quite fast. Just choose when you pause in the middle to choose Y
.
If the article is helpful to you, please like it before leaving.