1。下载fc5的五张iso文件进行硬盘安装。下载地址
http://download.fedora.redhat.com/pub/fedora/linux/core/5/i386/iso/ 前面的五张iso全部下载下来。因为fc5的镜像站很多,强烈建议用迅雷下载,同时设置迅雷的连接数为512,可以使下载速度达到adsl的峰值。
2。安装过程,详见 http://fedora.linuxsir.org/main/?q=node/129
3。配置指南 ,有过很多次的失败经验了,所以安装起来轻车熟路。重要的地方写出来吧。
<ol><li>修改启动选项。因为我的机子上安装了独立的三套系统。分别是 xp,2003,和fc5。为了能正确的引导系统,要去修改一下grub的启动菜单。打开/boot/grub/menu.lst 编辑为以下内容。[code]# grub.conf generated by anaconda
#
# note that you do not have to rerun grub after making changes to this file
# notice: you do not have a /boot partition. this means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,2)
# kernel /boot/vmlinuz-version ro root=/dev/hdb3
# initrd /boot/initrd-version.img
#boot=/dev/hdb
default=0
timeout=3
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
hiddenmenu
title fedora core (2.6.15-1.2054_fc5)
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-1.2054_fc5 ro root=label=linux rhgb quiet
initrd /boot/initrd-2.6.15-1.2054_fc5.img
#title windows xp sp2
rootnoverify (hd0,0)
chainloader +1
title windows server 2003
rootnoverify (hd0,1)
chainloader +1
[/code]</li><li>将所有的windows分区别载到linux系统下 进入/etc/fstab文件编辑后的文件内容如下[code]label=linux / ext3 defaults 1 1
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/hdb5 swap swap defaults 0 0
/dev/hdb1 /mnt/xp vfat defaults 0 0
/dev/hdb2 /mnt/2003 vfat defaults 0 0
/dev/hdb6 /mnt/xzh vfat defaults 0 0
/dev/hdb7 /mnt/pro vfat defaults 0 0
/dev/hdb8 /mnt/bak vfat defaults 0 0
[/code]
在终端输入 mount -a
</li><li>加入其它一些有用的yum源方便以后的安装。
使用如下命令加入<a href=”http://rpm.livna.org/%e6%ba%90%ef%bc%9a” target=”_blank”>http://rpm.livna.org/</a>
rpm -ivh <a href=”http://rpm.livna.org/livna-release-5.rpm” target=”_blank”>http://rpm.livna.org/livna-release-5.rpm</a>
实际有网络上有很多源可用,但为了避免冲突,现只加入这一个源。
你可以在<a href=”http://rpm.livna.org/fedora/5/i386/” target=”_blank”>http://rpm.livna.org/fedora/5/i386/</a> 浏览该源提供的软件包。</li><li>a 假设你下载的iso文件存于/dev/hda6分区中,且你已挂载好了分区,现你的/dev/hda6分区已经
挂载到/mnt/hda6目录上,假设此时你的/mnt/hda6中的 iso文件如下:
/mnt/hda6/fc-5-i386-disc1.iso
/mnt/hda6/fc-5-i386-disc2.iso
/mnt/hda6/fc-5-i386-disc3.iso
/mnt/hda6/fc-5-i386-disc4.iso
/mnt/hda6/fc-5-i386-disc5.iso
然后在目录/mnt下创建目录iso1,iso2,iso3,iso4,iso5。可使用如下命令完成:
mkdir -p /mnt/iso1 /mnt/iso2 /mnt/iso3 /mnt/iso4 /mnt/iso5
b 现在将我们的iso文件挂载到上面几个目录上,为方便以后的操作,使用很简单的shell程序来完成这个操作
使用gedit输入以下内容:
mount -o loop /mnt/hda6/fc-5-i386-disc1.iso /mnt/iso1
mount -o loop /mnt/hda6/fc-5-i386-disc2.iso /mnt/iso2
mount -o loop /mnt/hda6/fc-5-i386-disc3.iso /mnt/iso3
mount -o loop /mnt/hda6/fc-5-i386-disc4.iso /mnt/iso4
mount -o loop /mnt/hda6/fc-5-i386-disc5.iso /mnt/iso5
于文件名mount_iso存入目录/mnt,然后用命令chmod a+x /mnt/mount_iso使其成为可执行文件。
为方便以后卸载iso文件,在gedit输入以下内容:
umount /mnt/hda6/fc-5-i386-disc1.iso /mnt/iso1
umount /mnt/hda6/fc-5-i386-disc2.iso /mnt/iso2
umount /mnt/hda6/fc-5-i386-disc3.iso /mnt/iso3
umount /mnt/hda6/fc-5-i386-disc4.iso /mnt/iso4
umount /mnt/hda6/fc-5-i386-disc5.iso /mnt/iso5
于文件名umount_iso存入目录/mnt,然后用命令chmod a+x /mnt/umount_iso使其成为可执行文件。
现在输入命令/mnt/mount_iso就可以挂载你的iso文件。你可到/mnt/iso1目录内看看是否已经有你想要的内容了。
c 现设置iso仓库,使用你喜欢的文本编辑工具(建议使用gedit)输入以下内容:
[iso]
name=iso
baseurl=
file:///mnt/iso1
file:///mnt/iso2
file:///mnt/iso3
file:///mnt/iso4
file:///mnt/iso5
failovermethod=priority
enabled=1
gpgcheck=0
于文件名iso.repo存入目录/etc/yum.repos.d/。
同时打开/etc/yum.repos.d/fedora-core.repo文件将enabled=1改为enabled=0,即不再使用该仓库了。
以上将使得在安装软件是使用core仓库包时使用我们下载的iso文件而不使用
<span style=”text-decoration: underline”>http://download.fedora.redhat.com/pub/fedora/linux/core/ </span>的软件包,
可大大加快我们软件安装过程。
d 现在你可以使用该iso源用yum安装软件了,当需要core仓库中的包时将直接从我们本地的iso仓库中安装,这可大大节省时间。
当你安装完了软件后,不想使iso再被挂载着,只需运行/mnt/umount_iso就可以了。记住了,每次装软件前别忘了挂载iso文件。即运行命令:/mnt/mount_iso
下面是我自己的修改后的文件
mount_iso[code]mount -o loop /mnt/pro/fc5/fc-5-i386-disc1.iso /mnt/iso1
mount -o loop /mnt/pro/fc5/fc-5-i386-disc2.iso /mnt/iso2
mount -o loop /mnt/pro/fc5/fc-5-i386-disc3.iso /mnt/iso3
mount -o loop /mnt/pro/fc5/fc-5-i386-disc4.iso /mnt/iso4
mount -o loop /mnt/pro/fc5/fc-5-i386-disc5.iso /mnt/iso5
[/code]
unmount_iso [code]umount /mnt/pro/fc5/fc-5-i386-disc1.iso /mnt/iso1
umount /mnt/pro/fc5/fc-5-i386-disc2.iso /mnt/iso2
umount /mnt/pro/fc5/fc-5-i386-disc3.iso /mnt/iso3
umount /mnt/pro/fc5/fc-5-i386-disc4.iso /mnt/iso4
umount /mnt/pro/fc5/fc-5-i386-disc5.iso /mnt/iso5 [/code]
iso.repo[code][iso]
name=iso
baseurl=file:///mnt/iso1 file:///mnt/iso2 file:///mnt/iso3 file:///mnt/iso4 file:///mnt/iso5
failovermethod=priority
enabled=1
gpgcheck=0
[/code]</li><li> 安装mp3插件,播放我们心爱的mp3歌曲。
我一般使用xmms来播放mp3,建议不要用bmp,因为在我的机子上即使装上了mp3插件也不播放不了mp3。不知你的能否?
输入命令:
yum install xmms
yum install xmms-mp3
完成后即可听mp3了。但是歌曲名称还是会显示乱码,解决方法以后补充。</li><li>安装mplayer播放各种视频。
输入:
yum install mplayer
yum install mplayer-gui
这时已经有mplayer的gui界面可以让你选择了,但是如果没有安装相关的decode还是不能正确的播放视频,一般会出现的情况是 有声音没图像。</li><li>如果不能重命名文件名,使用gedit的时候不能正确的编辑和保存。可以在终端输入
yum update scim scim-libs gedit
</li></ol>
这是配置的一部份,其它过几天再补充。