LinuxSir.Org  
| 网站首页 | 注册账号 | 论坛帮助 |

欢迎来到LinuxSir.Org!
您还未登录,请登录后查看论坛,或者点击论坛上方的注册链接注册新账号。


发表新主题 回复
精华主题  
主题工具
旧 07-10-05, 17:26 第 1 帖
hooong.jiang 帅哥
 
hooong.jiang 的头像
 
 
注册会员  
  注册日期: May 2006
  帖子: 117
  精华: 2
 

标题: [分享]在IBM ThinkPad X41上安装Gentoo全记录!(第一部分)


[分享]在ThinkPad X41上安装Gentoo记录
  
这是我的Gentoo安装记录,有点乱七八糟,有些我也记不太清楚啦,呵呵!错误或说不详的地方会较多!各位DX不要见笑。我记录分两部分,第一部分为系统安装,从基础系统到KDE图形界面。第二部分主要为驱动,我的英文太差,很多腳本是从别的地方拿来即用,会有很多错误,迟点发上来给大家看看。希望各位DX帮忙改正!

第一部分:系统安装
第二部分 驱动程序 点击这里查看

一、安装基础系统
001.准备磁盘
002.使用Stage与Portage快照
003.配置编译选项
004.拷贝DNS信息
005.挂载proc和dev文件系统
二、进入新的系统环境
006.进入新的系统环境
007.更新Portage树
008.设置系统环境
009.安装内核
010.安装必须的软件
011.添加用户
012.删除快照
三、完善基础系统
013.安装grub与gfxboo
014.安装gensplash
015.安装声音系统
016.安装字体
017.安装xorg
018.安装额外的软件
019.更新整个系统
四、安装KDE桌面环境
020.安装KDE桌面环境与软件
021.办公软件
022.其它软件







__________________
^_^ 祝大家每天都快乐!

此帖于 08-04-30 01:21 被 hooong.jiang 编辑.
  hooong.jiang 当前离线   回复时引用此帖
旧 07-10-05, 19:24 第 2 帖
hooong.jiang 帅哥
 
hooong.jiang 的头像
 
 
注册会员  
  注册日期: May 2006
  帖子: 117
  精华: 2
 

一、安装基础系统
(这部分是利用gentoo的快照打造一个新的基础系统。)
参考连接:http://www.gentoo.org/doc/zh_cn/hand...ndbook-x86.xml

001.准备磁盘
a. 使用fdisk来为你的磁盘分区
代码:
# fdisk /dev/sda Command (m for help): p Disk /dev/sda: 60.0 GB, 60011642880 bytes 255 heads, 63 sectors/track, 7296 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 100 803218+ 83 Linux /dev/sda2 101 7296 57801870 5 Extended /dev/sda5 101 246 1172713+ 82 Linux swap / Solaris /dev/sda6 247 2596 18876343+ 83 Linux /dev/sda7 2597 4946 18876343+ 83 Linux /dev/sda8 4947 7296 18876343+ 83 Linux
说明:我这里硬盘为sda,sda1为启动分区,大小800M;sda5是交换分区,大小1G;sda6是根分区,大小19G;sda7是home目录,大小19G;sda8是备份分区,大小19G。

b. 在分区上应用文件系统
代码:
# mkreiserfs /dev/sda1 # mkreiserfs /dev/sda6 # mkreiserfs /dev/sda7 # mkreiserfs /dev/sda8
说明:我这里使用reiserfs格式文件系统。

c.创建与激活交换分区标志
代码:
# mkswap /dev/sda5 # swapon /dev/sda5
d. 创建与挂载分区
代码:
# mount /dev/sda6 /mnt/gentoo # mkdir /mnt/gentoo/boot # mkdir /mnt/gentoo/home # mount /dev/sda1 /mnt/gentoo/boot/ # mount /dev/sda7 /mnt/gentoo/home/
002. 使用从网上下载的Stage与Portage快照
a.然后从网上下载stage3-i686-2007.0.tar.bz2、portage-latest.tar.bz2与校验文件,放在/mnt/gentoo目录下,我这里是已下载好的。
* cp /home/gentoo/stage3-i686-2007.0.tar.* /mnt/gentoo/
* cp /home/gentoo/portage-latest.tar.* /mnt/gentoo/

