荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: gdlituo (gdlituo), 信区: Linux
标  题: fedora2初步安装总结
发信站: 荔园晨风BBS站 (2004年11月06日10:52:37 星期六), 转信

本文参考来自
http://www.linuxsir.org/bbs/showthr...threadid=106225
http://www.linuxsir.org/bbs/showthr...threadid=109659
http://www.linuxsir.org/bbs/showthr...threadid=109912
http://www.linuxsir.org/bbs/showthr...p;postid=637548


安装
建议初学者从光盘安装,我有烧鸡,又有空盘,所以我是刻碟安装的
1.设置从光盘启动
2.去到光盘检测界面之后按skip跳过检查,如果你知道你的盘已经有其他人装过了就不用
检测了
3.选择安装语言,一般选择简体中文
4.选择键盘,默认
5.选择选安装类型,选定制
6.选择分区方式,此处不能默认,要选手分区
7.分区,分一个swap分区和一个根分区,文件系统格式默认
8.定制启动选单,选Other表示默认启动Windows,如果你是安装了Windows的话
9.配置联网
10.端口,勾上www,ftp,telnet,其中telnet是BBS
11.安装语言,这里你应该把English勾上
12.确认时区,默认
13.创建密码,至少6位
14.定制软件包,初次安装选择完全安装,完全安装要至少7G的空间
15.安装完成
16.基本配置──许可协议->日期时间->显示->用户帐户->声卡->额外光盘->结束设置


配置
一、全自动字体美化包五一版(修正版)for redhat/fedora提供下载
http://www.linuxsir.org/bbs/showthread.php?s=&threadid=106225

[root@gdlituo root]# sh linuxsir-fontconfig-3.2.1.run

之后就等上两三分钟就行了,其间你可以去做其他的工作。

据说对fedora的支持不太好,所以有点收尾的工作

1.停掉系统自带的输入法

[root@gdlituo root]# serviceconf

去掉IIIm前面的小勾,保存推出

2.删除自带的输入法
[root@gdlituo root]# rpm -e miniChinput


二、fcitx-3.0.2-1.rpm.i386最新稳定版
http://www.fcitx.org/main/?q=node/view/9

1.卸装旧版fcitx(全自动字体美化包搞的鬼)

[root@gdlituo root]# rpm -e fcitx

2.安装新版fcitx
[root@gdlituo root]# rpm -ivh fcitx-3.0.2-1.i386.rpm
Preparing...                ########################################### [100%]
   1:fcitx                  ########################################### [100%]

3.配置
[root@gdlituo root]# vi .bashrc
加入以下内容
#FCITX
export XMODIFIERS="@im=fcitx"
export XIM=fcitx
export XIM_PROGRAM=fcitx

#LOCALE setup
export LC_ALL=zh_CN
export LANG=zh_CN

#load fcitx
fcitx&
如果对vi感到陌生,那就用文本编辑器

重启之后应该可以打开输入法了


三、fedora2支持ntfs格式的最简单方法
1.下载补丁
http://download.linuxsir.org/ntfs/k...5-1.358.tar.bz2

2.查看内核版本
[root@gdlituo kernel-ntfs-2.6.5-1.358]# uname -a
Linux gdlituo 2.6.5-1.358 #1 Sat May 8 09:04:50 EDT 2004 i686 athlon i386
GNU/Linux

3.解压
[root@gdlituo root]# tar jxvf kernel-ntfs-2.6.5-1.358.tar.bz2
kernel-ntfs-2.6.5-1.358/
kernel-ntfs-2.6.5-1.358/kernel-ntfs-smp-2.6.5-1.358.i586.rpm
kernel-ntfs-2.6.5-1.358/kernel-ntfs-smp-2.6.5-1.358.i686.rpm
kernel-ntfs-2.6.5-1.358/kernel-ntfs-2.6.5-1.358.i586.rpm
kernel-ntfs-2.6.5-1.358/kernel-ntfs-2.6.5-1.358.i686.rpm

4.安装
[root@gdlituo root]# cd kernel-ntfs-2.6.5-1.358
[root@gdlituo kernel-ntfs-2.6.5-1.358]# rpm -ivh
kernel-ntfs-2.6.5-1.358.i686.rpm
Preparing...                ########################################### [100%]
   1:kernel-ntfs            ########################################### [100%]
_______________________________________________________________________________


The Linux NTFS RPM has been successfully installed.

