Distributions
› Ubuntu
› Fedora
› CentOS
中文资源站
› 网易开源镜像站
huangmingyou
V2EX  ›  Linux

windows 11 wsl2 cannot open display?

  •  
  •   huangmingyou · Oct 14, 2021 · 3826 views
    This topic created in 1856 days ago, the information mentioned may be changed or developed.
    已经 export DISPLAY=$(grep names /etc/resolve.conf|awk '{print $2}'):0

    windows 11 默认会开 X11 server 服务吗?
    2 replies  •  2021-10-14 13:59:01 +08:00
    huangmingyou
    huangmingyou
    OP
    Oct 14, 2021
    1
    安装 wslg 解决了,也不需要设置 DISPLAY
    ThisDay
    ThisDay
    Oct 14, 2021
    2
    @huangmingyou 有时候怎么都搞不好的话,可以试试 wsl --shutdown 重启一下,我经常无论如何都打不开 x11,强制重启就好了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2983 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 05:15 · PVG 13:15 · LAX 21:15 · JFK 00:15
    ♥ Do have faith in what you're doing.