b.校验stage tarball与Portage快照完整性的例子。
代码:
# cd /mnt/gentoo # md5sum -c stage3-i686-2007.0.tar.bz2.DIGESTS stage3-i686-2007.0.tar.bz2: OK # md5sum -c portage-latest.tar.bz2.md5sum portage-latest.tar.bz2: OK
c.解开Stage Tarball与安装Portage。
代码:
# tar xvjpf stage3-*.tar.bz2 # tar xvjf /mnt/gentoo/portage-latest.tar.bz2 -C /mnt/gentoo/usr

此帖于 08-04-30 01:47 被 hooong.jiang 编辑.
  hooong.jiang 当前离线   回复时引用此帖
旧 07-10-05, 19:28 第 3 帖
hooong.jiang 帅哥
 
hooong.jiang 的头像
 
 
注册会员  
  注册日期: May 2006
  帖子: 117
  精华: 2
 

003. 配置编译选项
代码:
# nano -w /mnt/gentoo/etc/make.conf # These settings were set by the catalyst build script that automatically # built this stage. # Please consult /etc/make.conf.example for a more detailed example. # CFLAGS="-O2 -march=i686 -pipe" # CXXFLAGS="${CFLAGS}" # This should not be changed unless you know exactly what you are doing. You # should probably be using a different stage, instead. # CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer" CXXFLAGS="${CFLAGS}" CHOST="i686-pc-linux-gnu" MAKEOPTS="-j2" LDFLAGS="-Wl,-O1 -Wl,--as-needed" INPUT_DEVICES="keyboard mouse" VIDEO_CARDS="v4l vesa vga fbdev i810" ALSA_CARDS="intel8x0" LINGUAS="zh_CN zh en_US" PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/gfxboot_overlay" FEATURES="ccache parallel-fetch sandbox" CCACHE_DIR="/var/tmp/ccache" CCACHE_SIZE="2G" ACCEPT_KEYWORDS="x86" USE="X acpi alsa bash-completion bluetooth bzip2 cjk cvs cups dbus ffmpeg \ hal hdaps kde mplayer nls nptl nptlonly opengl pcmcia python qt readline samba \ spell sse sse2 truetype truetype-fonts type1-fonts udev unicode usb userlocales \ utf8 win32codecs xcomposite xine xv zlib -arts -doc -gtk -gtk2 -gnome -ipv6 -mozilla" # SYNC="rsync://linux.ntcu.net/gentoo-portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" GENTOO_MIRRORS="ftp://gentoo.anheng.com.cn/gentoo http://linux.ntcu.net/ftp/dists/gentoo \ http://ftp.ncnu.edu.tw/Linux/Gentoo http://mirror.gentoo.gr.jp" FETCHCOMMAND="/usr/bin/axel -a -n2 \${URI} -o \${DISTDIR}" # RESUMECOMMAND="/usr/bin/axel -a -n2 \${URI} -o \${DISTDIR}" # source /usr/portage/local/layman/make.conf
我的make.conf文件,CPU设置为 pentium-m,USE针对是KDE。
USE我是参考本论坛csfrank写的文章<Gentoo 2005.1 完整的USE参数清单中文详解>
连接:http://www.linuxsir.org/bbs/showthread.php?t=207242

004.拷贝DNS信息
代码:
# cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
说明:从现在使用的系统/etc/resolv.conf拷贝DNS信息到/mnt/gentoo/etc/目录下。

005.挂载/proc和/dev文件系统
代码:
# mount -t proc none /mnt/gentoo/proc # mount -o bind /dev /mnt/gentoo/dev

此帖于 08-04-30 01:47 被 hooong.jiang 编辑.
  hooong.jiang 当前离线   回复时引用此帖
旧 07-10-05, 19:29 第 4 帖
hooong.jiang 帅哥
 
hooong.jiang 的头像
 
 
注册会员  
  注册日期: May 2006
  帖子: 117
  精华: 2
 

二、进入新的系统环境
(这部分是我们在进入新系统后进行内核、软件安装与一些环境设置!)

