Input Signal Out of Range 问题 、RTL8111/8168B .....驱动问题

本文介绍如何使用台式机配置RedHat Enterprise Linux 5作为服务器,包括解决显示器信号范围问题及安装网卡驱动的具体步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

想用自己的台式机搞个服务器,系统架构是X86,操作系统选用 REDHAT企业版LINUX5
安装系统基本正常,但是在屏幕上出现:
Input Signal Out of Range
解决:
在命令行里输入:setup
选择X configuration -> hardware面板 ->MonitorType configuration 里面选择合适的显示器及其分辨率。我自己就选择的是LCD 1024*768
查看/etc/X11/xorg.conf,部分内容如下:
[color=black][b]
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 16
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768" "800x600" "720x400" "640x480" "640x400"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1024x768" "800x600" "720x400" "640x480" "640x400"
EndSubSection
EndSection
[/b]
[/color]
如果不一致,最好手动添加。


重启后就没问题了。


发现不能上网,通过命令
lsmood和lspci
发现没有加载网卡驱动模块,于是准备安装网卡驱动
查看网卡信息:
kudzu --probe --class=network
我机器的网卡是:RTL8111/8168B PCI Express Gigabit Ethernet controller
驱动下载地址:[url]http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false[/url]

把下载的r8168驱动文件拷贝到某一目录下,最好放在tmp目录:解压命令
bzip2 -d r8168-8.013.00.tar.bz2
tar -xvf r8168-8.013.00.tar
或者直接(tar jxvf r8168-8.013.00.tar.bz2)
进入该加压后的目录:
cd r8168-8.013.00
然后执行命令:
make clean modules

确出现如下错误:
# make clean modules
make -C src/ clean
make[1]: Entering directory `/root/Desktop/r8168-8.013.00/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers *.order
make[1]: Leaving directory `/root/Desktop/r8168-8.013.00/src'
make -C src/ modules
make[1]: Entering directory `/root/Desktop/r8168-8.013.00/src'
make -C /lib/modules/2.6.18-92.el5/build SUBDIRS=/root/Desktop/r8168-8.013.00/src modules
make: Entering an unknown directory
make: *** /lib/modules/2.6.18-92.el5/build: .....
make: Leaving an unknown directory
make[1]: *** [modules] error 2
make[1]: Leaving directory `/root/Desktop/r8168-8.013.00/src'
make: *** [modules] error 2

应该是没有安装kernel-devel等一些包
使用命令rpm -qa | grep kernel
如果装全了,会显示如下几个包:
kernel-xen-devel-2.6.18-8.el5
kernel-devel-2.6.18-8.el5
kernel-2.6.18-8.el5
kernel-xen-2.6.18-8.el5
kernel-headers-2.6.18-8.el5

我系统只有上述其中2个。立刻挂在CDROOM,就在redhat enterprise Linux 5.0第一个ISO的Server文件目录下可以找到对应的,将缺少的3个rpm包拷贝到tmp目录下 然后执行
rpm -ivh ******.rpm : 分别安装那3个包

查看有无gcc环境,因为要编译源码,所要需要gcc
在终端里输入gcc,如果显示 no input files,则证明系统已经有gcc环境,如果没有,请自行安装即可。

接下来:
执行清除网卡驱动命令、安装网卡模块命令:make clean modules
安装:make install
挂接:depmod –a
挂载驱动:insmod src/r8168.ko
输入命令查看挂载是否成功:
lsmod | grep r8168
如果输出信息,则证明已经成功。reboot OK
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值