|
我通常不去研究 lfs 底层的东西(不需要,自己的知识够用了),也不用 X
我的目的是能够快速部署一个 lamp - in ten minutes
所以每当推出一个新 lfs 版本,我就会 jhalfs 一个
然后:
1. 安装openssl, openssh
2. 完成 blfs chapter 3
托 ssh 的福,终于可以 copy, paste 了
3. 装 wget
4. 搞定 rc.local
- touch /etc/rc.d/rc.local
- chmod +x /etc/rc.d/rc.local
- ln -sf /etc/rc.d/rc.local /etc/rc.d/rc1.d/S999rc.local &&
- ln -sf /etc/rc.d/rc.local /etc/rc.d/rc2.d/S999rc.local &&
- ln -sf /etc/rc.d/rc.local /etc/rc.d/rc3.d/S999rc.local &&
- ln -sf /etc/rc.d/rc.local /etc/rc.d/rc4.d/S999rc.local &&
- ln -sf /etc/rc.d/rc.local /etc/rc.d/rc5.d/S999rc.local &&
- ln -sf /etc/rc.d/rc.local /etc/rc.d/rc6.d/S999rc.local
复制代码
5. 装 dcron
这个东西实在太 sexy ( 两个文件搞定 crond ),典范,一定要装
这是作者前言:
- I finally got tired of all of these wild cron programs that take the
- task of running timed jobs to ridiculous extremes in terms of
- capabilities and unnecessary features. So here is my entry: a
- crond/crontab combination that is simple and elegant, and hopefully
- secure to boot. This cron implements reasonable features in terms
- of field specification in the crontab and allows individual user
- crontabs.
复制代码
6. 装 mysql -> apache -> php
7. 扫脚印, 改时间
- for $fn in `find /mnt/lfs/var/log`; do rm $fn; touch $fn; done
- find /mnt/lfs -exec touch -d "2008-01-01" {} /;
复制代码
8. 打包,刻到 bootable CD 上
还要有个安装 script
9. 写上 ”lfs-6.3-lamp"
哦耶!自己的发行版 |
|