- 论坛徽章:
- 0
|
今天是2008年6月21日,很高兴在chinaunis上成功注册自己的播客,将自己平时使用linux过程中的点滴经验放到一起,一则方便各位网友参考指正,另一方面是为了汇成一个学习笔记,下次安装时参考。
![]()
首先说明一下,一,我习惯使用GNOME,二、我不想再陷入哪个LINUX发行版本更好的痛苦选择中,目前用RHEL 5.2;三、我的机器基本配置:cpu:Intel(R) Pentium(R) 4 CPU 2.40GHz+512内存+Nvidia FX5200+80G IDE硬盘。好了,开始吧!!
一、系统安装:系统安装采用光盘安装,以前一直从USB移动硬盘安装,前几天心血来潮,刻成了DVD,以示严肃和一切从头开始,呵呵。
1、安装语言:中文
2、键盘布局:美国英国式键盘 通用 105 键(国际)电脑
3、输入安装序列号
4、硬盘分区:采用自定义的分区结构,先删除原来硬盘上的分区,建立以下分区结构:
Driver /dev/hda (76317Mb) Model: WDCWD800BB-00DKA0
/dev/hda1
/boot
509M
ext3
/dev/hda2
2047M
swap
/dev/hda3
73759M
LVM PV
然后点击“LVM” 建立LVM逻辑卷,内容如下:
卷组名称:VolGroup00
物理范围:32M
要使用的物理卷:hda3 73728M (居然少了28M空间,哪去了?)
逻辑卷:LogVol00 / 73728M
5、引导装载程序记录的安装位置:/dev/hda主引导记录 (MBR)
6、网络设备:
Enable IPV4 support 指定为:
IP:192.168.0.1 Netmask:255.255.255.0
Enable IPV6 support auto
主机名:superman
网关:192.168.0.1 DNS:192.168.0.1
7、区域选择:
安装前将CMOS系统时钟提前8个小时,这里选择亚洲/上海,系统时钟使用UTC
8、输入根口令
9、安装内容:采用系统默认安装内容,然后选择的额外功能有:软件开发和虚拟化,点击“稍后定制”。
10、系统安装需要的内容全部搞定,点“下一步”进入安装过程,整个过程大约20分钟左右,完成后自动弹出光盘,点击“重新启动”。
二、首次启动配置
重新启动计算机后,系统进入首次启动配置界面,防火墙启动选择默认的SSH,SELinux设置选择为“强制”,软件更新选择“我将在以后注册”,创建用户,然后测试声卡,结束。
三、第一次进入系统
1、配置aDSL拨号网络:
[ysb@superman ~]$ su
口令:
[root@superman ysb]# system-config-network
弹出网络设置界面,依次点击 设备-->新建-->xDSL连接,输入以下内容:
以太网设备:eth0 提供商名称:adsl 登录名:****** 口令:******* 保存,退出。
2、激活adsl连接:
[root@superman ysb]# /sbin/ifup adsl
[root@superman ysb]# ping www.google.com
PING www-china.l.google.com (64.233.189.104) 56(84) bytes of data.
64 bytes from hk-in-f104.google.com (64.233.189.104): icmp_seq=1 ttl=244 time=165 ms
--- www-china.l.google.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 165.608/165.608/165.608/0.000 ms
马上点击“Web浏览器”,进入Internet,飞快地输入http://ysb.cublog.cn,修改这篇文章,呵呵:)
3、配置Nvidia FX5200显卡:
首先从http://www.nvidia.com上下载最新的驱动:NVIDIA-Linux-x86-173.14.09-pkg1.run
检查gcc编译器是否安装:
[root@superman tmp]# rpm -aq |grep gcc
gcc-c++-4.1.2-42.el5
compat-libgcc-296-2.96-138
libgcc-4.1.2-42.el5
gcc-4.1.2-42.el5
gcc-gfortran-4.1.2-42.el5
检查make工具是否安装:[root@superman tmp]# rpm -aq |grep make
make-3.81-3.el5
automake14-1.4p6-13
imake-1.0.2-3
automake17-1.7.9-7
automake15-1.5-16
automake-1.9.6-2.1
automake16-1.6.3-8
检查内核头文件:[root@superman tmp]# rpm -aq |grep kernel
kernel-headers-2.6.18-92.el5
kernel-xen-devel-2.6.18-92.el5
kernel-xen-2.6.18-92.el5
没有问题,该是安装的时候了
[root@superman tmp]# /sbin/init 3
在文本模式下,以root用户登录,输入以下命令:cp /etc/X11/xorg.conf /etc/X11/xorg.conf.myback
chmod 755 ./NVIDIA-Linux-x86-173.14.09-pkg1.run
export IGNORE_XEN_PRESENCE=y
./NVIDIA-Linux-x86-173.14.09-pkg1.run --kernel-source-path=/usr/src/kernels/2.6.18-92.el5-xen-i686/ --kernel-include-path=/usr/src/kernels/2.6.18-92.el5-xen-i686/include/
不必理会警告提示,系统会自动编译nvidia内核模块,然后配置xorg.conf中驱动程序部分。重新启动,出现NVIDIA的图标,显卡驱动成功!!
微调显示器参数:
从http://www.oakpc.com/pro/diy_newpro_crt.html查得该显示器参数:
TCL MF712
尺寸:17”(英寸)纯平显示器
点距:0.25mm
最大分辨率:1600x1200(逐行)
行频:30-86KHz
场频:30-160Hz
带宽:200KHz
控制方式:OSD控制
特有超智能“玲珑指”功能键
个人设置模式、亮丽模式、柔和模式、标准模式
采用独家特供的健康显象管、更多涂层、更多保护
修改/etc/X11/xorg.conf文件,内容如下:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildmeister@builder63) Thu Jun 5 00:11:12 PDT 2008
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder63) Thu Jun 5 00:10:21 PDT 2008
# Xorg configuration created by pyxf86config
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "ServerFlags"
Option "Xinerama" "0"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Tech. Concepts TCL MF712"
HorizSync 30.0 - 86.0
VertRefresh 50.0 - 160.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce FX 5200"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "TwinViewXineramaInfoOrder" "CRT-0"
Option "metamodes" "1024x768_85 +0+0; nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
运行glxgears测试如下:
[root@superman ysb]# glxgears
6698 frames in 5.0 seconds = 1339.493 FPS
6809 frames in 5.0 seconds = 1361.772 FPS
6761 frames in 5.0 seconds = 1352.193 FPS
6652 frames in 5.0 seconds = 1330.321 FPS
6716 frames in 5.0 seconds = 1343.103 FPS
X connection to :0.0 broken (explicit kill or server shutdown).
虽然显卡太老,但齿轮转得还算流畅吧!呵呵
4、设置本地DVD iso文件作为软件安装源,(不指望从redhat官方网站更新系统,为什么,呵呵,你猜猜)
[root@superman myconfig]# mount -o loop /mnt/rhel-5.2-server-i386-dvd.iso /mnt/cdrom/
[root@superman myconfig]# mkdir /etc/yum.repos.d/back
[root@superman myconfig]# cp /etc/yum.repos.d/rhel-debuginfo.repo /etc/yum.repos.d/back/
[root@superman myconfig]# gedit /etc/yum.repos.d/rhel-debuginfo.repo
修改为以下内容:
[base]
name=base RPM Repository for RHEL5
baseurl=file:/mnt/cdrom/Server/
enabled=1
gpgcheck=0
继续
[root@superman myconfig]# cd /usr/lib/python2.4/site-packages/yum/
[root@superman yum]# cp yumRepo.py yumRepo.py.myback
[root@superman yum]# gedit yumRepo.py
修改修改607行为:
remote = 'file:/mnt/cdrom/Server/' + '/' + relative
OK,进入“应用程序”--“添加/删除程序”试试!
![]()
好了,今天就到这里吧,为了写这篇文章,我可累死了,安装就到这里吧,至于其它的内容,我会在其他文章中陆续写出!
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/71976/showart_1006579.html |
|