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

相关推荐
全息数据16 天前
WSL2 中将 Ubuntu 20.04 升级到 22.04 的详细步骤
深度学习·ubuntu·wsl2
人工智能训练18 天前
在Windows系统Docker中使用wsl2、容器、windows文件路径三种不同挂载方式的区别和性能差异
运维·服务器·人工智能·windows·docker·容器·wsl2
C2H5OH6661 个月前
Podman讲解
docker·centos·vmware·podman·wsl2·sqlbot
赴遥1 个月前
WSL2下Ubuntu20.04图形化环境配置
ubuntu·wsl2·xfce4·图形化页面
赴遥1 个月前
[出现错误 2147942402 (0x80070002) (启动“ubuntu2004.exe”时)]
ubuntu·win11·wsl2
习惯就好zz1 个月前
WSL2 安装Ubuntu卡在安装进度0%无响应问题解决
linux·windows·ubuntu·wsl·wsl2
欧克小奥2 个月前
Win10使用WSL2安装ubuntu22.04
ubuntu·wsl2
aitav02 个月前
⚡ WSL2 搭建 s5p6818 Linux 嵌入式开发平台(part 1):环境准备与架构设计
linux·嵌入式·wsl·wsl2
探模之翼4 个月前
利用 Windows GPU 在 WSL2 中安装并配置 CUDA Toolkit
cuda·wsl2
大大大反派4 个月前
WSL2环境下的Claude Code与lanyuncodingui安装与配置
wsl2·lanyuncodingui