006.进入新的系统环境
代码:
# chroot /mnt/gentoo /bin/bash # env-update >> Regenerating /etc/ld.so.cache... # source /etc/profile # export PS1="(chroot) $PS1"
007.更新Portage树
代码:
# emerge --sync
008.设置系统环境
a.选择正确的Profile
代码:
# ls -FGg /etc/make.profile # ln -snf /usr/portage/profiles/default-linux/x86/2007.0/desktop /etc/make.profile
原系统默认为/x86/2007.0,系统提供了可用的desktop和server的子profile,我这里选择/x86/2007.0/desktop,这是针对桌面用户的,有更多的USE选项。

b.可选:glibc Locales
编辑locale.gen文件。
代码:
# nano -w /etc/locale.gen # /etc/locale.gen: list all of the locales you want to have on your system # # The format of each line: # <locale> <charmap> # # Where <locale> is a locale located in /usr/share/i18n/locales/ and # where <charmap> is a charmap located in /usr/share/i18n/charmaps/. # # All blank lines and lines starting with # are ignored. # # For the default list of supported combinations, see the file: # /usr/share/i18n/SUPPORTED # # Whenever glibc is emerged, the locales listed here will be automatically # rebuilt for you. After updating this file, you can simply run `locale-gen` # yourself instead of re-emerging glibc. # en_US ISO-8859-1 # en_US.UTF-8 UTF-8 # ja_JP.EUC-JP EUC-JP # ja_JP.UTF-8 UTF-8 # ja_JP EUC-JP # en_HK ISO-8859-1 # en_PH ISO-8859-1 # de_DE ISO-8859-1 # de_DE@euro ISO-8859-15 # es_MX ISO-8859-1 # fa_IR UTF-8 # fr_FR ISO-8859-1 # fr_FR@euro ISO-8859-15 # it_IT ISO-8859-1 en_US ISO-8859-1 en_US.UTF-8 UTF-8 zh_CN GB18030 zh_CN.GBK GBK zh_CN.GB2312 GB2312 zh_CN.UTF-8 UTF-8
下一步我们运行locale-gen。它会产生所有你在/etc/locale.gen文件里指定的locale。
代码:
# locale-gen
c.设置时区信息
代码:
# ls /usr/share/zoneinfo # cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
d.设定挂载分区信息
代码:
# nano -w /etc/fstab # /etc/fstab: static file system information. # # noatime turns off atimes for increased performance (atimes normally aren't # needed; notail increases performance of ReiserFS (at the expense of storage # efficiency). It's safe to drop the noatime options if you want and to # switch between notail / tail freely. # # The root filesystem should have a pass number of either 0 or 1. # All other filesystems should have a pass number of 0 or greater than 1. # # See the manpage fstab(5) for more information. # # <fs> <mountpoint> <type> <opts> <dump/pass> # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts. /dev/sda1 /boot reiserfs noauto,noatime 1 2 /dev/sda5 none swap sw 0 0 /dev/sda6 / reiserfs noatime 0 1 /dev/sda7 /home reiserfs noatime 0 2 /dev/sda8 /mnt/backup reiserfs noatime 0 2 /dev/sdb1 /mnt/usb_disk auto noauto,user,utf8 0 0 /dev/cdrom /mnt/cdrom auto noauto,user 0 0 # glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for # POSIX shared memory (shm_open, shm_unlink). # (tmpfs is a dynamically expandable/shrinkable ramdisk, and will # use almost no memory if not populated with files) shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 none /mnt/ram_disk tmpfs noatime 0 0 # none /proc/bus/usb usbfs devgid=1012,devmode=664 0 0
说明:我这里USE加入了hal标签,KDE4可以自动加载U盘;我这里设置自动加载/dev/sdb1设备,utf8编码,普通用户可读写。

