1.设置开发人员工作模式
设置——>更新和安全——>针对开发人员——>开发人员模式
2.启用WINDOWS子系统功能
控制面板——>程序——>程序和功能——>启用或关闭Windows功能——>适用于Linux的Windows子系统——>确定 (然后重启)
打开微软件应用商店,搜索ubuntu,然后安装
安装完成后,子系统放在这里:
root@moonrong:~# lsb_release -a
四.修改默认源为阿里云镜像并更新
1.确认默认源并查看
2.修改默认源
1)备份原配置文件
2)修改源为阿里云镜像
用VIM进行替换
3.更新
1.安装VcSrv
下载VcSrv并在WIN10上安装
https://sourceforge.net/projects/vcxsrv/
安装完成后启动Xlaunch
按上图完成设置,并一直按下一步直到出现下图界面
2安装ubuntu-desktop,unity,ccsm
3.配置ccsm
在XLaunch启动的情况下输入
配置完成后点击close关闭
4.开启桌面
root@moonrong:~#compiz
最终启动完成,WIN10下界面如上图所示。
WSL子系统是基于LxssManager服务运行的
在WIN10的CMD命令下输入下面命令完成重启
net stop LxssManager
net start LxssManager
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。