Event Type: PANIC` `Device:[GUI ]` `Message: Cannot Connect to X display.
linux0.11报错
Message bochs cannot connect to X server localhost0.0解决
这是因为wsl缺少窗口的原因,咱们安装一个窗口即可
咱们来安装窗口:XLaunch,去里面下载在windows上即可
然后打开XLaunch,一路缺省下一步
之后在wsl里面输入:
echo 'export DISPLAY=:0.0' >> .profile source ~/.bashrc sudo apt install x11-apps -y && xeyes
能看到这个眼睛就算成功了
之后就只要在桌面上打开XLaunch就行啦,只要桌面上有这就行
本篇文章参考自:https://zhuanlan.zhihu.com/p/128507562 十分感谢这位博主的分享!!!