e.网络设置
代码:
# nano -w /etc/conf.d/net # This blank configuration will automatically use DHCP for any net.* # scripts in /etc/init.d. To create a more complete configuration, # please review /etc/conf.d/net.example and save your configuration # in /etc/conf.d/net (this file :]!). dns_domain_lo="Gentoo-network" nis_domain_lo="Gentoo-nisdomain" # ADSL连接设置 # config_eth0=( "adsl" ) # 自动获取IP设置 # config_eth0=( "dhcp" ) # dhcp_eth0="nodns nontp nonis" # 手动获取IP设置 # modules=( "ifconfig" ) # config_eth0=("192.168.9.10 netmask 255.255.255.0 brd 192.168.9.255") # routes_eth0=("default gw 192.168.9.1") # 西门子手机GPRS连接 # config_ppp0=( "ppp" ) # link_ppp0="/dev/ttyUSB0" # WIFI连接设置 modules=( "wpa_supplicant" ) wpa_supplicant_eth1="-Dmadwifi"modules=( "wpa_supplicant" ) wpa_timeout_eth1=60 config_eth1=("192.168.9.11 netmask 255.255.255.0") routes_eth1=("default gw 192.168.9.1")
代码:
# rc-update add net.eth0 default # cd /etc/init.d # ln -s net.lo net.eth1 # rc-update add net.eth1 default
f.设置系统密码
代码:
# passwd # echo "tts/0" >> /etc/securetty
g.设置主机的常用参数
代码:
# nano -w /etc/conf.d/hostname # nano -w /etc/hosts # nano -w /etc/rc.conf # nano -w /etc/conf.d/keymaps # nano -w /etc/conf.d/clock

此帖于 08-04-30 11:12 被 hooong.jiang 编辑.
  hooong.jiang 当前离线   回复时引用此帖
旧 07-10-05, 19:31 第 5 帖
hooong.jiang 帅哥
 
hooong.jiang 的头像
 
 
注册会员  
  注册日期: May 2006
  帖子: 117
  精华: 2
 

009.安装内核
a.安装gentoo-sources
代码:
# USE="-doc symlink" emerge gentoo-sources
b.配置内核
将以前老版本的内核配置文件复制到/usr/src/linux目录下。
代码:
# cd /usr/src/linux # make oldconfig # make menuconfig
c.编译与安装
代码:
# make && make modules_install # cp arch/i386/boot/bzImage /boot/gentoo-2.6.25.r1-20080426
d.设定内核模块
代码:
# find /lib/modules/2.6.25-gentoo-r1/ -type f -iname '*.o' -or -iname '*.ko' # nano -w /etc/modules.autoload.d/kernel-2.6
您可以在/etc/modules.autoload.d/kernel-2.6中列出您需要自动加载的模块。

此帖于 08-04-30 11:50 被 hooong.jiang 编辑.
  hooong.jiang 当前离线   回复时引用此帖
旧 07-10-05, 19:31 第 6 帖
hooong.jiang 帅哥
 
hooong.jiang 的头像
 
 
注册会员  
  注册日期: May 2006
  帖子: 117
  精华: 2
 

010.安装必须的软件
a.
代码:
# emerge syslog-ng # rc-update add syslog-ng default
b.
代码:
# emerge vixie-cron # rc-update add vixie-cron default
c.
代码:
# emerge slocate
d.
代码:
# emerge reiserfsprogs
e.
代码:
# emerge dhcpcd
f.
代码:
# emerge ppp
g.
代码:
# USE="-X" emerge rp-pppoe
011.添加用户
代码:
# useradd -m -G users,wheel,audio -s /bin/bash jiang # passwd jiang
代码:
# useradd -m -G users,wheel,audio -s /bin/bash guest # passwd guest
012.删除快照
代码:
# rm /stage3-*.tar.bz2* # rm /portage-latest.tar.bz2*

此帖于 08-04-30 02:28 被 hooong.jiang 编辑.
  hooong.jiang 当前离线   回复时引用此帖
旧 07-10-05, 19:33 第 7 帖
hooong.jiang 帅哥
 
hooong.jiang 的头像
 
 
注册会员  
  注册日期: May 2006
  帖子: 117
  精华: 2
 

