LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 61387|回复: 152

又一篇菜鸟Fedora Core 2安装手记──献给比我还菜的弟兄们

[复制链接]
发表于 2004-5-19 01:05:28 | 显示全部楼层 |阅读模式
菜鸟fedora core 2首次安装经历
希望能给兄弟们一点借鉴,少走弯路。:p
我这里写的基本上就是自己怎么做怎么写,算是抛砖引玉吧;在下也是菜鸟,经验、水平有限,加之每个人的安装环境可能各不相同,难免有不当错误之处,还请兄弟们见谅;如果有错误之处,还请老鸟们给指出!

从网上下载fedora core2 的安装光盘
http://www.linuxsir.cn/forum.php ... 15&pagenumber=1
用md5sum命令验证完整性:# md5sum <filename>

强烈建议安装前先看看release note,对新版本有哪些变化,硬件需求心里先有个谱,免得安装的时候出错。 比如,新版的fedora完全安装6.9G,我的硬盘分区不够,就不能选择完全安装;又如,asus的P4P800系列主板暂时安装不了fc2等。

硬盘安装有多种方式──光盘引导,软驱引导,grub引导等,具体地可以参考论坛上的置顶贴,北南老大给咱们新手早就指好路了

Grub安装:http://www.linuxsir.cn/bbs/showthread.php?s=&postid=164822
加载iso文件# mount /path/FC2-i386-disc1.iso /mnt/cdrom
拷贝vmlinuz,initrd.img 到/boot目录下
# cp /mnt/cdrom/isolinux/initrd.img /boot/initrd-fc2setup.img
# cp /mnt/cdrom/isolinux/vmlinuz /boot/vmlinuz-fc2setup
修改grub.conf,添加:
title Fedora core 2 Setup
root (hd0,6)
kernel /boot/vmlinuz-fc2setup root=/dev/hda7
initrd /boot/initrd-fc2setup.img
重新启动选择该项,就可安装。

硬盘安装:http://www.linuxsir.cn/forum.php?mod=viewthread&tid=71740
光盘目录~/images下的diskboot.img是fat格式的引导文件映象,如果有优盘,系统又支持,可以用rawrite,hdcopy等将它写入优盘引导;


我有刻录机,可擦写盘,又不想刻盘,所以选择了光盘引导进行硬盘安装:
在fedora core 1下加载第一张安装光盘
# mount /mnt/WinE/fc2/FC2-i386-disc1.iso /mnt/cdrom -o loop
#在光盘目录~images/下的boot.iso可以用来制作引导光盘
利用k3b刻录映象文件功能,刻录出引导盘。
将原来系统里需要备份的文件、目录备份,以减少损失。比如用户主目录# tar czvf ./backup.tgz ~/你的主目录/。

安装:重启系统,设置为光驱启动,将引导盘放入光驱,出现安装界面,安装直接回车;询问安装过程的语言,选择中文,提示找到安装介质前是英文;
出现菜单寻找iso文件,上边是分区/dev/hda1....下面是文件名/目录,选择iso文件位置,我的就是/dev/hda6, fc2/回车,开始安装;
安装程序自动找到/dev/hda7的fedora core1,选择全新安装;
分区选择手动分区,自动分区会自作主张,除非是只装这一个系统,一般不要选择;
配置网卡,如果不是小区宽带等在lan内上网的情况,手动分配地址就行,比如我有两个网卡,eth0接adsl上网,192.168.1.6/255.255.255.0(设为与modem默认同一网段),eth1接内网192.168.0.1/255.255.255.0/网关192.168.0.1,主机地址就设为localhost.localdomain就行;
选择安装模式的时候看自己的情况,想省事又有空间,就完全安装,定制安装最好把开发工具都选上:开发工具/内核开发(fc2的内核有问题,安装nvidia驱动要编译内核)/x软件开发/gnome开发/kde开发;
接下来就让机器自己劳动吧,有40分钟就差不多装完了。
安装完成,重新启动,出现grub启动引导菜单,如果是多系统,会看到其他的选项,如我是双系统,fedora core (2.6.5-1.358)下面还有一个other,就是windows,如果选它,就由ntloader引导进入windows;

配置
第一次进入fc2,是gnome桌面;

首先修改/etc/inittab,将id:5:initdefault:改为id:3:initdefault:

修改/boot/grub/grub.conf,将title other改为 windows xp/2000/2003等,其他不用动;
linux不在主分区可以这样,如果是主分区,那么启动windows,还要激活分区,在grub.conf里windows那一段添加为
title windows XXX
rootnoverify (hd0,x)
makeactive
chainloader +1
boot (可以不加)

