![板载键盘可与 Windows 10 子系统配合使用](https://linux22.com/image/1594255/%E6%9D%BF%E8%BD%BD%E9%94%AE%E7%9B%98%E5%8F%AF%E4%B8%8E%20Windows%2010%20%E5%AD%90%E7%B3%BB%E7%BB%9F%E9%85%8D%E5%90%88%E4%BD%BF%E7%94%A8.png)
我有一台在后台运行 Linux 的设备。我正在我的 Windows 10 机器上使用 Qt 编写代码。Qt 占用了大量的空间和时间,以至于我不敢双启动我的笔记本电脑来安装 Qt 进行测试。
我们想使用在船上由于其可自定义,因此我们将其用作屏幕键盘。我一直在运行适用于 Windows 10 的 Ubuntu 子系统,并且已在机上安装。但是,当我尝试运行它时,我得到:
hermes@DESKTOP-A66D2I7:~$ onboard &
[1] 2204
hermes@DESKTOP-A66D2I7:~$ Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
(onboard:2204): Gdk-WARNING **: 10:33:05.682: cannot open display:
我曾访问过这个网站:https://askubuntu.com/questions/768508/cant-launch-graphical-apps-from-terminal-after-updating-to-15-10,我尝试了两个答案中的命令,但无济于事。我没有名为 .Xauthority 的文件。
有人有解决方案吗?还是我必须卸载 Qt 并重新使用 ubuntu 作为我的日常操作系统?谢谢。