手把手教你整Win10的Linux子系统(Ubuntu)
手把手教你整Win10的Linux子系统(Ubuntu)
https://www.bilibili.com/read/cv7770224/
设置root用户的密码
可以通过 sudo passwd root,按提示设置root用户的密码。
查年系统信息
root@wanghaima-PC:/mnt/d# uname -a
Linux wanghaima-PC 4.4.0-19041-Microsoft #1237-Microsoft Sat Sep 11 14:32:00 PST 2021 x86_64 x86_64 x86_64 GNU/Linux
安装Windows Terminal
在Micrsoft Store 里搜索Windows Terminal
安装Windows Terminal
安装Docker
https://gist.github.com/xiaopeng163/f3e72bb1990860859076985d5a723cba
# install docker
curl -fsSL get.docker.com -o get-docker.sh
sh get-docker.sh
if [ ! $(getent group docker) ];
then
sudo groupadd docker;
else
echo "docker user group already exists"
fi
sudo gpasswd -a $USER docker
sudo service docker start
#sudo service docker restart
rm -rf get-docker.sh
cd /etc/docker
sudo vim daemon.json
加入这段代码:
{
"registry-mirrors": ["https://registry.docker-cn.com"]
}
然后重启docker:
sudo service docker restart
查看docker状态
sudo service docker status
service docker {start|stop|restart|status}
设置开机启动:
https://blog.csdn.net/l229568441/article/details/106968306/
VScode extension
00:00 introduction
00:56 Material Theme & Material Icon Theme
02:53 Prettier - Code formatter
04:20 Bracket Pair Colorizer 2
05:34 Indent-Rainbow
07:03 Remote Development
12:45 GitLens
更换存储路径
https://blog.csdn.net/qq_39176597/article/details/108026429
卸载Linux子系统
管理员身份运行 Powershell
获取完整软件名称&卸载
`Get-AppxPackage *ubuntu*``Get-AppxPackage CanonicalGroupLimited.Ubuntu18.04onWindows | Remove-AppxPackage`
禁用 Linux 子系统
`Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux`
WSL 1 升级 WSL 2
[Haima的博客]
http://www.cnblogs.com/haima/