修改/etc/fstab/
建立目录/mnt/WinXP /mnt/WinD /mnt/WinE
#mkdir /mnt/WinXP
#mkdir /mnt/WinD
#mkdir /mnt/WinE
改变权限#chmod 777 /mnt/WinD /mnt/WinE
添加windows分区的加载信息如:
/dev/hda1               /mnt/WinXP              ntfs    auto,ro,nls=cp936,uid=1000,gid=1000,umask=000 0 0
/dev/hda5               /mnt/WinD               vfat    umask=0,rw,iocharset=cp936 0 0
/dev/hda6               /mnt/WinE               vfat    umask=0,rw,iocharset=cp936 0 0
我这里的设置跟有些兄弟说的不一样,还是加了cp936的项,而且文件名读取正常;相反,如果不加,倒是乱码。经bbbush兄指教,我发现是内核默认编码的问题,我的是iso8859-1,不是utf8;如果是按照make oldconfig没有修改File systems-->Native Language Support-->Base native language support-->Default NLS Option:utf8的,就不需要添加nls/isocharset项了。

添加xDsl连接:
图形工具# system-config-network,新建xdsl>填写网卡、供应商、账户、密码即可;
用adsl-setup# adsl-setup,按照提示一步步填写即可;
====================================================================
  1. Welcome to the ADSL client setup.  First, I will run some checks on
  2. your system to make sure the PPPoE client is installed properly...


  3. LOGIN NAME

  4. Enter your Login Name (default root):   ( 填写账户名)

  5. INTERFACE

  6. Enter the Ethernet interface connected to the ADSL modem
  7. For Solaris, this is likely to be something like /dev/hme0.
  8. For Linux, it will be ethX, where 'X' is a number.
  9. (default eth0):   (上网用的网卡接口,默认eth0)

  10. Do you want the link to come up on demand, or stay up continuously?
  11. If you want it to come up on demand, enter the idle time in seconds
  12. after which the link should be dropped.  If you want the link to
  13. stay up permanently, enter 'no' (two letters, lower-case.)
  14. NOTE: Demand-activated links do not interact well with dynamic IP
  15. addresses.  You may have some problems with demand-activated links.
  16. Enter the demand value (default no): (是按需拨号,还是持续连接;按需拨号,填写空闲时间,如60(秒);默认持续连接)

  17. DNS

  18. Please enter the IP address of your ISP's primary DNS server.
  19. If your ISP claims that 'the server will provide dynamic DNS addresses',
  20. enter 'server' (all lower-case) here.
  21. If you just press enter, I will assume you know what you are
  22. doing and not modify your DNS setup.
  23. Enter the DNS information here: (域名解析服务器,可以填server,自动寻找;也可以直接填地址)

  24. PASSWORD

  25. Please enter your Password:
  26. Please re-enter your Password: (输入口令并确认)

  27. USERCTRL

  28. Please enter 'yes' (two letters, lower-case.) if you want to allow
  29. normal user to start or stop DSL connection (default yes): (用户控制,yes允许普通用户启动、关闭连接;默认yes)

  30. FIREWALLING

  31. Please choose the firewall rules to use.  Note that these rules are
  32. very basic.  You are strongly encouraged to use a more sophisticated
  33. firewall setup; however, these will provide basic security.  If you
  34. are running any servers on your machine, you must choose 'NONE' and
  35. set up firewalling yourself.  Otherwise, the firewall rules will deny
  36. access to all standard servers like Web, e-mail, ftp, etc.  If you
  37. are using SSH, the rules will block outgoing SSH connections which
  38. allocate a privileged source port.

  39. The firewall choices are:
  40. 0 - NONE: This script will not set any firewall rules.  You are responsible
  41.           for ensuring the security of your machine.  You are STRONGLY
  42.           recommended to use some kind of firewall rules.
  43. 1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation
  44. 2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway
  45.                 for a LAN
  46. Choose a type of firewall (0-2):   (防火墙规则,0-无有,1-基本工作站,2-局域网网关;一般选1就行)

  47. Start this connection at boot time

  48. Do you want to start this connection at boot time?
  49. Please enter no or yes (default no): (是否随系统启动,如果包月yes)

  50. ** Summary of what you entered **

  51. Ethernet Interface: eth0
  52. User name:          *********
  53. Activate-on-demand: No
  54. DNS addresses:      Supplied by ISP's server
  55. Firewalling:        STANDALONE
  56. User Control:       yes
  57. Accept these settings and adjust configuration files (y/n)? (是否接受这些设置,并调整配置文件)

  58. Adjusting /etc/sysconfig/network-scripts/ifcfg-ppp0
  59. Adjusting /etc/ppp/chap-secrets and /etc/ppp/pap-secrets
  60.   

  61. Congratulations, it should be all set up!

  62. Type '/sbin/ifup ppp0' to bring up your xDSL link and '/sbin/ifdown ppp0'
  63. to bring it down.
  64. Type '/sbin/adsl-status /etc/sysconfig/network-scripts/ifcfg-ppp0'
  65. to see the link status. (配置完成,启动xdsl连接用 /sbin/ifup ppp0, 关闭 /sbin/ifdown ppp0;查看状态 /sbin/adsl-status /etc/sysconfig/network-scripts/ifcfg-ppp0)
