安装xfce4
sudo yum install -y epel-release
sudo yum groupinstall -y "Xfce"
重启WSL
wsl --shutdown centos
win10电脑安装VcXsrc,启动
界面的话,随便选,一般选择One window without titlebar
,Display number
为默认值-1
注意,Extra settings
中,选择Disable access control
选项
WSL中配置Xfce4
export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0
startxfce4
参考:
Windows 10 WSL2 安装Linux Xfce图形界面