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和其他的不能混着用吧。。真难顶

相关推荐
大大大反派2 小时前
WSL2环境下的Claude Code与lanyuncodingui安装与配置
wsl2·lanyuncodingui
Shier833_Ww23 天前
Windows10+WSL2+Docker相关整理
docker·容器·ubuntu20.04·windows10·wsl2
Mike_6662 个月前
win10安装WSL2、Ubuntu24.04
windows·ubuntu·wsl2
小妖6663 个月前
wsl2 不能联网
wsl2
YIBO04084 个月前
WSL2下Docker desktop的Cadvisor容器监控
运维·docker·容器·wsl·wsl2
西木九4 个月前
WSL2-Ubuntu22.04安装URSim5.21.3
linux·ubuntu22.04·wsl2·ur机械臂·ur10e
CAE虚拟与现实4 个月前
Ubuntu中snap
linux·运维·ubuntu·apt·wsl·wsl2·snap
CAE虚拟与现实4 个月前
修改wsl中发行版Ubuntu的主机名
linux·运维·ubuntu·wsl·wsl2·修改主机名
CAE虚拟与现实4 个月前
WSL2安装多个版本的Ubuntu
linux·运维·ubuntu·wsl·wsl2
musk12124 个月前
YOLO环境搭建,win11+wsl2+ubuntu24+cuda12.6+idea
yolo·cuda·wsl2