复制代码



关闭iiimf服务# /etc/rc.d/init.d/iiimf stop,或# system-config-services, 或# serviceconf选择IIim,关闭、保存(不用的服务一并关掉)

安装nvidia驱动:
下载驱动
ftp://download.nvidia.com/XFree86/linux/
http://www.linuxsir.cn/postnuke/ ... q=getit&lid=250 (linuxSIR nvidia 5336)
http://www.mydrivers.com/dir84/d33793.htm(驱动之家 5336)
下载内核
http://www.kernel.org
2.6.6:http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
2.6.6-bk5:http://www.kernel.org/pub/linux/kernel/v2.6/patch-2.6.6-bk5.bz2
解压内核包:
# cp linux-2.6.6.tar.bz2 /usr/src/
# cp patch-2.6.6-bk5.bz2 /usr/src
# cd /usr/src/
# tar xjvf linux-2.6.6.tar.bz2
打补丁:
# cp patch-2.6.6-bk5.bz2 linux-2.6.6/
# cd linux0-2.6.6/
# bzip2 -dc patch-2.6.6-bk5.bz2|patch -p1  (1,2,3,4的1)
编译内核:
# make oldconfig(按照现在运行的kernel配置修改、选择一下新的配置)
# make
# make modules
# make moduels_install
# make install
重启机器,选择新的内核项,如2.6.6-bk5,进入文本界面;这时无法启动X;
# ~/path/NVIDIA-Linux-x86-1.0-5336-pkg1.run
# 安装后,修改/etc/X11/xorg.conf
Section "Module"
  # Load "dri"(注销)
Section “Device”
    Driver “nvidia”(改“nv”为“nvidia”)
    Option “NoLogo” “yes”(不显示nvidia的logo)
启动X
# startx  
PS:加一条,也许启动新内核的时候会发现找不到光驱──我一开始就是,可以在grub.conf新内核启动部分,kernel一行添加 pci=noacpi;

建立声音设备:/dev/sound/mixer /dev/sound/midi /dev/sound/dsp
# cd /dev/
# mkdir sound(建立目录)
# cd sound
# ln -s ../mixer mixer
# ln -s ../dsp dsp
# ln -s ../midi midi
# chmod 777 mixer dsp midi