三、完善基础系统
(这部分是使用新的基础系统更漂亮与实用,包括声音与字体、X图形界面)
013.安装grub与gfxboo
参考连接:http://www.gentoo-wiki.com/HOWTO_gfx...n_patched_Grub
a.
代码:
# nano -w /etc/make.conf   ……   PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/gfxboot_overlay"   …… # mkdir -p /usr/local/portage
b.
代码:
# tar xjf gfxboot.tar.bz2 -C /usr/local/portage/ # mv /usr/local/portage/gfxboot/gfxboot_overlay /usr/local/portage/ # ebuild /usr/local/portage/gfxboot_overlay/media-gfx/gfxboot/gfxboot-3.3.38.2.ebuild digest # emerge -av gfxboot
c.
代码:
# echo “>=sys-boot/grub-0.97-r4” >> /etc/portage/package.mask # emerge -av grub # emerge grub # grub --no-floppy . root (hd0,0) . setup (hd0) . quit
代码:
# wget http://www.kde-look.org/CONTENT/content-files/76175-message.gentoo-blue # cp /home/gentoo/76175-message.gentoo-blue /boot/message.gentoo-blue # nano -w /boot/grub/grub.conf …… # splashimage=(hd0,0)/boot/grub/splash.xpm.gz gfxmenu (hd0,0)/boot/message.gentoo-blue ……
说明:将准备好的message文件放在/boot目录下面,然后编辑grub.conf文件。

014.安装gensplash
参考连接:http://gentoo-wiki.com/HOWTO_gensplash
a.内核设置
代码:
# Protocols # CONFIG_PNPACPI=y CONFIG_BLK_DEV=y CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_COUNT=16 CONFIG_BLK_DEV_RAM_SIZE=4096 # Frame buffer hardware drivers # CONFIG_FB_INTEL=y CONFIG_FB_INTEL_I2C=y # Console display driver support # CONFIG_VGA_CONSOLE=y CONFIG_VGACON_SOFT_SCROLLBACK=y CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=128 CONFIG_VIDEO_SELECT=y CONFIG_DUMMY_CONSOLE=y CONFIG_FRAMEBUFFER_CONSOLE=y CONFIG_FB_CON_DECOR=y CONFIG_FONT_8x8=y CONFIG_FONT_8x16=y
b.splashutils
代码:
# emerge -av splashutils # cd /etc/splash/
(将你准备好的主题解压放在/etc/splash/目录下)
* cp -a /mnt/sdb5/My_Documents/others/temps/gentoo-blue /mnt/gentoo/etc/splash/
代码:
# splash_geninitramfs gentoo-blue -r 1024x768 -g /boot/fbsplash-gentoo-blue-1024x768 -v # rc-update add fbcondecor default
c.编辑grub.conf
代码:
# nano -w /boot/grub/grub.conf # 默认选择哪个列表来引导。0表示第一个, 1表示第二个,以此类推。 default 0 # 引导默认列表前等待多少秒。 timeout 3 # 使用漂亮、“臃肿”的spalsh图像来增加一点趣味:) # 如果您没有安装显卡,请将这行注释掉。 # splashimage=(hd0,0)/boot/grub/splash.xpm.gz gfxmenu (hd0,0)/boot/message.gentoo-blue title Kernel 2.6.25.r1 generic # 一、内核镜像(或者操作系统)所在分区。 root (hd0,0) kernel /boot/gentoo-2.6.25.r1-20080426 root=/dev/sda6 acpi_sleep=s3_bios,s3_mode resume=/dev/sda5 vga=792 splash=silent,fadein,theme:gentoo-blue fbcon=scrollback:128K video=intelfb:vram:4,xres:1024,yres:768,bpp:16,hsync1:30,hsync2:55,vsync1:50,vsync2:85,accel quiet CONSOLE=/dev/tty1 initrd (hd0,0)/boot/fbsplash-gentoo-blue-1024x768 title Kernel 2.6.25.r1 (recovery mode) # 二、内核镜像(或者操作系统)所在分区。 root (hd0,0) kernel /boot/gentoo-2.6.25.r1-20080424 root=/dev/sda6 acpi_sleep=s3_bios,s3_mode resume=/dev/sda5 vga=0x317 title Kernel 2.6.23.r9 (recovery mode) # 三、内核镜像(或者操作系统)所在分区。 root (hd0,0) kernel /boot/gentoo-2.6.23.r9-20080423 root=/dev/sda6 acpi_sleep=s3_bios,s3_mode resume=/dev/sda5 vga=0x317 # 接下来的四行只有在您与Windows系统进行双启动的情况下才需要。 # 本例中,windows系统位于/dev/sda8。 # title=Windows XP # rootnoverify (hd0,7) # makeactive # chainloader +1
说明:这里我有两个内核,一个是正常使用的内核,同时也使用Framebuffer;另一个是备用的内核,不使用ramebuffer,因为有时就算内核是好的,如果ramebuffer出现问题也会有不能进入系统的情况。

此帖于 08-04-30 11:52 被 hooong.jiang 编辑.
  hooong.jiang 当前离线   回复时引用此帖
旧 07-10-05, 19:34 第 8 帖
hooong.jiang 帅哥
 
hooong.jiang 的头像
 
 
注册会员  
  注册日期: May 2006
  帖子: 117
  精华: 2
 

015.安装声音系统
a.安装软件
代码:
# emerge -av pciutils
b. alsa设置
代码:
# emerge -av alsa-utils # alsaconf # rc-update add alsasound boot # /etc/init.d/alsasound start # alsamixer
c.安装mpg123播放软件与MIDI
代码:
# emerge -av mpg123 # emerge -av vorbis-tools # emerge -av awesfx # cp /home/jiang/8mbgmsfx.sf2 /usr/share/sounds/sf2/ # asfxload /usr/share/sounds/sf2/8MBGMSFX.SF2
d.如果你硬件不支持MIDI,可以安装下面软件虚拟。
代码:
# emerge -av timidity++ # eselect timidity list # eselect timidity set eawpatches # rc-update add timidity default # /etc/init.d/timidity start

此帖于 08-04-30 02:01 被 hooong.jiang 编辑.
  hooong.jiang 当前离线   回复时引用此帖
旧 07-10-05, 19:35 第 9 帖
hooong.jiang 帅哥
 
hooong.jiang 的头像
 
 
注册会员  
  注册日期: May 2006
  帖子: 117
  精华: 2
 

016.安装字体
a.安装字体
代码:
# emerge -av arphicfonts wqy-bitmapfont corefonts ttf-bitstream-vera
b.中文文件使用字母顺序排列
代码:
# tar -xzvf /home/gentoo/locale-pinyin-0.1.tar.gz # cd locale-pinyin-0.1 # make # cp zh_CN.hacked /usr/share/i18n/locales/zh_CN # cp iso14651_t1.pinyin /usr/share/i18n/locales/ # nano -w /etc/env.d/100i18n LANGUAGE=en_US LC_CTYPE=zh_CN.utf8 LC_COLLATE=zh_CN.utf8 LANG=en_US.utf8 LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" # env-update
c.额外的字体
代码:
# emerge -av unrar # unrar e msyh.rar # unrar e stheiti.rar # mkdir /usr/share/fonts/TTF # mv stheiti.ttf /usr/share/fonts/TTF/ # mv msyh.ttf /usr/share/fonts/TTF/ # mv msyhbd.ttf /usr/share/fonts/TTF/ # tar -xzvf /home/jiang/font_VeraSansYuanTi.tar.gz -C /usr/share/fonts/
d.
代码:
# emerge -av mkfontdir mkfontscale # cd /usr/share/fonts/TTF # mkfontdir # mkfontscale # fc-cache -fv # emerge -av xlsfonts # fc-list

此帖于 08-04-30 11:54 被 hooong.jiang 编辑.
  hooong.jiang 当前离线   回复时引用此帖
旧 07-10-05, 19:37 第 10 帖
hooong.jiang 帅哥
 
hooong.jiang 的头像
 
 
注册会员  
  注册日期: May 2006
  帖子: 117
  精华: 2
 

017.安装xorg
代码:
# emerge -av xorg-x11 # nano -w /etc/X11/xorg.conf # env-update # source /etc/profile

此帖于 08-04-30 02:32 被 hooong.jiang 编辑.
  hooong.jiang 当前离线   回复时引用此帖
旧 07-10-05, 19:38 第 11 帖
hooong.jiang 帅哥
 
hooong.jiang 的头像
 
 
注册会员  
  注册日期: May 2006
  帖子: 117
  精华: 2
 

