繼續(xù)完善WSL2的圖形界面
2023-10-14 13:24 作者:不愛游戲的ri712 | 我要投稿

wsl -d debian
sudo nano /etc/sudoers
ri712 ALL=(ALL) NOPASSWD:ALL
nano ~/.profile
export LIBGL_ALWAYS_INDIRECT=ON
export WAYLAND_DISPLAY=
export MESA_GL_VERSION_OVERRIDE=3.3
sudo rm -rf /tmp/.X1-lock
sudo umount /tmp/.X11-unix
sudo rm -rf /tmp/.X11-unix
vncserver :1 -geometry 1600x900 -localhost no
sudo apt install tigervnc*
exit
wsl --shutdown
wsl -d debian
標(biāo)簽: