从Windows Powershell运行X11服务器VcXsrv

问题描述

我想设置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的安装及其用法,

Running WSL GUI Apps on Windows 10

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...