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

相关推荐
金色熊族1 天前
windows11 + wsl2 上安装ubuntu20.04
ubuntu·windows11·wsl2
荔枝吻20 天前
【保姆级喂饭教程】 Windows下WSL2+Docker+Qdrant安装教程
windows·docker·wsl2·qdrant
宋辰轩1 个月前
Docker导致的wsl2崩溃问题
docker·wsl2
未来可期丶2 个月前
【开发环境】Windows+Docker Desktop+WSL2最佳实践
windows·docker·docker desktop·wsl2
酌量2 个月前
win10/11 WSL2 安装ubuntu20.04 (最新)
linux·经验分享·win11·安装·ubuntu20.04·wsl2
程序员老油条2 个月前
WSL2 + Docker Desktop:Windows 下的完美 Java 开发环境
java·windows·docker·wsl2
cv魔法师3 个月前
WSL2 中使用 AMD Radeon 780M 核显配置 Vulkan
amd·wsl2·vulkan
Zhibang Yue3 个月前
Windows下安装FreeSurfer(2026最新)
windows·wsl2·freesurfer
comedate4 个月前
[WSL2] 解决 WSL2 中 Docker 部署的 SearXNG 重启后,localhost 不能用的问题
docker·wsl2·searxng
m0_535817554 个月前
Claude Code在Linux/WSL2环境完整部署指南:API中转+避坑配置一篇搞定
linux·服务器·node.js·claude·wsl2·claudecode·88api