欢迎光临散文网 会员登陆 & 注册

跳过前戏,我要给WSL2完整的图形界面

2023-08-24 13:10 作者:不爱游戏的ri712  | 我要投稿

wsl -d debian


sudo passwd root


exit


debian config --default-user root


wsl -d debian


cd ~


nano /etc/apt/sources.list


# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释

deb


Index of /debian/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror

http://mirrors.tuna.tsinghua.edu.cn/debian/


bookworm main contrib non-free non-free-firmware

# deb-src


Index of /debian/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror

http://mirrors.tuna.tsinghua.edu.cn/debian/


bookworm main contrib non-free non-free-firmware


deb


Index of /debian/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror

http://mirrors.tuna.tsinghua.edu.cn/debian/


bookworm-updates main contrib non-free non-free-firmware

# deb-src


Index of /debian/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror

http://mirrors.tuna.tsinghua.edu.cn/debian/


bookworm-updates main contrib non-free non-free-firmware


deb


Index of /debian/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror

http://mirrors.tuna.tsinghua.edu.cn/debian/


bookworm-backports main contrib non-free non-free-firmware

# deb-src


Index of /debian/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror

http://mirrors.tuna.tsinghua.edu.cn/debian/


bookworm-backports main contrib non-free non-free-firmware


# deb


Index of /debian-security/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror

http://mirrors.tuna.tsinghua.edu.cn/debian-security


bookworm-security main contrib non-free non-free-firmware

# # deb-src


Index of /debian-security/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror

http://mirrors.tuna.tsinghua.edu.cn/debian-security


bookworm-security main contrib non-free non-free-firmware


deb


http://security.debian.org/debian-security


bookworm-security main contrib non-free non-free-firmware

# deb-src


http://security.debian.org/debian-security


bookworm-security main contrib non-free non-free-firmware


apt update && apt upgrade -y


apt install xfce4 xfce4-goodies dbus-* -y


export DISPLAY=192.168.3.5:0


nano /etc/profile


export XDG_RUNTIME_DIR=/usr/lib/

export RUNLEVEL=3


source /etc/profile


startxfce4

跳过前戏,我要给WSL2完整的图形界面的评论 (共 条)

分享到微博请遵守国家法律