LFS 学习日记(浏览第6章)

2010年03月17日 星期三 15时18分01秒

1、http://www.linuxfromscratch.org/lfs/view/6.6/chapter06/introduction.html
初学者不要优化编译。不要并行编译。

2、http://www.linuxfromscratch.org/lfs/view/6.6/chapter06/kernfs.html
从: http://www.linuxfromscratch.org/lfs/view/6.6/chapter05/changingowner.html 知,这里及以后的命令都是以 root 登录执行而不是 lfs 。

3、http://www.linuxfromscratch.org/lfs/view/6.6/chapter06/pkgmgt.html
综述各种包管理系统的特点。LFS 的基于用户的包管理方案。在多个系统上部署编译完成的 LFS。

4、http://www.linuxfromscratch.org/lfs/view/6.6/chapter06/chroot.html
确保之后的操作在正确的chroot环境(包括之前的 Section 6.2.2, “Mounting and Populating /dev” and Section 6.2.3, “Mounting Virtual Kernel File Systems” )是非常重要的。

5、http://www.linuxfromscratch.org/lfs/view/6.6/chapter06/createfiles.html
/bin/bash 的去掉哈希选项hash ( +h )在 LFS book 中常出现,是为了避免 bash记住执行过的二进制文件路径以立即使用新安装的二进制文件。

2010年03月22日 星期一 17时36分41秒
http://www.linuxfromscratch.org/lfs/view/6.6/chapter06/readjusting.html
In Chapter 5, the chain was guided from the host's /{,usr/}lib directories to the new /tools/lib directory. Now, the chain will be guided from that same /tools/lib directory to the LFS /{,usr/}lib directories.

2010年03月24日 星期三 17时14分45秒  

http://www.linuxfromscratch.org/lfs/view/6.6/chapter06/inetutils.html
 --disable-whois

    This option disables the building of the Inetutils whois client, which is out of date. Instructions for a better whois client are in the BLFS book.

 Move some programs to their FHS-compliant place:

mv -v /usr/bin/{hostname,ping,ping6} /bin
mv -v /usr/bin/traceroute /sbin

在浏览LFS第六章对GUN/Linux开源系统有点感触,因为各个组成部分都是由不同的人完成,在利用这些部件装配成一个基本LFS系统的时候,必须为协调这些部件作些调整,例如:不同的软件包之间有重复的程序,需要作些取舍;根据行业标准调整一些二进制文件的位置。这些方面的一些程序之间交互和标准问题等等在一个公司做的闭源操作系统里想来应该就不会存在。所以,任何一种开发模式和任何一种操作系统都有自己的优点和缺点,它们都有自己针对的用户群体和应用场景。

2010年05月02日 星期日 19时25分56秒
终于断断续续的把第六章浏览完了。浏览第六章的时候,发现有两个方面看起来比较吃力,一是脚本,二是基本系统里面每个软件包含相应命令的详细用处。在下一步详细看的时候,每个脚本的用法都应掌握,一般软件用处要基本了解,重要软件的用处应该深刻理解。以后如果定制系统时具体用到某个软件更应熟练运用。