Please read the NTFS FAQ if you want to know how to:

 * Mount an NTFS partition
 * Change the permissions/ownership of a mounted NTFS partition
 * Automatically mount an NTFS partition

FAQ: http://linux-ntfs.sourceforge.net/info/ntfs.html
RPM: http://linux-ntfs.sourceforge.net/rpm/index.html
SRC: http://linux-ntfs.sourceforge.net/rpm/rpmsrc.html
_______________________________________________________________________________


5.查看分区
[root@gdlituo kernel-ntfs-2.6.5-1.358]# fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        1275    10241406    7  HPFS/NTFS
/dev/hda2            1276        9728    67898722+   f  W95 Ext'd (LBA)
/dev/hda5            1276        3187    15358108+   b  W95 FAT32
/dev/hda6            3188        4295     8899978+  83  Linux
/dev/hda7            4296        5402     8891946   83  Linux
/dev/hda8            5403        6510     8899978+  83  Linux
/dev/hda9            6511        7618     8899978+  83  Linux
/dev/hda10           7619        7650      257008+  82  Linux swap
/dev/hda11           7651        9696    16434463+  83  Linux
/dev/hda12           9697        9728      257008+  82  Linux swap

我来解析一下
/dev/hda1
123456789
1~5是没什么好说的,大家都一样,6处的子母表示硬盘连接方式,有h和s两种,h代表IDE
,s代表SATA,如果你的是ATA的硬盘,那就是h,如果你的是SATA(串口)硬盘,那就应该
是s;7处的大家一样;8处有区别,如果你是IDE的,也就是6处是h的, 那么a就代表第一I
DE插槽,b代表第二插槽,依此类推;9处是分区号。从上面的信息可以知道,我的是ATA硬
盘,接的是第一插槽。
我的分区是ntfs的盘是/dev/hda1,所以我可以通过以下步骤挂载它

1)建挂载点,假设我挂载点选择位/mnt/C(C是名字,你可以任意选取名字,只要你能把它
记住,我图方便才叫它为C)
[root@gdlituo kernel-ntfs-2.6.5-1.358]# mkdir /mnt/C
2)挂载
[root@gdlituo root]# mount -t ntfs -o iocharset=gb2312 /dev/hda1 /mnt/C
如果你不需要它能够显示中文,中间的-o iocharset=gb2312 可以省略,像这样
[root@gdlituo root]# mount -t ntfs /dev/hda1 /mnt/C
这样它就不能显示中文
这样我就可以对ntfs的盘进行读操作了,可以导出从中文件,但是不能支持写入,如果你
要写的话就必需升级你的内核。


四、从Windows拷贝字体
1.挂载Windows系统盘
具体看三

2.拷贝字体
假设你的挂载点是/mnt/C
[root@gdlituo Fonts]# cp /mnt/C/WINDOWS/Fonts/simsun.ttc
/usr/share/fonts/zh_CN/TrueType/
[root@gdlituo Fonts]# cp /mnt/C/WINDOWS/Fonts/verdana.ttf
/usr/share/fonts/zh_CN/TrueType/
[root@gdlituo Fonts]# cp /mnt/C/WINDOWS/Fonts/verdanab.ttf
/usr/share/fonts/zh_CN/TrueType/
[root@gdlituo Fonts]# cp /mnt/C/WINDOWS/Fonts/verdanai.ttf
/usr/share/fonts/zh_CN/TrueType/
[root@gdlituo Fonts]# cp /mnt/C/WINDOWS/Fonts/verdanaz.ttf
/usr/share/fonts/zh_CN/TrueType/
[root@gdlituo Fonts]# cp /mnt/C/WINDOWS/Fonts/tahoma.ttf
/usr/share/fonts/zh_CN/TrueType/
[root@gdlituo Fonts]# cp /mnt/C/WINDOWS/Fonts/tahomabd.ttf
/usr/share/fonts/zh_CN/TrueType/
[root@gdlituo Fonts]# cd /usr/share/fonts/zh_CN/TrueType/
[root@gdlituo TrueType]# ls
fonts.cache-1  fonts.scale   gkai00mp.ttf  tahomabd.ttf  verdanab.ttf
verdana.ttf
fonts.dir      gbsn00lp.ttf  simsun.ttc    tahoma.ttf    verdanai.ttf
verdanaz.ttf

3.让系统认字
[root@gdlituo TrueType]# cd ~
[root@gdlituo root]# fc-cache -f

