2006年07月01日

  I have installed Gentoo Linux on my PC, and font is OK now! So it’s time to say goodbye to Windows!
  After several days working, it’s on my PC now. It’s really a excitement.

2006年06月30日

过多的时间花在字体美化上面,是不值得的。本贴是为了linux新手在gentoo或其他linux distro历程中更快启航而写。如有谬误,请不吝指教。

1) 题外话:gnome更多的桌面主题:

代码:
#emerge metacity-themes
#emerge gnome-themes-extras

2) 拷贝windows字体到gentoo box里。例如tahoma.ttf, tahomabd.ttf, simsun.ttc, mingliu.ttc,我的目录是/usr/local/share/fonts/,不要忘记

代码:
chmod 744 /usr/local/share/fonts/*

3) 按照www.xfree.org中的文档,需要为core和fontconfig两种字体系统安装字体。
首先,core字体安装方式是将路径添到XF86Config和在目录下执行mkfontscale, mkfontdir. 已有诸多贴子描述,从略。
其次,fontconfig字体安装是在字体目录下执行fc-cache。

4) 美化方案
只讲fontconfig,其他的例如gtk等已有大量帖子描述,从略。
4-1) 不要修改fonts.conf: 既然它要求不要改,那就别改。
4-2) 修改/etc/fonts/local.conf,还是修改~/.fonts.conf,可由需要决定。
4-3) 怎样修改local.conf或~/.fonts.conf
务必要按照下面格式

代码:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!– 要设置的内容统统在这里–>
</fontconfig>


4-4) local.conf或.fonts.conf要设置的内容描述 – 这里不是讲解fontconfig,这里只讲要用的东西,要注意: 如果在kde中设置字体,它会改写~/.fonts.conf。
4-4-1) 字体目录

代码:
<dir>/usr/local/share/fonts</dir>


4-4-2) default fonts
Serif是有衬线的字体,像Times这个字体, sans是像Arial这样的字体,代码示例

代码:
<!– Default fonts –>
<alias>
   <family>Times New Roman</family>
   <family>Times</family>
   <family>SimSun</family>
   <family>MingLiU</family>
   <default><family>serif</family></default>
</alias>
<alias>
   <family>Tahoma</family>
   <family>SimSun</family>
   <family>MingLiU</family>
   <default><family>sans-serif</family></default>
</alias>
<alias>
   <family>Terminal</family>
   <family>Courier New</family>
   <family>SimSun</family>
   <family>MingLiU</family>
   <default><family>monospace</family></default>
</alias>


4-4-3) 字体替换顺序,代码示例

代码:
<alias>
   <family>serif</family>
   <prefer>
      <family>Times New Roman</family>
      <family>Times</family>
      <family>SimSun</family>
      <family>MingLiU</family>
   </prefer>
</alias>
<alias>
   <family>sans-serif</family>
   <prefer>
      <family>Tahoma</family>
      <family>SimSun</family>
      <family>MingLiU</family>
   </prefer>
</alias>
<alias>
   <family>monospace</family>
   <prefer>
      <family>Terminal</family>
      <family>Courier New</family>
      <family>SimSun</family>
      <family>MingLiU</family>
   </prefer>
</alias>


4-4-4) 选中的字体,不要anti-alias (就是不要模模糊糊的那种)

代码:
<match target="font" >
   <test name="family" qual="any" >
         <string>Tahoma</string>
      <string>Verdana</string>
      <string>Arial</string>
      <string>Times</string>
      <string>Times New Roman</string>
      <string>Courier</string>
      <string>Courier New</string>
                <string>SimSun</string>
                <string>MingLiU</string>
     </test>
     <edit mode="assign" name="antialias" >
         <bool>false</bool>
     </edit>
</match>


这里一定要有simsun, mingliu,否则4-5-2)粗体出不来。xfree.org里列举了将所有字体anti-alias都取消的代码,这样当然不好。也可以按照例如从8点到15点字都不用anti-alias的方案
4-4-5) xfree.org中举例的为LCD显示器做的优化

代码:
<!– Enable sub-pixel rasterisaton on LCD displays –>
<match target="font">
   <edit name="rgba" mode="assign">
      <const>rgb</const>
   </edit>
</match>

液晶显示器必选。
4-4-6) 解决使用中文字体时,英文字间距加倍问题:

代码:
<match target="font">
   <test target="spacing" compare="more_eq">
      <const>dual</const>
   </test>
   <edit name="globaladvance" mode="assign">
      <bool>false</bool>
   </edit>
</match>


将以上所有片段连接起来,就可以了。<!– 到 –>里面的都是注释。
4-5) 粗体解决方案
4-5-1) 替代方案
在你自己的local.font或者~/.fonts.conf中加入

代码:
<!– bold substitution, by luo: karllo@mail.nbptt.zj.cn –>
<match>
   <test name="family">
      <string>SimSun</string>
   </test>
    <test name="weight" compare="eq">
      <const>bold</const>
   </test>
    <edit name="family" mode="assign_replace">
      <string>SimHei</string>
   </edit>
<!– if subtitude fonts has "bold", we can use it, otherwise just comment out   
         <edit name="weight" mode="assign_replace">
      <const>bold</const>
   </edit> 
–>
</match>


这里,我们用黑体SimHei代替应该成为黑体的simsun。效果不怎么样。如果用一个粗圆体,效果会更好些。
4-5-2) 修改libXft方案。按照firefly提供的patch,可以自己编译,也可以按照其他贴子修改ebuild,重新emerge,但是都很麻烦。现在要使用一个比较"dirty"的方案,但是效果是非常不错的。
首先看看你原本的libXft.so.2在哪里

代码:
# find /usr -type f -iname ‘libXft.so.2*’


我的是在/usr/X11R6/lib/下面,xft2的是libXft.so.2.1,其他两个是到这个文件的符号连接。
下载:http://firefly.idv.tw/setfont-xft/RedHat/9.0/RPMS/libXft-2.1.2-2.firefly.i386.rpm
然后,将里面的库提取出来

代码:
#mkdir tempDir
#cd tempDir
#rpm2cpio ../libXft-2.1.2-2.firefly.i386.rpm | cpio -i


或者

代码:
#rpm2targz libXft-2.1.2-2.firefly.i386.rpm
#tar -xvzf libXft-2.1.2-2.firefly.i386.tar.gz


你将看到,里面共有三个文件,一个库文件libXft.so.2.1.1,两个符号连接。简单的办法,删除原来的libXft.so.2.1,把新的拷贝过去并命名为libXft.so.2.1即可。同时,要在你自己的local.fonts或~/.fonts.conf中增加:

代码:
<!– artificial bold by: firefly–>
<match target="font">
   <test target="pattern" name="weight" compare="more">
      <const>medium</const>
   </test>
   <edit name="weight" mode="assign">
      <const>bold</const>
   </edit>
</match>

这样就产生了粗体。

5) mozilla的字体,除了中文将最小字体改为12,其他我没做任何改变。

看图吧。我自己就是万全我上面所说的方法进行,我只用了很少时间就得到了一个清晰美观的桌面。好了,现在可以学学别的了。

附记:如果使用圆体字AA美化,你也可以从我的方案中马上只道怎么做了。提示:4-4-4)就不要了,所有的字都用反锯齿效果了,粗体解决方案用4-5-1)即可, firefly相关补丁等都不需要进行了。

    我用的是2005.0的安装盘.比较方便,就是编译的时候慢了点.挺有成就感的.下面就说一下我安装的步骤.

    首先, 首先当然是分区了.我用的是fdisk,字符界面的,不太好看.可以用分区魔术师,图形化的,很方便.哦!分区后别忘了安装文件系统: mke2fs -j /dev/hda6 ,这样就在hda6上安装了ext3文件系统.也就是我们总说的格盘(哈哈).我用了10G的空间安装Gentoo,32M用于/boot分区,1G用于交换分区,其余的用于根(/)分区.

   

   

2005年09月13日

1.如果镜像是VCD之类的影碟,可以直接用mplayer播放:



mplayer cue://file[:track] [options]



2.用bchunk( http://he.fi/bchunk/ )转为ISO,这需要占用文件写入的时间:



bchunk file.bin file.cue outputfile



mount -t iso9660 outputfile /mnt/cdrom -o loop



3.使用cdemu( http://cdemu.sourceforge.net ),这是一个kernel module,比较高效:



cdemu 0 file.cue



mount -t iso9660 /dev/cdemu/0 /mnt/cdrom

2005年08月30日

Full Gentoo Linux Download Mirrors

The following organizations provide a full source mirror of all files related to Gentoo Linux, including installation CDs, LiveCDs and GRP package sets.

Note: These mirrors are download mirrors. The rsync-mirrors listed here are not for individual use (i.e. emerge –sync) as that would download the full mirror instead of just the Portage tree.

North America:
OSU Open Source Lab (USA/http)
Adelie Linux (Canada)
Bishops University Computer Science Department (Canada/ftp)
Quebec Scientific Information Network (Canada/ftp)
ibiblio.org (USA/ftp)
ibiblio.org (USA/http)
rsync (USA/rsync)
gatech.edu (USA/ftp)
purdue.edu (USA/rsync)
Sandia National Labs (USA/ftp)
Indiana University (USA/ftp)
Seren Innovations (USA/http)
Seren Innovations (USA/rsync)
University of Wisconsin at Madison Chemistry Department (USA/http)
University of Wisconsin at Madison Chemistry Department (USA/ftp)
University of Colorado at Denver Linux Users Group (USA)
University of Colorado at Denver Linux Users Group (USA/ftp)
University of Colorado at Denver Linux Users Group (USA/rsync)
CCC Communications (USA)
CCC Communications (USA/ftp)
TDS Internet Services (USA)
TDS Internet Services (USA/ftp)
TDS Internet Services (USA/rsync)
NetNITCO Internet Services (USA)
NetNITCO Internet Services (USA/ftp)
Earth Surface Process Research Insti, Univ of Airzona (USA/http)
Rensselaer Polytechnic Institute (USA/http)
University of Notre Dame LUG (USA/ftp)
Arctic Network Mirrors (Canada/ftp)
Arctic Network Mirrors (Canada/http)
Open Systems at University of Florida (USA/ftp)
Llarian Networks (USA/http)
Llarian Networks (USA/ftp)
Binarycompass.org (USA/http)
Datapipe Managed Hosting (USA/http)
Datapipe Managed Hosting (USA/ftp)
CS Department at Lewis University (USA/http)
CS Department at Lewis University (USA/ftp)
CS Department at Lewis University (USA/rsync)
CS Department at Western Michigan University (USA/http)
Geographical Information Network of Alaska (USA/http)
Geographical Information Network of Alaska (USA/rsync)
Utah State University (USA/http)
Utah State University (USA/ftp)
Utah State University (USA/rsync)
LUG at Michigan Tech University (USA/ftp)
University of Mississippi (USA/http)
Argonne National Laboratory (USA/http)
Argonne National Laboratory (USA/ftp)
Argonne National Laboratory (USA/rsync)
Easynews NNTP Hosting (USA/http)
Easynews NNTP Hosting (USA/rsync)
University of Illinois-Urbana Champaign (USA/http)
University of Illinois-Urbana Champaign (USA/ftp)

South America:
Labroatory of System Administration (Brazil/http)
Labroatory of System Administration (Brazil/ftp)

Europe:
Inode (Austria)
Inode (Austria/ftp)
Vienna Univ. of Technology (Austria/http)
Vienna Univ. of Technology (Austria/ftp)
Vienna Univ. of Technology (Austria/rsync)
BELNET (Belgium)
BELNET (Belgium/ftp)
BELNET (Belgium/rsync)
ITD Network ISP (Bulgaria/ftp)
ITD Network ISP (Bulgaria/http)
Silicon Hill Mirror Site (Czech Republic/ftp)
Masaryk University Brno (Czech Republic/rsync)
Masaryk University Brno (Czech Republic/rsync)*
ftp.linux.ee (Estonia)
ftp.linux.ee (Estonia/ftp)
tut.fi (Finland)*
tut.fi (Finland/ftp)*
tut.fi (Finland/rsync)*
mir.zyrianes.net (France/http)
tu-clausthal.de (Germany/ftp)
rwth-aachen.de (Germany/ftp)
Ruhr-Universität Bochum (Germany)
Ruhr-Universität Bochum (Germany/ftp)
Ruhr-Universität Bochum (Germany/rsync)
Uni Erlangen-Nürnberg (Germany)
Uni Erlangen-Nürnberg (Germany/ftp)
Uni Erlangen-Nürnberg (Germany/ipv6 only)
Uni Erlangen-Nürnberg (Germany/ftp/ipv6 only)
Uni Muenster/JOIN (Germany/ftp)
Uni Muenster/JOIN (Germany/rsync)
Dresden University of Technology/AG DSN (Germany/ftp)
Westfaelische Wilhelms-Universitaet (Germany/ftp IPV4 & IPV6)*
Westfaelische Wilhelms-Universitaet (Germany/ftp IPV4)
Westfaelische Wilhelms-Universitaet (Germany/ftp IPV6)*
Technical University of Darmstadt (Germany/http)
Technical University of Darmstadt (Germany/rsync)
University of Applied Sciences, Esslingen (Germany/http)
University of Applied Sciences, Esslingen (Germany/ftp)
University of Applied Sciences, Esslingen (Germany/rsync)
Mesh Solutions Internet Service Provider (Germany/ftp)
Tiscali Internet Service Provider (Germany/http)
Tiscali Internet Service Provider (Germany/ftp)
Technical University Carolo-Wilhelmina (Germany/ftp)
files.gentoo.gr (Greece/ftp)
National Technical University of Athens (Greece/ftp)
National Technical University of Athens (Greece/http)
University of Ioannina (Greece/ftp)
Budapest University of Technology (Hungary/http)
ICD 2000 Ltd (Hungary/http)
Eotvos Lorand University (Hungary/http)
Eotvos Lorand University (Hungary/ftp)
RHnet (Iceland)
RHnet (Iceland/ftp)
RHnet (Iceland/rsync)
Ireland National Education and Research Network (Ireland/http)*
Ireland National Education and Research Network (Ireland/ftp)*
Hamakor FOSS Society (Israel/http)
Hamakor FOSS Society (Israel/rsync)
University of Padova (Italy)
University of Padova (Italy/rsync)
University Federico II of Naples (Italy)
Duomenu tiltas (Lithuania/ftp)
Universiteit Twente (Netherlands)
Universiteit Twente (Netherlands/ftp)
Universiteit Twente (Netherlands/rsync)
Universiteit Twente (Netherlands)*
Universiteit Twente (Netherlands/ftp)*
Universiteit Twente (Netherlands/rsync)*
Scarlet Internet (Netherlands/ftp)
Nutsbedrijven Maastricht n.v (Netherlands/ftp)
Gentoo.no / Gentoo.se (Norway/http)
Instituto Superior Técnico (Portugal)
Instituto Superior Técnico (Portugal/ftp)
Instituto Superior Técnico (Portugal/ftp)
Polish Gentoo (Poland/http)
Rzeszow University of Technology (Poland/rsync)
Rzeszow University of Technology (Poland/http)
Gdansk University of Technology (Poland/http)
Romanian Linux Users Group (Romania/ftp)
Romanian Linux Users Group (Romania/http)
Romanian Linux Users Group (Romania/rsync)
Romanian Education Network (Romania/http)
Romanian Education Network (Romania/ftp)
Gentoo.sk (Slovakia/http)
Aiya Mirror (Russia/http)
Aiya Mirror (Russia/ftp)
Aiya Mirror (Russia/rsync)
Citkit.ru (Russia/http)
Citkit.ru (Russia/ftp)
Catalan GNU/Linux User Group (Spain/http)
Catalan GNU/Linux User Group (Spain/ftp)
LinUV at Valencia University (Spain/http)
Hogskolan Dalarna, Dalarna (Sweden/ftp)
Hogskolan Dalarna, Dalarna (Sweden/http)
högskolan Trollhättan (Sweden/http)
Pudas mirror project (Sweden/http)
Pudas mirror project (Sweden/ftp)
SWITCHmirror (Switzerland/http)*
SWITCHmirror (Switzerland/ftp)*
SolNet (Switzerland/ftp)
SolNet (Switzerland/http)
Ankara University (Turkey/http)
Ankara University (Turkey/ftp)
Ankara University (Turkey/rsync)
Blueyonder ISP (UK/http)
Blueyonder ISP (UK/ftp)
The UK Mirror Service (UK/http)
The UK Mirror Service (UK/ftp)
The UK Mirror Service (UK/rsync)
University of Belgrade (Yugoslavia/http)
University of Belgrade (Yugoslavia/ftp)
University of Belgrade (Yugoslavia/rsync)

Australia:
PlanetMirror
PlanetMirror (ftp)
Pacific Internet
Pacific Internet (ftp)
Independent Services Providers (http)
Independent Services Providers (ftp)
Independent Services Providers (rsync)

Asia:
mirror.gentoo.gr.jp (Japan)
gg3.net (Japan)
gg3.net (Japan/ftp)
University of Tokyo (Japan/ftp)
ChannelX.biz (Japan/http)
gentoo.or.kr (South Korea)
KEMS-Zajil (Kuwait)
KEMS-Zajil (Kuwait/ftp)
linux.ntcu.net (Taiwan/rsync)
Tainan Educational Network Center (Taiwan/http)
SiamCellPhone Mirror (Thailand/http)
SiamCellPhone Mirror (Thailand/ftp)
I-Shou University (Taiwan/http)
I-Shou University (Taiwan/ftp)
Asian Open Source Centre (Malaysia/http)

Other Mirrors:
(worldwide ibiblio mirrors)

Mirroring Resources:
How to set up a Gentoo Linux rsync mirror
How to set up a Gentoo Linux source mirror

Note: * Supports IPv6

Partial Gentoo Linux Mirrors

The following organizations provide partial mirrors of Gentoo Linux, including source tarballs and snapshots of the Portage tree. These mirrors do not have copies of our installation CDs, LiveCDs or GRP package sets. Please see the above mirrors if you are looking for one of those items. Linux Kullanicilari Dernegi (Turkey/ftp)
Averse Mirror Service (Singapore/ftp)
Averse Mirror Service (Singapore/http)

2005年08月24日

Gentoo Linux x86 Quick Install Guide

Sven Vermeulen  Author
Steven Wagner Author

Updated August 20, 2005

1. Quick Install Guide

Installation Media

Download a CD from one of our mirrors. You can find the ISOs in releases/<architecture>/<release>/installcd. The minimal installation CD is only useful for Internet-based installations; with the universal installation CD you can perform a network less installation as well.

Burn the CD and boot it. Press F2 at the boot screen to find out what boot options exist. Once booted, you need to start the pcmcia init script if you need PCMCIA support.

The installation CDs allow you to start an sshd server, add additional users, run irssi (a command-line chat client) and surf the web using lynx or links2.

Network Configuration

If your network does not work already, you can use net-setup to configure your network. You might need to load support for your network card using modprobe prior to the configuration. If you have ADSL, use adsl-setup and adsl-start. For PPTP support, first edit /etc/ppp/chap-secrets and /etc/ppp/options.pptp and then use pptp <server ip>.

For wireless access, use iwconfig to set the wireless parameters and then use either net-setup again or run ifconfig, dhcpcd and/or route manually.

If you are behind a proxy, do not forget to initialize your system using export http_proxy, ftp_proxy and RSYNC_PROXY.

Preparing the Disks

Use fdisk or cfdisk to create your partition layout. You need at least a swap partition (type 82) and one Linux partition (type 83).

Use mke2fs, mke2fs -j, mkreiserfs, mkfs.xfs and mkfs.jfs to create file systems on your Linux partitions. Initialize your swap partition using mkswap and swapon.

Mount the freshly created file systems on /mnt/gentoo. Create directories for the other mount points (like /mnt/gentoo/boot) if you need them.

Setting Up The Stage

First make sure your date is set correctly using date MMDDhhmmYYYY. Next, download a stage from one of our mirrors or use the one available on the installation CD (/mnt/cdrom/stages). Go to /mnt/gentoo and unpack the stage using tar -xvjpf <stage tarball>.

Install a Portage snapshot if you are performing a network less installation: go to /mnt/gentoo/usr and run tar -xvjf /mnt/cdrom/snapshots/<snapshot>. Other users can download a portage snapshot and install it likewise.

For a network less installation, copy over the source code files from /mnt/cdrom/distfiles/ to /mnt/gentoo/usr/portage/distfiles/.

Edit /mnt/gentoo/etc/make.conf to suit your needs (USE flag, CFLAGS and CXXFLAGS). You can use the nano editor for this.

Installing the Gentoo Base System

Mount the /proc file system first, copy over the /etc/resolv.conf file and then chroot into your Gentoo environment.


Code Listing 1.1: Preparing and chrooting

# mount -t proc none /mnt/gentoo/proc
# cp /etc/resolv.conf /mnt/gentoo/etc/
# chroot /mnt/gentoo /bin/bash
# env-update && source /etc/profile

If you are not running a network less installation, issue emerge –sync to update your Portage tree.

Next, make sure /etc/make.profile points to the right profile. The default one should suffice for most users; sub profiles are available for different kernels (like 2.4/ for 2.4-kernel based profiles). Change the profile using ln -sf.

  • Bootstrapping (not available for network less installations) happens using scripts/bootstrap.sh in the /usr/portage directory.
  • System installation (not available for network less installations) happens using emerge -e system (or -N if you haven’t altered the default CFLAGS/CXXFLAGS).

Kernel Configuration

Set your time zone information by changing the /etc/localtime symbolic link to the correct location in /usr/share/zoneinfo using ln -sf.

Install a kernel source (gentoo-sources and vanilla-sources are available for network less installations) and configure it using make menuconfig followed by make &&make modules_install inside /usr/src/linux. Copy the arch/i386/boot/bzImage file over to /boot. You can also emerge genkernel and use genkernel all.

Genkernel users will need to emerge coldplug and rc-update add coldplug default.

Configuring the System

Edit your /etc/fstab; an example follows:


Code Listing 1.2: Example fstab

/dev/hda1   /boot     ext2    defaults,noatime     1 2
/dev/hda2   none      swap    sw                   0 0
/dev/hda3   /         ext3    noatime              0 1
none        /proc     proc    defaults             0 0
none        /dev/shm  tmpfs   nodev,nosuid,noexec  0 0
/dev/cdroms/cdrom0    /mnt/cdrom    auto      noauto,user    0 0

Edit /etc/conf.d/hostname and /etc/conf.d/domainname, run rc-update add domainname default and edit /etc/conf.d/net to configure your network. Add the net.eth0 init script to the default run level. If you have multiple NICs, symlink them to the net.eth0 init script and add them to the default run level as well.

Edit /etc/hosts; examples are given below:


Code Listing 1.3: Example /etc/hosts

(For static IPs)
127.0.0.1     localhost
192.168.0.5   jenny.homenetwork jenny
192.168.0.6   benny.homenetwork benny
192.168.0.7   tux.homenetwork tux

(For a dynamic IP)
127.0.0.1     localhost.homenetwork tux localhost

Emerge pcmcia-cs and add it to the default run level if you need it.

Set the root password using passwd.

Set the necessary system configuration in /etc/rc.conf, /etc/conf.d/rc, /etc/conf.d/keymaps, /etc/conf.d/clock.

Installing System Tools

2.4 kernel users need to emerge –unmerge udev and emerge devfsd.

Install a system logger like syslog-ng and add it to the default run level. Do the same for a cron daemon like vixie-cron (optional).

Install the necessary file system tools (xfsprogs, reiserfsprogs or jfsutils) and networking tools (dhcpcd or rp-pppoe).

Configuring the Bootloader

Emerge grub or lilo. Edit /boot/grub/grub.conf or /etc/lilo.conf to your likings. Below you will find an example for each.


Code Listing 1.4: Example grub.conf

default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz

# genkernel users
title=Gentoo Linux 2.6.11-r3
root (hd0,0)
kernel /kernel-genkernel-x86-2.6.11-gentoo-r3 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev
initrd /initramfs-genkernel-x86-2.6.11-gentoo-r3

# non-genkernel users (no initrd)
title=Gentoo Linux 2.6.11 r3
root (hd0,0)
kernel /kernel-2.6.11-gentoo-r3 root=/dev/hda3

# Only in case you want to dual-boot
title=Windows XP
root (hd0,5)
makeactive
chainloader +1


Code Listing 1.5: Example lilo.conf

boot=/dev/hda
prompt
timeout=50
default=gentoo

# For non-genkernel users
image=/boot/kernel-2.6.11-gentoo-r3
  label=gentoo
  read-only
  root=/dev/hda3

# For genkernel users
image=/boot/kernel-genkernel-x86-2.6.11-gentoo-r3
  label=gentoo
  read-only
  root=/dev/ram0
  append="init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev"
  initrd=/boot/initramfs-genkernel-x86-2.6.11-gentoo-r3

# For dual-booting
other=/dev/hda6
  label=windows

GRUB users need to install GRUB in the MBR using grub-install /dev/hda after copying /proc/mounts to /etc/mtab. LILO users need to run /sbin/lilo.

Exit the chrooted environment, unmount all file systems and reboot.

Finalizing the Installation

Log in as root, then add one or more users for day-to-day use using useradd -m -G <groups> <username>.

If you performed a network less installation, mount the packages CD at /mnt/cdrom and export PKGDIR="/mnt/cdrom" after which you can emerge -k <package> to install additional software like kde.

Thanks for installing Gentoo!


2005年08月19日

  并没有赶流行的心情,只是想学点东西。

  这几天在网上看到一些有关gentoo的评论,也想装上看看,开始真的有点赶流行的心情,可是现在却只是一种学习的心情,因为这个东西我装不上,好像还要编译内核,这项工作我在用别的版本的时候都回避了,这回就得试试了,还好,还是可以学到点东西的,现在感觉自己学的东西还是太少了。

  再说也好几天没有用Linux了,虽然不太喜欢windows,但是还是得用,方便啊。过几天好好看看gentoo的手册,装个看看,不能天天在windows下呆着了,好无聊啊。在Linux下还可以学很多的东西,比如说shell,系统编程,perl,python。当然这些东西在windows下也可以学,但是我还是不知道这些东西学了有什么用,所以还是到Linux下去吧。至少我学的东西可以用一下,别管学的怎么样,先用用看吧。不然永远都不知道自己学的怎么样。

  决定了,周一来装Gentoo.

2005年05月20日

    Debian下的软件很容易安装,只要apt-get就可以了,可是在显示中文的时候就有问题了,Debian系统安装时候的中文设置就花费了很多的时间.闲话少说,现在开始安装并设置Debian下的Latex:
#apt-get update
#apt-get install tetex-bin tetex-extra cjk-latex tfm-arphic* //注:tfm-arphic* 是字体.
#apt-get install texmf-zh //注:如果你的源找不到的话,可以用deb http://debian.ustc.edu.cn/debian-uo                             sid marillat ustc
然后就可以试试好不好用了:
下面是一个Hello.tex:

 \documentclass[12pt]{article}
\usepackage{CJK}
\begin{document}
\begin{CJK*}{GB}{song}
\CJKtilde
\title{\bf 中文\LaTeX~(CJK+LaTeX)的使用实例}
\date{\today}
\maketitle
\end{CJK*}
\end{document}

$texi2pdf Hello.tex
$xpdf Hello.pdf
就可以看到你写的东西了.
Good Luck!

2005年04月29日

    开发Linux下发驱动程序没有Windows里的那么容易,需要了解Linux内核的一些东西,虽然原来我看过Linux的内核源码,但是看起驱动来还是有点不懂啊。里面的东西挺多的,会用到操作系统的很多理论,比如说进程对临界区的互斥,这就要用到信号灯变量,还要考虑多处理机的情况,想起来都头痛。闲话少说,先看看环境的设置:
    我用的是Debian,在安装基本的操作系统后并没有安装相关的源码包。如果你也各我一样,那么你可以用下面的命令来安装:
    su//用root用户
    apt-get install kernel-headers-2.4.27-686 //下载源码里的头文件部分
    apt-get install kernel-sources-2.4.27 //下载源码里的源文件部分
    后面的是版本号,可以选择和自己内核相应的版本号,然后就可以开发了。

2005年04月26日

    今天下午终于把Gtk安装上了,开始只安装了glade及它依赖的几个包,但是在编译的时候出现AM_PATH_GTK宏找不到的错误,把我都弄晕了。不过还好,现在可以用了。
    我的系统是Debian/kernel2.4/fvwm.只安装了很少的包,安装glade后,生成一个项目后无法编译,有几个宏找不到定义,后来把/etc/apt/sources.list里的stable改成sid ,然后apt-get update,apt-get upgrade,apt-get build-dep glade后,就可以用了。终于有点进展了。庆祝一下!