无法进入图形界面的解决过程

2016-01-29 19:10 12 1 收藏

无法进入图形界面的解决过程,无法进入图形界面的解决过程

【 tulaoshi.com - Linux 】

  首先说明,我是一个新手,所有有些地方可能很菜,有不对的地方还请大虾教导。

我安装的是Red Hat Linux 9(另一个系统是Windows Xp),安装时候无法进入图形界面,提示"注意:显示超出范围: H: xx KHz V: xxHz" ,然后黑屏,没有办法,只好使用文字界面安装,不过安装还是能成功的。采用grub登陆。之后进入Linux系统,在进入图形界面的时候,出现同样的提示,然后黑屏。
原因是默认显卡的驱动于显卡不符,我的显卡是GF FX5200 128M,找到驱动程序,但文件6MB多(NVIDIA-Linux-x86-1.0-5336-pkg1.run),没法用磁盘,因为我有Combo,所以,驱动程序刻在光盘上。(安装的时候参照http://www.nvidia.com/object/linux_display_ia32_1.0-5336.html)

具体解决过程:
1、在出现选择菜单时按e,然后选择第二行(kernel *那一行)再按e,在结尾处输入空格1.然后回车,按b引导.
2、出现提示符后,vi /etc/inittab把id:5:initdefault的5改成3。 (具体修改方法:用方向键找到要修改的地方,按键盘上的'Insert',向Word编辑一样修改,之后按ESC,再按:W,然后Ctrl-z即可)
3、reboot
4、启动后用root登陆
5、把刻好的光盘放进光驱,mount /mnt/cdrom
     cd /mnt/cdrom
6、cp NVIDIA-Linux-x86-1.0-5336-pkg1.run root
     cd /root
7、sh NVIDIA-Linux-x86-1.0-5336-pkg1.run
8、依照驱动程序的说明修改ftp://download.nvidia.com/XFree86/Linux-x86/1.0-5336/README
   主要的一步如下:__________________________________________________________________________

(sec-03) EDITING YOUR XF86CONFIG FILE
__________________________________________________________________________

When XFree86 4.0 was released, it used a slightly different XF86Config
file syntax than the 3.x series did, and so to allow both 3.x and 4.x
versions of XFree86 to co-exist on the same system, it was decided that
XFree86 4.x was to use the configuration file "/etc/X11/XF86Config-4"
if it existed, and only if that file did not exist would the file
"/etc/X11/XF86Config" be used (actually, that is an over-simplification
of the search criteria; please see the XF86Config man page for a complete
description of the search path).  Please make sure you know what
configuration file XFree86 is using.  If you are in doubt, look for a
line beginning with "(==) Using config file:" in your XFree86 log file
("/var/log/XFree86.0.log").  This README will use "XF86Config" to refer
to your configuration file, whatever it is named.

If you do not have a working XF86Config file, there are several ways
to start: there is a sample config file that comes with XFree86,
and there is a sample config file included with the NVIDIA driver
package (it gets installed in /usr/share/doc/NVIDIA_GLX-1.0/).
You could also use a program like 'xf86config'; some distributions
provide their own tool for generating an XF86Config file.  For more
on XF86Config file syntax, please refer to the man page.

If you already have an XF86Config file working with a diff

来源:http://www.tulaoshi.com/n/20160129/1508635.html

延伸阅读
 在高级API编程时,你不能控制显示在屏幕上的内容,甚至用编程方式几乎无法控制这些组件。由系统实现体负责选取设备的最佳显示方式。然而,一些如游戏类的应用程序可能需要对屏幕绘制有更多的控制。MIDP javax.microedition.lcdui包也提供了处理这类编程的低级API。 为了在屏幕直接绘制直线,文本和形状,你必须使用Canvas类。该类提供了...
除了基于屏幕的组件外,你还应该掌握使用表单把多个组件组织到一个屏幕上去。这一部分将讨论Form类和可以放置到表单上去的组件。 1. Form 一个表单对象是一个screen,它可以包含任意的项,包括只读的和可编辑的文本框,图像,日期域,gauge以及选项组组件。前面已提到,任何Item类的子类都可以放置到表单对象上去。Form类的构造器如下: ...
标签: Web开发
Hxyman Popo Ver 1.0 [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行] 谢谢大家支持,玩法如Rimifon版主所说: 玩家1的方向键:asdw,炸弹为空格 玩家2的方向键位键盘方向键,炸弹为回车 可以炸出绿色泡泡和红色加威力的五角星。 图形都是字符,所以不太好看。 [2006-9-10] 这两天我把它改成图形界面...
  看过一个关于screen的例子后,你应该会问起:你是如何来组织这些screen的?在它们之间是如何导航的?你是如何管理显示及输入设备的?回答是,所有的功能皆由Display类来实现,它提供了相应的方法用于把对象显示在设备的屏幕上以及用于检索设备的属性等。 1. Display 一个指向设备的display的引用可以通过提供一个MIDlet引用给静态方...
VNCserver使用 在Linux上启动VNC Server , 执行命令vncserver [root@linux root]# vncserver You will require a password to access your desktops. Password: ***** 为了不想任何人都可以任意遥控此计算机。因此当第 1次启动VNC server时,会要求设置网络遥控的密码。 Verify: ***** New ‘X’ desk...

经验教程

383

收藏

17
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部