五、安装播放器Xine
请参考http://cambuca.ldhs.cetuc.puc-rio.br/xine/,上面的介绍还算详细

六、安装播放器xmms
这步是给定制安装时没有安装音频设备的

1.安装glib
下载请到11.3
[root@gdlituo installed]# tar zxvf glib-2.4.0.tar.gz
[root@gdlituo installed]# cd glib-2.4.0
[root@gdlituo glib-2.4.0]# ./configure
[root@gdlituo glib-2.4.0]# make
[root@gdlituo glib-2.4.0]# make install

2.安装xmmx1.2.8
[root@gdlituo installed]# rpm -ivh xmms-1.2.8-1hmg.i386.rpm
Preparing...                ########################################### [100%]
   1:xmms                   ########################################### [100%]
[root@gdlituo installed]# rpm -ivh xmms-skins-1.2.8-1hmg.i386.rpm
Preparing...                ########################################### [100%]
        file /usr/share/xmms/Skins/Bluecurve-xmms.zip from install of
xmms-skins-1.2.8-1hmg conflicts with file from package redhat-artwork-0.96-1

3.运行xmms
[root@gdlituo root]# xmms

六、安装realplayer10.0
在80.38上面下载
[root@gdlituo installed]# rpm -ivh RealPlayer10GOLD.rpm

七、安装mplayer
见本版保留贴

八、安装gftp
gftp
[root@gdlituo installed]# tar zxvf gftp-2.0.17.tar.gz
[root@gdlituo installed]# cd gftp-2.0.17/
[root@gdlituo gftp-2.0.17]# ./configure
[root@gdlituo gftp-2.0.17]# make
[root@gdlituo gftp-2.0.17]# make install
假如在使用的过程中出现远程目录中文显示乱码,请在/文件/选项/远程字符集 填入gb231
2

九、安装zhcon
80.38的software/16software/fonts/zhcon-0.2.3-1.i386.rpm
[root@gdlituo root]# rpm -ivh zhcon-0.2.3-1.i386.rpm
Preparing...                ########################################### [100%]
   1:zhcon                  ########################################### [100%]
按Ctrl+Alt+F1,登录
[root@gdlituo root]# zhcon
[root@gdlituo root]# setup
你可以定制你的系统服务了


升级篇
一、内核编译与升级
1.uname命令查看linux内核版本,我的是fedora2,内核版本是2.6.5
[root@gdlituo root]# uname -a
Linux gdlituo 2.6.5-1.358 #1 Sat May 8 09:04:50 EDT 2004 i686 athlon i386
GNU/Linux

2.从192.168.80.38拉下linux-2.6.9.tar.bz2,在software/16linuxsoft/kernel文件夹里
有,cp到/usr/src/
[root@gdlituo root]# cp linux-2.6.9.tar.bz2 /usr/src

3.去到/usr/src/目录,把原来的linux-2.6.5-1.358移动到其他的目录,你喜欢哪里就哪
里,你也可以把它移动到回收站,再清空回收站,彻底把它给删除
[root@gdlituo root]# cd /usr/src/

4.解压
[root@gdlituo src]# tar jxvf linux-2.6.9.tar.bz2

5.进入到linux-2.6.9文件夹
[root@gdlituo src]# cd linux-2.6.9

6.定制内核
[root@gdlituo linux-2.6.9]# make xconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/split-include
  HOSTCC  scripts/basic/docproc
  SHIPPED scripts/kconfig/zconf.tab.h
  HOSTCC  scripts/kconfig/conf.o
sed < scripts/kconfig/lkc_proto.h > scripts/kconfig/lkc_defs.h
's/P(\([^,]*\),.*/#define \1 (\*\1_p)/'
  HOSTCC  scripts/kconfig/kconfig_load.o
  HOSTCC  scripts/kconfig/mconf.o
/usr/lib/qt-3.3/bin/moc -i scripts/kconfig/qconf.h -o
scripts/kconfig/qconf.moc
  HOSTCXX scripts/kconfig/qconf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/lex.zconf.c
  HOSTCC  -fPIC scripts/kconfig/zconf.tab.o
  HOSTLLD -shared scripts/kconfig/libkconfig.so
  HOSTLD  scripts/kconfig/qconf
