问题描述
我想设置X11服务器,以便可以使用Windows Linux子系统(WSL 2)运行图形Linux应用程序。我已尝试按照this site上的说明进行操作。
命令
choco install vcxsrv
成功完成。但是我看不到如何启动XLaunch(VcXsrv)。
我已经在计算机上安装了Cygwin / X X Server,但仍然可以成功启动它。但是当我尝试以下命令时,
PS C:\WINDOWS\system32> vcxsrv
我收到以下错误消息,
vcxsrv : The term 'vcxsrv' is not recognized as the name of a cmdlet,function,script file,or operable program.
我花了很多时间试图弄清楚如何成功启动XLaunch(VcXsrv)。
解决方法
尝试查看默认文件夹安装:
“ C:\ Program Files \ VcXsrv \ xlaunch.exe”
,尝试使用此命令运行VcXsrv
xfsettingsd --sm-client-disable; xfce4-panel --sm-client-disable --disable-wm-check &
或
C:\Program Files\VcXsrv\xlaunch.exe
请参考以下链接以了解VcXsrv的安装及其用法,