018.安装额外的软件
a.命令行使用鼠标
代码:
# emerge -av gpm # nano -w /etc/conf.d/gpm …… MOUSE=ps2 ## 鼠标设定 #MOUSE=imps2 #MOUSEDEV=/dev/psaux MOUSEDEV=/dev/input/mice …… APPEND="-l \"a-zA-Z0-9_.:~/\300-\326\330-\366\370-\377\"" ## 使控制台可以识别网址 …… # rc-update add gpm default
b.多线程下载软件
代码:
# emerge -av axel # nano -w /etc/axelrc …… num_connections = 5 ## 修改默认线程,我设置为5个线程,够了,太多了反而连接慢 …… alternate_output = 1 ## 修改下载进度界面,改成wget形式的,不要那种滚屏模式 ……
c.安装工具包、输入法与浏览器。
代码:
# emerge -av gentoolkit # emerge -av mc # emerge -av fcitx # emerge -av opera
代码:
# nano -w /opt/opera/share/opera/ini/standard_mouse.ini …… ;Button6 = Back ;Button7 = Forward ……
代码:
# emerge -av netscape-flash
说明:上面编辑standard_mouse.ini去掉Button6、Button7是因为我需要用指点杆做鼠标手势。

视频播放插件MplayerPlug-In,请看这里:
http://gentoo-wiki.com/HOWTO_Make_mp...ork_with_Opera

代码:
# tar xzvf /usr/portage/distfiles/mplayerplug-in-3.25.tar.gz -C /tmp # cd /tmp/mplayerplug-in
代码:
# nano -w plugingate/np_entry.cpp //if(aNPNFuncs->size < sizeof(NPNetscapeFuncs)) ## 去掉这两行 // return NPERR_INVALID_FUNCTABLE_ERROR; ## 去掉这两行
代码:
# ./configure --enable-x && make # cp -vi *.so *.xpt /opt/opera/lib/opera/plugins
d.加快编译的程序
代码:
# emerge -av ccache # emerge --info | grep CHOST # ccache-config --install-links i686-pc-linux-gnu[/color] # ls -l /usr/lib/ccache/bin

此帖于 08-04-30 02:32 被 hooong.jiang 编辑.
  hooong.jiang 当前离线   回复时引用此帖
旧 07-10-05, 19:39 第 12 帖
hooong.jiang 帅哥
 
hooong.jiang 的头像
 
 
注册会员  
  注册日期: May 2006
  帖子: 117
  精华: 2
 

019.更新整个系统
代码:
# emerge --update --deep --newuse world # emerge --depclean -p # emerge --depclean # revdep-rebuild
代码:
# emerge -e worle
说明:emerge -e worle这个是重新编整个系统,呵呵这个看看自己是否有需要了!

此帖于 08-04-30 02:33 被 hooong.jiang 编辑.
  hooong.jiang 当前离线   回复时引用此帖
旧 07-10-05, 19:40 第 13 帖
hooong.jiang 帅哥
 
hooong.jiang 的头像
 
 
注册会员  
  注册日期: May 2006
  帖子: 117
  精华: 2
 

四、安装KDE桌面环境
(这部分我安装的是KDE4,还安装一些常用软件与办公软件等)
020.安装KDE桌面环境与软件
a.设定安装,去掉KDE4的屏蔽
参照这里安装,下载两个文件,放在/etc/portage目录下。
http://www.gentoo.org/proj/en/desktop/kde/kde4.xml
代码:
# cp /home/jiang/kde4.keywords /etc/portage/package.keywords/ # cp /home/jiang/kde4.unmask /etc/portage/package.unmask/
b.安装KDE
代码:
# emerge -avD kde-base/kdebase-meta:kde-4
c.安装KDE环境的其它软件
代码:
# emerge -av kmix juk smplayer gwenview ksnapshot kopete kget ark kmilo
021.办公软件
代码:
# emerge -av openoffice-bin
022.其它软件
代码:
# emerge -av stardict # emerge -av net-p2p/mldonkey

此帖于 08-04-30 02:33 被 hooong.jiang 编辑.
  hooong.jiang 当前离线   回复时引用此帖
旧 07-10-05, 19:41