WLS2 + xfce4 + WSLg显示

WLS2 + xfce4 + WSLg显示

无语以前用的好好的方法不能用了

The above instructions are not necessary with WSLg, released (as beta) on 2021-04-27.

对于 2021 年 4 月 27 日发布(测试版)的 WSLg,上述说明不是必需的。

The latest WSLg does not need to use IP of windows host, nor does it need VcXsrv or any firewall changes.

最新的 WSLg 不需要使用 Windows 主机的 IP,也不需要 VcXsrv 或任何防火墙更改。

echo DISPLAY

:0

------https://github.com/microsoft/WSL/issues/6430

不管使用localhost还是wsl的ip都是refuse,无语,啥帖子都是这样写的,但是git上2021年就有人说了WSLg的问题,我都找不到这样的帖子

终于试出来了,吓我一跳,这界面显示直接显示到win的桌面了

复制代码
vim ~/.bashrc
export DISPLAY=:0
source ~/.bashrc
sudo startxfce4

xLaunch 咋用啊?

应该是WSLg和其他的不能混着用吧。。真难顶

相关推荐
习惯就好zz2 天前
WSL2 安装Ubuntu卡在安装进度0%无响应问题解决
linux·windows·ubuntu·wsl·wsl2
欧克小奥16 天前
Win10使用WSL2安装ubuntu22.04
ubuntu·wsl2
aitav01 个月前
⚡ WSL2 搭建 s5p6818 Linux 嵌入式开发平台(part 1):环境准备与架构设计
linux·嵌入式·wsl·wsl2
探模之翼3 个月前
利用 Windows GPU 在 WSL2 中安装并配置 CUDA Toolkit
cuda·wsl2
大大大反派3 个月前
WSL2环境下的Claude Code与lanyuncodingui安装与配置
wsl2·lanyuncodingui
Shier833_Ww3 个月前
Windows10+WSL2+Docker相关整理
docker·容器·ubuntu20.04·windows10·wsl2
Mike_6665 个月前
win10安装WSL2、Ubuntu24.04
windows·ubuntu·wsl2
小妖6666 个月前
wsl2 不能联网
wsl2
YIBO04086 个月前
WSL2下Docker desktop的Cadvisor容器监控
运维·docker·容器·wsl·wsl2
西木九7 个月前
WSL2-Ubuntu22.04安装URSim5.21.3
linux·ubuntu22.04·wsl2·ur机械臂·ur10e