如何在没有监视器的情况下使用gui启动linux? [英] How to start linux with gui without monitor?

查看:130
本文介绍了如何在没有监视器的情况下使用gui启动linux?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个问题. 我有一台安装了Redhat Enterprise 5.5的服务器. 这个服务器上正在运行一个Qt程序. 因此,我应该做的是打开服务器,该服务器将使用Gui自动启动,并且Qt程序将自动启动. 我在桌面上完成了所有工作. 但是当我在没有监视器的情况下启动此服务器时,我们知道服务器在没有监视器的情况下运行,X服务器变坏了.上帝,我该怎么办?

I met a problem. I had a server which is installed redhat enterprise 5.5. And one Qt program was running on this server. So what I should do is to turn on my server, the server will start automaticly with Gui and that Qt program will start automaticly. I finished all on my desktop. But while I start this server without monitor, we know server was running without monitor,the X server go bad.God, what should I do?

这是xorg日志:

[root@localhost grub]# tail -n 30 /var/log/Xorg.0.log
ABI class: X.Org Video Driver, version 1.0
(II) Loading sub module "i2c"
(II) LoadModule: "i2c"
(II) Loading /usr/lib/xorg/modules/libi2c.so
(II) Module i2c: vendor="X.Org Foundation"
compiled for 7.1.1, module version = 1.2.0
ABI class: X.Org Video Driver, version 1.0
(II) intel(0): Output VGA has no monitor section
(II) intel(0): I2C bus "CRTDDC_A" initialized.
(II) intel(0): EDID for output VGA
(II) intel(0): Output VGA disconnected
(WW) intel(0): No outputs definitely connected, trying again...
(II) intel(0): Output VGA disconnected
(WW) intel(0): Unable to find initial modes
(EE) intel(0): No valid modes.
(II) UnloadModule: "intel"
(II) UnloadModule: "i2c"
(II) Unloading /usr/lib/xorg/modules/libi2c.so
(II) UnloadModule: "ddc"
(II) Unloading /usr/lib/xorg/modules/libddc.so
(II) UnloadModule: "vgahw"
(II) Unloading /usr/lib/xorg/modules/libvgahw.so
(II) UnloadModule: "vbe"
(II) Unloading /usr/lib/xorg/modules/libvbe.so
(II) UnloadModule: "int10"
(II) Unloading /usr/lib/xorg/modules/libint10.so
(EE) Screen(s) found, but none have a usable configuration.
Fatal server error:
no screens found

我在互联网上搜索,有人告诉我,我应该在/boot/grub/grub.conf的内核行末尾添加nomodeset. 谁能告诉我该怎么办?

I searched on internet,somebody told me that I should add nomodeset in the end of the kernel line in /boot/grub/grub.conf.I did it but nothing changed. Can anybody tell me what should I do?

smarthand123@163.com

smarthand123@163.com

推荐答案

您的问题是X服务器检查是否确实有监视器连接.您的选择:

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

  1. 安装显示器.简单但浪费.

  1. Attach a monitor. Simple but wasteful.

改用Xvnc.就像X一样,但是它渲染到内存中,因此它不需要图形卡(也不需要驱动程序)和监视器.您甚至可以通过VNC协议远程连接到它.

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.

第二个选项实际上很容易实现:只需调用vncserver :42

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

export DISPLAY=:42之后,您可以运行Qt应用程序,它将连接到虚拟显示器42(默认值为0)上运行的虚拟Xvnc服务器.

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).

这篇关于如何在没有监视器的情况下使用gui启动linux?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