scripts/kconfig/qconf arch/i386/Kconfig
#
# using defaults found in /boot/config-2.6.5-1.358
#
/boot/config-2.6.5-1.358:94: trying to assign nonexistent symbol X86_4G
/boot/config-2.6.5-1.358:95: trying to assign nonexistent symbol
X86_SWITCH_PAGETABLES
/boot/config-2.6.5-1.358:96: trying to assign nonexistent symbol
X86_4G_VM_LAYOUT
/boot/config-2.6.5-1.358:97: trying to assign nonexistent symbol
X86_UACCESS_INDIRECT
/boot/config-2.6.5-1.358:98: trying to assign nonexistent symbol
X86_HIGH_ENTRY
/boot/config-2.6.5-1.358:132: trying to assign nonexistent symbol PM_DISK
/boot/config-2.6.5-1.358:312: trying to assign nonexistent symbol MTD_ICH2ROM
/boot/config-2.6.5-1.358:387: trying to assign nonexistent symbol
BLK_DEV_CARMEL/boot/config-2.6.5-1.358:405: trying to assign nonexistent
symbol IDEDISK_STROKE/boot/config-2.6.5-1.358:430: trying to assign
nonexistent symbol BLK_DEV_ADMA
/boot/config-2.6.5-1.358:483: trying to assign nonexistent symbol
SCSI_REPORT_LUNS
/boot/config-2.6.5-1.358:520: trying to assign nonexistent symbol
SCSI_MEGARAID
/boot/config-2.6.5-1.358:606: trying to assign nonexistent symbol
FUSION_ISENSE
/boot/config-2.6.5-1.358:642: trying to assign nonexistent symbol IP_ROUTE_NAT
/boot/config-2.6.5-1.358:644: trying to assign nonexistent symbol IP_ROUTE_TOS
/boot/config-2.6.5-1.358:842: trying to assign nonexistent symbol
NET_FASTROUTE
/boot/config-2.6.5-1.358:852: trying to assign nonexistent symbol NET_SCH_CSZ
/boot/config-2.6.5-1.358:860: trying to assign nonexistent symbol
NET_SCH_DELAY
/boot/config-2.6.5-1.358:971: trying to assign nonexistent symbol TUX
/boot/config-2.6.5-1.358:976: trying to assign nonexistent symbol TUX_EXTCGI
/boot/config-2.6.5-1.358:977: trying to assign nonexistent symbol
TUX_EXTENDED_LOG
/boot/config-2.6.5-1.358:978: trying to assign nonexistent symbol TUX_DEBUG
/boot/config-2.6.5-1.358:1177: trying to assign nonexistent symbol RCPCI
/boot/config-2.6.5-1.358:1404: trying to assign nonexistent symbol
INPUT_JOYDUMP/boot/config-2.6.5-1.358:1460: trying to assign nonexistent
symbol CRASH
/boot/config-2.6.5-1.358:1465: trying to assign nonexistent symbol QIC02_TAPE
/boot/config-2.6.5-1.358:1799: trying to assign nonexistent symbol PCI_CONSOLE
/boot/config-2.6.5-1.358:2237: trying to assign nonexistent symbol
INTERMEZZO_FS/boot/config-2.6.5-1.358:2255: trying to assign nonexistent
symbol NEC98_PARTITION
/boot/config-2.6.5-1.358:2370: trying to assign nonexistent symbol
X86_STD_RESOURCES
以上就是你应该看到的,接着会有个 qconf 窗口
1)默认原来的配置,你需要改的只有CPU Frequency scaling、Ethernet (10 or
100Mbit)、PCI devices和DOS/FAT/NT Filesystems,保存,推出,之后就可以编译了,用
make命令,这将是一个相对漫长的过程,也是一个很紧张个过程。
[root@gdlituo linux-2.6.9]# make

7.make modules_install
[root@gdlituo linux-2.6.9]# make modules_install

8.make install
[root@gdlituo linux-2.6.9]# make install

9.重启,如过没有错误提示的话,现在可以重启了
[root@gdlituo linux-2.6.9]# reboot

10.开机画面里应该有2.6.9的字样,选择它回车,看看能不能进入系统。希望你能。
补充,可能有些朋友的fedora打过补丁,这并不影响升级,还有就是内核升级后,久的内
核还是会存在,和新内核共存,所以不必当心编译失败后要重装系统。

--
AMD2500+,8RDA3I,DDR400 256M,USB MOUSE,P/2 KEYBOARD,Fedora core 2,WindowsXP.
※ 来源:·荔园晨风BBS站 bbs.szu.edu.cn·[FROM: 192.168.111.153]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店