wsl安装Ubuntu并使用VcXsrv图形界面
WSL
Issues found on WSL
项目地址:https://gitcode.com/gh_mirrors/ws/WSL
·
1、安装VcXsrv用于在windows上连接Ubuntu桌面
官网下载https://sourceforge.net/projects/vcxsrv/files/
网盘下载https://pan.baidu.com/s/1dStmitaTvcI3Vp-Vryd2mQ
提取码:19bh
(1)、直接点下一页

(2)、直接点下一页

(3)、第三个打勾,下一页

(4)、点击保存设置,下次直接打开配置文件

2、接着回到 “Ubuntu” 命令行界面,开始安装桌面环境需要的软件,依次输入下面的命令:
sudo apt-get install xfce4-terminal
sudo apt-get install xfce4
sudo service dbus restart
3、配置文件:~/.bashrc,
sudo nano ~/.bashrc
#在末尾添加
export DISPLAY=$(grep -m 1 nameserver /etc/resolv.conf | awk '{print $2}'):0.0
export WAYLAND_DISPLAY=$DISPLAY
export XDG_SESSION_TYPE=x11
保存并退出。
4、执行命令启动
sudo startxfce4
Issues found on WSL
最近提交(Master分支:6 个月前 )
8c61f09e
* Add super user detection; a powershell approach is used
* use the 'id' command
* avoid stderr warning & wsl alias 1 个月前
ae780d11
1 个月前
更多推荐




所有评论(0)