安装fcitx:
http://www.fcitx.org/download/fcitx-2.0.2-4.noarch.rpm
# rpm -e miniChinput
# rpm -ivh fcitx-2.0.2-4
重启X,应该可以打开fcitx,如果不行,修改.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&
(这是fcitx.org上的方法,但是又经过测试,#FCITX这段可以不用加)

转换桌面管理器,用惯了kde,gnome不会:# switchdesk kde (帮助看 switchdesk-helper)
如果启动图形到了窗口管理器就停止,不能继续,切换终端,中止进程,看到错误提示,已经有一个进程fcitx,则修改~/.gnome2/session-manual:
[Default]
num_clients=1
0,RestartStyleHint=3
0,Priority=50  (将原来的31修改为50)
0,RestartCommand=fcitx

修改locale:# vi /etc/sysconfig/i18n
LANG="zh_CN"
SUPPORTED="zh_CN.GBK:zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16" (经hupeng923兄指教,改正)

安装zhcon:
这样的软件我是常备在硬盘上的,如要下载到北大天网e.pku.edu.cn、http://rpmfind.net/搜索一下就有
# rpm -ivh zhcon-0.2.3-1.i386.rpm

安装哈密瓜五一美化包
# tar xzvf linsir-fontconfig-3.2.run.tar.gz
# sh linuxsir-fontconfig-3.2.run
修改/etc/X11/xorg.conf
添加字体路径:(见哈密瓜兄的回答贴)
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "/usr/share/fonts/simsun" #加入这行
FontPath "unix/:-1"
EndSection

如果安装完后,system-config-*,mozilla,evolution等不能运行,就是安装上了,pango, pango-devle包
检查一下:
rpm -qa|grep pango
显示
pango-1.2.5-10.linuxsir
pango-devel-1.2.5-10.linuxsir,
卸载# rpm -e pango --nodeps
#rpm -e pango-devel --nodeps
从FC2-i386-disc1.iso和FC2-i386-disc2.iso上找到pango,pango-devel装上就恢复了。

安装字体:拷贝字体,从windows/fonts/目录下,拷贝simsun.ttf simsun18030.ttc, verdana.ttf,verdanab.ttf,verdanaz.ttf,verdanai.ttf, tahoma.ttf, tahomabd.ttf到/usr/share/fonts/zh_CN/TrueType/目录,
# cp /mnt/WinXP/windows/fonts/simsun.ttf /usr/share/fonts/zh_CN/TrueType/simsun.ttc
....大写名称改成小写
然后,
# fc-cache -f
系统就找到字体了
修改/etc/gtk/gtkrc
  1. # $(gtkconfigdir)/gtkrc.zh_CN
  2. #
  3. # This file defines the fontsets for Chinese language (zh) using
  4. # the simplified chinese standard GuoBiao as in mainland China (CN)
  5. #
  6. # 1999, Pablo Saratxaga <pablo@mandrakesoft.com>
  7. #

  8. style "gtk-default-zh-cn" {
  9.        fontset = "-adobe-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1,\
  10.                   -*-simsun-medium-r-normal--12-*-*-*-*-*-gb2312.1980-0,*-r-*"
  11. }
  12. class "GtkWidget" style "gtk-default-zh-cn"
复制代码


检验GB18030字体:
检验索引页面:http://people.netscape.com/ftang/test/gb18030/
如果打开里面的页面,字体都能看到,就没问题了。(既然没有GB18030,这个检验是否有效我也糊涂了 :ask)

编译安装openQ:
下载页http://openq.linuxsir.cn/cgi-bin/wiki/moin.cgi/_cf_c2_d4_d8
下载openq-0.3.tbz和qq-ver-0.3.0-p2.tar.bz2
解压
# tar xjvf openQ-0.3.tbz
# tar xjvf qq-ver-0.3.0-p2.tbz
替换openq/gaim/src/protocol/qq目录
# cp -r qq-ver-0.3.0-p2/ openQ-0.3/gaim/src/protocol/qq/
编译
2. cd openQ-0.3
* 安装OpenQ 主程序
3. cd gaim  
4. ./configure --prefix=/opt/OpenQ ( 根据安装情况设定)  
5. make  
6. sudo make install  
* 安装QQ 笑脸
7. mkdir –p ~/.gaim/smileys  
8. cp –r qq2003iii ~/.gaim/smileys  
* 安装QQ 秀
9. cp –r qqshow ~/.gaim  
* 安装IP 地址文件,( 可以安装到任何目录,但一定要在”首选项”中设置)  
10. cp QQWry-20040330.dat ~/.gaim/
QQ 表情资源:http://www.loveqq.com/
QQip查询dat20040515:http://www.showqq.com/download/qqdown_138.htm

安装j2sdk:
Java 2 SDK Standard Edition 1.4.2 for Linux
华军的下载页:http://www.onlinedown.net/soft/11537.htm
# chmod 777 j2sdk-1_4_2-linux-i586.bin
# j2sdk-1_4_2-linux-i586.bin
# cp j2sdk1.4.2/ /usr/local/
建立连接:
# ln -s /usr/local/j2sdk1.4.2/jre/bin/java /usr/local/bin/java
为mozilla添加java插件
# ln -s /usr/local/j2sdk1.4.2/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so /usr/lib/mozilla-1.6/plugins/libjavaplugin_oji.so
为konqueror添加java插件
konqueror>设置>配置konqueror>java和javascript--java执行程序的路径:/usr/local/j2sdk1.4.2/jre/bin/java
使java显示中文字体:
# 修改 /usr/local/j2sdk1.4.2/jre/lib/font.properties  另存为/usr/local/j2sdk1.4.2/jre/lib/font.properties.zh_CN。
===================================================================================
  1. # @(#)font.properties.linux        1.7 02/03/07
  2. #
  3. # Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  4. #

  5. # Component Font Mappings
  6. #
  7. serif.0=-b&h-lucidabright-medium-r-normal--*-%d-*-*-p-*-iso8859-1
  8. serif.1=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0(替换为simsun)

  9. serif.italic.0=-b&h-lucidabright-medium-i-normal--*-%d-*-*-p-*-iso8859-1
  10. serif.italic.1=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0

  11. serif.bold.0=-b&h-lucidabright-demibold-r-normal--*-%d-*-*-p-*-iso8859-1
  12. serif.bold.1=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0

  13. serif.bolditalic.0=-b&h-lucidabright-demibold-i-normal--*-%d-*-*-p-*-iso8859-1
  14. serif.bolditalic.1=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0

  15. sansserif.0=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1
  16. sansserif.1=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0

  17. sansserif.italic.0=-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1
  18. sansserif.italic.1=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0

  19. sansserif.bold.0=-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1
  20. sansserif.bold.1=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0

  21. sansserif.bolditalic.0=-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1
  22. sansserif.bolditalic.1=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0

  23. monospaced.0=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
  24. monospaced.1=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0

  25. monospaced.italic.0=-b&h-lucidatypewriter-medium-i-normal-sans-*-%d-*-*-m-*-iso8859-1
  26. monospaced.italic.1=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0

  27. monospaced.bold.0=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1
  28. monospaced.bold.1=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0

  29. monospaced.bolditalic.0=-b&h-lucidatypewriter-bold-i-normal-sans-*-%d-*-*-m-*-iso8859-1
  30. monospaced.bolditalic.1=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0

  31. dialog.0=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1
  32. dialog.1=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0

  33. dialog.italic.0=-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1
  34. dialog.italic.1=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0

  35. dialog.bold.0=-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1
  36. dialog.bold.1=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0

  37. dialog.bolditalic.0=-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1
  38. dialog.bolditalic.1=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0

  39. dialoginput.0=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
  40. dialoginput.1=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0

  41. dialoginput.italic.0=-b&h-lucidatypewriter-medium-i-normal-sans-*-%d-*-*-m-*-iso8859-1
  42. dialoginput.italic.1=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0

  43. dialoginput.bold.0=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1
  44. dialoginput.bold.1=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0

  45. dialoginput.bolditalic.0=-b&h-lucidatypewriter-bold-i-normal-sans-*-%d-*-*-m-*-iso8859-1
  46. dialoginput.bolditalic.1=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0

  47. # Missing Glyph Character
  48. #
  49. default.char=274f

  50. # Component Font Character Encodings
  51. #
  52. fontcharset.serif.0=sun.io.CharToByteISO8859_1
  53. fontcharset.serif.1=sun.awt.CharToByteSymbol

  54. fontcharset.sansserif.0=sun.io.CharToByteISO8859_1
  55. fontcharset.sansserif.1=sun.awt.CharToByteSymbol

  56. fontcharset.monospaced.0=sun.io.CharToByteISO8859_1
  57. fontcharset.monospaced.1=sun.awt.CharToByteSymbol

  58. fontcharset.dialog.0=sun.io.CharToByteISO8859_1
  59. fontcharset.dialog.1=sun.awt.CharToByteSymbol

  60. fontcharset.dialoginput.0=sun.io.CharToByteISO8859_1
  61. fontcharset.dialoginput.1=sun.awt.CharToByteSymbol

  62. # Exclusion Ranges
  63. #

  64. # XFontSet Information
  65. #
  66. fontset.serif.plain=\
  67. -b&h-lucidabright-medium-r-normal--*-%d-*-*-p-*-iso8859-1

  68. fontset.serif.italic=\
  69. -b&h-lucidabright-medium-i-normal--*-%d-*-*-p-*-iso8859-1

  70. fontset.serif.bold=\
  71. -b&h-lucidabright-demibold-r-normal--*-%d-*-*-p-*-iso8859-1

  72. fontset.serif.bolditalic=\
  73. -b&h-lucidabright-demibold-i-normal--*-%d-*-*-p-*-iso8859-1

  74. fontset.sansserif.italic=\
  75. -b&h-lucida-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1

  76. fontset.sansserif.bold=\
  77. -b&h-lucida-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1

  78. fontset.sansserif.bolditalic=\
  79. -b&h-lucida-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1

  80. fontset.sansserif.plain=\
  81. -b&h-lucida-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1

  82. fontset.monospaced.italic=\
  83. -b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1

  84. fontset.monospaced.bold=\
  85. -b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1

  86. fontset.monospaced.bolditalic=\
  87. -b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1

  88. fontset.monospaced.plain=\
  89. -b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1

  90. fontset.dialog.italic=\
  91. -b&h-lucida-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1

  92. fontset.dialog.bold=\
  93. -b&h-lucida-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1

  94. fontset.dialog.bolditalic=\
  95. -b&h-lucida-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1

  96. fontset.dialog.plain=\
  97. -b&h-lucida-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1

  98. fontset.dialoginput.italic=\
  99. -b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1

  100. fontset.dialoginput.bold=\
  101. -b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1

  102. fontset.dialoginput.bolditalic=\
  103. -b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1

  104. fontset.dialoginput.plain=\
  105. -b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1

  106. fontset.default=\
  107. -b&h-lucida-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1

  108. filename.-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1982-0=/usr/share/fonts/zh_CN/TrueType/simsun.ttc(添加simsun字体位置)
复制代码


修改完后,运行一下,看看效果:
# /usr/local/j2sdk1.4.2/jre/bin/ControlPanel

编译monkey audio plugin for xmms
下载页面:http://supermmx.org/linux/mac/(感谢superMMX大侠的工作)
下载libxmms_mac-0.2.0.tar.gz  mac-3.99-linux.tar.gz
解压编译:
# tar xzvf libxmms_mac-0.2.0.tar.gz  
# tar xzvf mac-3.99-linux.tar.gz
# cd mac-3.99
# ./configure
发现少nasm,在FC2-i386-disc2.iso里,装上
# rpm -ivh nasm-0.98.38-2.i386.rpm
# make
# sudo make install
# cd plugin
# ./configure
发现无法找到xmms-config,在FC2-i386-disc4.iso里找到xmms-devel装上
# rpm -ivh xmms-devel-1.2.10-2.p.i386.rpm
# make
# sudo make install
现在可以享受ape的美妙音质了^_^

安装rar for linux 3.30:
官方下载页面:http://www.win-rar.com/index.php?aid=download&lang=eng
华军软件园:http://www.onlinedown.net/soft/3.htm
解压安装:
# tar xzvf rarlinux-3.3.0.tar.gz
# cd rar/
# make
以后就可以用# rar 命令压缩/解压缩rar文件了

从iso文件添加、删除软件包:
# system-config-packages --isodir=/mnt/WinE/fc2/
PS:在fedora core 2 里,原来的redhat-config-* 都变成了system-config-*;想看看有哪些,在终端里输入system-config-,Tab补齐,就都显示出来了;功能可以一个个的试试

安装apt软件仓库(参考Fedora Wiki)
Fedora core 2 HowTo页面:http://www.fedora.us/wiki/FedoraHOWTO
如何使用apt-get:http://www.fedora.us/wiki/FedoraSources
Fedora 镜像列表:http://www.fedora.us/wiki/FedoraMirrorList

apt-0.5.15cnc6-0.fdr.11.2.i386.rpm下载地址:
http://download.fedora.us/fedora ... 0.fdr.11.2.i386.rpm
图形前端synaptic,下载页面:
http://www.nongnu.org/synaptic/download.html
还没有fr2的synaptic,可以下源码编译,synaptic-0.48.2.tar.gz:
http://savannah.nongnu.org/downl ... aptic-0.48.2.tar.gz

运行apt-get:
# apt-get

  1. This appears to be the first time you are running APT.
  2. Before you can use apt for software installation you need to
  3. select some software repositories first.

  4. Choose the repositories you want to use from the list below:
  5. 1       Fedora Core
  6. 2       Fedora Extras
  7. 3       Macromedia

  8. When finished choose 'c' to continue or choose 'q'
  9. to quit repository selector without changing anything.
  10. Enter your selection(s) in a comma-separated list:
  11. 1,2,3
  12. (第一次运行,询问用哪个仓库,都选吧;输入数字,逗号分隔;输完了,按“c”键,“q”退出)

  13. Choose the geographically nearest mirror(s)for use with:

  14.   Fedora Core
  15. 1       Indiana University, Bloomington Indiana, USA
  16. 2       University of Southern California, USA
  17. 3       Kernel.org, San Francisco California, USA
  18. 4       University Aachen, Germany
  19. 5       Technical University Chemnitz, Germany
  20. 6       University of Applied Sciences Esslingen, Germany
  21. 7       London, Great Britain
  22. 8       Multikabel N.V. Alkmaar, The Netherlands
  23. 9       Romanian Education Network, Iasi, Romania
  24. 10      SdV Plurim茅dia, Strasbourg, France
  25. 11      Charles University, Prague, Czech Republic
  26. 12      SunSite RedIRIS, Madrid, Spain
  27. 13      University of Hawaii Honolulu, Hawaii, USA

  28. When finished choose 'c' to continue or choose 'q'
  29. to quit repository selector without changing anything.
  30. Enter your selection(s) in a comma-separated list:
  31. 1,2,3,4,5,6,7,8,9,10,11,12,13
  32. (选择最近的镜像,这个就看着来吧;同上,也是逗号分隔;“c”继续)

  33. Choose the geographically nearest mirror(s)for use with:

  34.   Fedora Extras
  35. 1       Indiana University, Bloomington Indiana, USA
  36. 2       University of Southern California, USA
  37. 3       Kernel.org, San Francisco California, USA
  38. 4       University Aachen, Germany
  39. 5       Technical University Chemnitz, Germany
  40. 6       University of Applied Sciences Esslingen, Germany
  41. 7       London, Great Britain
  42. 8       Multikabel N.V. Alkmaar, The Netherlands
  43. 9       Romanian Education Network, Iasi, Romania
  44. 10      SdV Plurim茅dia, Strasbourg, France
  45. 11      Charles University, Prague, Czech Republic
  46. 12      SunSite RedIRIS, Madrid, Spain
  47. 13      University of Hawaii Honolulu, Hawaii, USA

  48. When finished choose 'c' to continue or choose 'q'
  49. to quit repository selector without changing anything.
  50. Enter your selection(s) in a comma-separated list:
  51. 1,2,3,4,5,6,7,8,9,10,11,12,13
  52. (选择附加软件仓库,方法同上;都选了?太贪了:p测测速度嘛,以后用的时候可别都选,可以修改/etc/apt/sources.list.d/mirror-select.list
  53. 来实现或者apt-get mirror-select命令)

  54. Choose the geographically nearest mirror(s)for use with:

  55.   Macromedia
  56. 1       USA West, University of California at Santa Cruz
  57. 2       USA East, Rutgers University, New Jersey
  58. 3       Europe, Centro de Comunicaciones CSIC/RedIRIS, Madrid Spain
  59. 4       Pacific, University of Hawaii

  60. When finished choose 'c' to continue or choose 'q'
  61. to quit repository selector without changing anything.
  62. Enter your selection(s) in a comma-separated list:
  63. 1,2,3,4
  64. (Macromedia 的仓库,同上)

  65. Writing source list entries...
  66. NOTE: /etc/apt/sources.list moved to /etc/apt/sources.list.backup !!
  67. Done.
  68. Get:1 [url]http://ruslug.rutgers.edu[/url] fedora/2 release [505B]
  69. Get:2 [url]http://download.fedora.us[/url] fedora/2/i386 release [2145B]
  70. Get:3 [url]http://mirrors.usc.edu[/url] fedora/2/i386 release [2137B]
  71. Get:4 [url]http://sluglug.ucsc.edu[/url] fedora/2 release [505B]
  72. Get:5 [url]http://ftp-stud.fht-esslingen.de[/url] fedora/2/i386 release [2145B]
  73. Get:6 [url]http://sunsite.informatik.rwth-aachen.de[/url] fedora/2/i386 release [2137B]
  74. Get:7 [url]http://macromedia.rediris.es[/url] fedora/2 release [505B]
复制代码

……下面就开始下载列表了,速度看情况而定,反正我这里不很快 :-(

忘了一条重要的,导入GPG KEY:
# cd /etc/apt/gpg/
(导入来自redhat的fedora gpg key)
# mount /mnt/WinE/fc2/FC2-i386-disc1.iso /mnt/cdrom/ -o loop
# rpm --import /mnt/cdrom/RPM-GPG-KEY
# rpm --import /mnt/cdrom/RPM-GPG-KEY-beta
# rpm --import /mnt/cdrom/RPM-GPG-KEY-fedora
# rpm --import /mnt/cdrom/RPM-GPG-KEY-fedora-rawhide
# rpm --import /mnt/cdrom/RPM-GPG-KEY-fedora-test
# rpm --import /mnt/cdrom/RPM-GPG-KEY-rawhide
当然也可以从fedora.us网站导入:
# wget http://www.fedora.us/FEDORA-GPG-KEY
# rpm --import FEDORA-GPG-KEY
导入其他网站的gpg key,如rpm.livna.org
# wget http://rpm.livna.org/RPM-LIVNA-GPG-KEY
# rpm --import RPM-LIVNA-GPG-KEY

apt-get安装synaptic:
# apt-get install synaptic

安装Acrobat5.0.5 for linux:
下载:ftp://210.34.4.58/Linux/Acrobat_reader_for_linux-505.tar.gz
解压安装:
# mkdir acrobat/
# cp Acrobat_reader_for_linux_505.tar.gz acrobat/
# cd acrobat/
# tar xzvf Acrobat_reader_for_linux-505.tar.gz
# ./INSTALL
接受协议"accept",回车,默认安装到/usr/local/Acrobat/
建立链接
# ln -s /usr/local/Acrobat5/bin/acroread  /usr/bin/acroread
以后直接运行# acroread

编译安装gDesklets-0.26.2:
官方主页:http://gdesklets.gnomedesktop.org/
下载地址:http://pycage.de/download/gdesklets/gDesklets-0.26.2.tar.bz2
解压、编译安装:
# tar xjvf gDesklets-0.26.2.tar.bz2
# cd gDesklets-0.26.2/
# ./configure --prefix=/usr --sysconfdir=/etc (系统安装,安装后出现在附件菜单)
# make
# make check
# sudo make install
下载GoodWeather desklet:
http://freshmeat.net/redir/goodweather/45630/url_bz2/files.php
解压、安装:
# cp GoodWeather-0.3.tar.bz2 .gdesklets/
# tar xjvf GoodWeather-0.3.tar.bz2
# cd GoodWeather/
# ./Install_GoodWeather_sensor.bin
运行:
# gdesklets .gdesklets/GoodWeather/GoodWeather.display
以后运行# gdesklets 会自动打开GoodWeather.display
显示你所在地天气:
在desklet上右键--Configure display--Settings--Location Code: XXXXXXXX填入你所在城市地代码
代码查询:http://www.weather.com/?from=globalnav
方法:在enter city or us zip处填入城市拼音,如beijing,“go”,在“City Guide”处可见到代码,如北京“CHXX0008”

(持续更新中……):p
发表于 2004-5-19 01:23:03 | 显示全部楼层
aaccdd兄,强啊!解决了我大部分问题.
期待下文

另外,安装显卡驱动那么麻烦啊?我还是等新驱动吧:thank
发表于 2004-5-19 01:26:07 | 显示全部楼层

建议加精!!!

昨天看见你这个我就可节约1天时间了!想见恨完
发表于 2004-5-19 01:40:32 | 显示全部楼层
不错
发表于 2004-5-19 03:41:08 | 显示全部楼层
很不错啊。。。
发表于 2004-5-19 04:18:51 | 显示全部楼层

刚才的文章没有贴上来?

locale设置好像有些矛盾。
修改locale:# vi /etc/sysconfig/i18n
LANG="zh_CN.GB18030"
SUPPORTED="zh_CN.GB18030:zh_CN.GBK:zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16"

在装fcitx时
LOCALE setup
export LC_ALL=zh_CN
export LANG=zh_CN

#load fcitx
fcitx&

我如果用18030,fcitx 用不起
发表于 2004-5-19 05:36:08 | 显示全部楼层
弓虽,弓虽!!pf,pf!!
发表于 2004-5-19 06:38:01 | 显示全部楼层
打补丁:
# cp patch-2.6.6.bz2 linux-2.6.6/
# cd linux0-2.6.6/
# bzip2 -dc patch-2.6.6-bk5.bz2|patch -p1(1,2,3,4的1)
there is no patch-2.6.6.bz2,is it a mistake?
 楼主| 发表于 2004-5-19 07:09:34 | 显示全部楼层
打补丁:
# cp patch-2.6.6.bz2 linux-2.6.6/
# cd linux0-2.6.6/
# bzip2 -dc patch-2.6.6-bk5.bz2|patch -p1(1,2,3,4的1)
there is no patch-2.6.6.bz2,is it a mistake?

打漏了,复制patch-2.6.6-bk5.bz2到kernel source的最上层目录
#cp patch-2.6.6.bz2 linux-2.6.6/ 什么都没有复制,自然不行。
 楼主| 发表于 2004-5-19 07:12:39 | 显示全部楼层
刚才的文章没有贴上来?

locale设置好像有些矛盾。
修改locale:# vi /etc/sysconfig/i18n
LANG="zh_CN.GB18030"
SUPPORTED="zh_CN.GB18030:zh_CN.GBK:zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16"

在装fcitx时
LOCALE setup
export LC_ALL=zh_CN
export LANG=zh_CN

#load fcitx
fcitx&

我如果用18030,fcitx 用不起

i18里上面是本地编码设置,下面是支持的编码
我是这样设的就这样贴了上来
~/.bashrc
里面设置成export LC_ALL=zh_CN
export LANG=zh_CN
可以使用
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表