使用Microsoft Store下载好UBUNTU18.04后:
-
开启SSH。
可使用Windows PowerShell一键开机并开启ssh:【wsl -d ubuntu-18.04 -u root /etc/init.d/ssh start
】 -
使用windows自带的远程桌面连接,则需要开启图形化界面。见
其他命令3脚本
,开启后即可使用远程桌面连接到localhost:3390
。
-
其他命令:
- 重启WSL的命令:
net stop LxssManager net start LxssManager
- 备份还原系统
- 开启xrdp脚本:
#!bin/sh touch .xsession echo xfce4-session >~/.xsession sudo chown username:username .xsession sudo service xrdp start
- 重启WSL的命令: