I'm installing Ubuntu Subsystem (wls) When I found that the posts on the Internet were uneven , Can't give novice a simple and direct tutorial , So I summed up a simple installation tutorial for novice reference ( Bosses do not spray ).
Now I'm going straight to the point :
1. Get into MicrosoftStore Search for Ubuntu, choice Ubuntu 18.04LTS( Of course, other things can be ), Click on the install .
2. After installation , Click on the lower left corner of the computer ( Or press Win build ) Find recently added , Click to enter Ubuntu.
3. After waiting for a while , Enter a user name and password to create a user .
4. Input sudo su Command to enter administrator mode ( You may not enter , If you do not enter this command, all the following commands need to be preceded by sudo ).
5. First installation vim, In order to give us Ubuntu Change the source .
command :apt-get install vim
6. Install well vim Post input vim /etc/apt/sources.list
Mean in /etc/apt/ Create a directory called sources.list File and enter , When the command is finished, click on the keyboard i Get into Insert Pattern ( Edit text ), Prefix all lines with #( Comment out ), Or delete them all
Go to the website https://mirrors.tuna.tsinghua...
Choose the source that your system matches ( Here is 18.04), Copy it and paste it into the previous entry sources.list In file , Press down ESC( sign out Insert Pattern ), Input :wq( Exit and save ), Back to the command line .
The source of Tsinghua University is used here ( I think it's easy to use ), If you need to go online search other sources .
7. Input apt-get update updated .
8. Then you can install the software you need .
The command format is :apt-get install Package name .
Install one here gcc compiler :
apt-get install gcc
That's the installation Ubuntu The whole process of , Is it simple , Next, we will install the visual interface ( not essential , Choose... As you like ):
1. Enter the command sudo su Enter administrator mode .
Then enter the following command :
2.apt-get update
3.apt-get install xorg
4.apt-get install xfce4
5.apt-get install xrdp
6.apt-get install vnc4server
7.sed -i 's/port=3389/port=3390/g' /etc/xrdp/xrdp.ini
8.echo xfce4-session >~/.xsession
9.service xrdp restart
I don't want to explain too much here , When the input is complete, return to Windows Press down Win+R, Input mstsc Press down enter key , Input 127.0.0.1:3390 Then click the link to enter the visual interface .
Be careful : After installing the visual interface, you need to enter the Ubuntu Command line input for sudo service xrdp restart, The aim is to turn on Ubuntu Of xrdp( Remote desktop link ), And then from Windows The system is connected .
当前位置:网站首页>Windows subsystem Ubuntu installation
Windows subsystem Ubuntu installation
2020-11-07 23:56:00 【Fit】
版权声明
本文为[Fit]所创,转载请带上原文链接,感谢
边栏推荐
- Golang anonymous structure member, named structure member, inheritance, composition
- Experience the latest version of erofs on Ubuntu
- See once to understand, graphic single chain table inversion
- UCGUI简介
- Hand tearing algorithm - handwritten singleton mode
- golang 匿名结构体成员,具名结构体成员,继承,组合
- Python 图片识别 OCR
- China Telecom announces 5g SA commercial scale in 2020
- 【解决方案】分布式定时任务解决方案
- The emergence and significance of micro service
猜你喜欢
More than 50 object detection datasets from different industries
Wanxin Finance
These core technology of object-oriented, after you master it, you can have a good interview
Fortify漏洞之 Privacy Violation(隐私泄露)和 Null Dereference(空指针异常)
Privacy violation and null dereference of fortify vulnerability
More than 50 object detection datasets from different industries
Learn Scala if Else statement
delphi10的rest.json与system.json的踩坑
Basic knowledge of C + +
Data transmission of asynchronous serial communication controlled by group bus communication
随机推荐
GoLand writes a program with template
Python 图片识别 OCR
A compilation bug brought by vs2015 Update1 update [existing solutions]
Brief history of computer
IDEA-项目未自动生成 .iml 文件
虚拟DOM中给同一层级的元素设置固定且唯一的key为什么能提高性能
Data transmission of asynchronous serial communication controlled by group bus communication
These core technology of object-oriented, after you master it, you can have a good interview
UCGUI简介
C++在C的基础上改进了哪些细节
delphi10的rest.json与system.json的踩坑
Learn Scala if Else statement
使用 Xunit.DependencyInjection 改造测试项目
一万四千字分布式事务原理解析,全部掌握你还怕面试被问?
16. File transfer protocol, vsftpd service
The software in your host has terminated an established connection. resolvent
异常+abstract
看一遍就理解,图解单链表反转
Summary of knowledge points of Jingtao project
团灭 LeetCode 股票买卖问题