How to start linux with gui without monitor? [closed]

冷暖自知 提交于 2019-12-08 13:52:35

Your problem is that the X server checks whether there is really a monitor attached. Your options:

  1. Attach a monitor. Simple but wasteful.

  2. Use Xvnc instead. This is like X but it renders to memory, so it doesn't need a graphics card (and no drivers) and no monitor. You can even connect to it remotely via the VNC protocol.

The second option is actually pretty simple to implement: Just call vncserver :42

After export DISPLAY=:42, you can run your Qt application and it will connect to the virtual Xvnc server running on the virtual display 42 (0 is the default).

Restart the X server, open a tty window (alt + f1) or (alt+f2) then login on the terminal and run 'startx'. Otherwise try ssh-ing to the server and either attempt startx or reboot the machine.

Try to use Xvfb (x server with virtual framebuffer)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!