single,进入单用户模式,然后在/etc/inittab里面把启动模式改为id:3:initdefault:(默认值是5) 就可以了,也就是让系统以文本方式启动。。重启,在到GRUB那选择系统的时候,我们选择Fedora Core 6 (2.6.18-1.2798.fc6xen),按下E建,然后你会看到
root (hd0,6)
kernel /boot/xen.gz-2.6.18-1.2798.fc6
module /boot/vmlinuz-2.6.18-1.2798.fc6xen ro root=LABEL=/1 rhgb quiet
module /boot/initrd-2.6.18-1.2798.fc6xen.img
按键盘的上下键选中 module /boot/vmlinuz-2.6.18-1.2798.fc6xen ro root=LABEL=/1 rhgb quiet 再按E键,这时候会出现编辑状态,你只要在这行的后面,也就是quiet加上linux single
例如:module /boot/vmlinuz-2.6.18-1.2798.fc6xen ro root=LABEL=/1 rhgb quiet linux sigle
OK,回车再按一下B键,这时候我们就可以进入单用户模式了,
进来后,我们用vi编辑器编辑/etc/inittab文件
例如:
#vi /etc/inittab
# inittab This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
# Modified for RHS Linux by Marc Ewing and Donnie Barnes
#
# Default runlevel. The runlevels used by RHS are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
id:3:initdefault:
# System initialization.
si::sysinit:/etc/rc.d/rc.sysinit
l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6
# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
# When our UPS tells us power has failed, assume we have a few minutes
# of power left. Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working correctly.
pf::powerfail:/sbin/shutdown -f -h +2 "ower Failure; System Shutting Down"
# If power was restored before the shutdown kicked in, cancel it.
pr:12345:powerokwait:/sbin/shutdown -c "ower Restored; Shutdown Cancelled"
# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6
# Run xdm in runlevel 5
x:5nce:/etc/X11/prefdm -nodaemon
找到id:5:initdefault:这行,把5改为3就OK,保存退出.
#reboot (重启)
重启后,我们再启动FC6试试,HOHO,终于不黑屏很顺利的进去了,不过别高兴,路还很长呢!
登录超级管理员帐号后,第一个要做的就是添加YUN源,这样我们才能YUN到最新的内核和显卡驱动哦!这是最辛苦的一步,因为是一个字一个字输入进去的,大家按照我下面的方法做就可以了
Freshrpms.net 上的Yum 源
[root@localhost~]# rpm -ivh ... 1.1-1.fc.noarch.rpm
接着我们导入Freshrpms.net 的签名
[root@localhost~]# rpm --import
Atrpms.net 上的Yum 源
首先,我们要改一下/etc/yum.repos.d目录中的 fedora-extras.repo 文件,加入下面一段;
[atrpms]
name=Fedora Core 5 - i386 - ATrpms
baseurl=http://dl.atrpms.net/fc6-i386/atrpms/stable/
然后导入 Atrpms.net 的软件包签名
[root@localhost~]# rpm --import
rpm.livna.org 上的Yum源
[root@localhost~]# rpm -ivh
#yum -y install kernel
我们先升级到最新的内核,
之后就是系统自动安装了
装好后,继续
#yum -y install kmod-nvidia
这里就是显卡的驱动了,还是一样,
然他自动安装完。
两个都装好之后,我们重启系统,在GRUB那选择最新的内核版本,启动他,登录帐号
#startx
^_^ 是不是有惊人的发现呢,YE,X-WINDOWS