分类: LINUX
2005-06-12 17:58:54
1)准备
================================
a)安装必须的软件包
apt-get update
apt-get install cloop-utils
apt-get install polipo (http proxy ,用作web cache)
apt-get install debootstrap
b)建立工作目录
mkdir /home/mpx
mkdir /home/mpx/mod-new
mkdir /home/mpx/cd-new
c)debootstrap sid
export http_proxy=
debootstrap sid /home/mpx/mod-new
echo "proc-sid /home/mpx/mod-new/proc proc none 0 0" /etc/fstab
mount proc-sid /home/mpx/mod-new/proc -t proc
(to ckeck mount sucessfully: cat /etc/mtab )
2)安装 xfce4 + hiweed055.* + morphix.*
(由hiweed-livecd-pkg.list设定)
==========================
chroot /home/mpx/mod-new/
a)/etc/resolv.conf
rm /etc/resolv.conf
nano /etc/resolv.conf
nameserver 211.167.97.200
nameserver 211.167.97.67
nameserver 211.167.97.68
(根据实际情况改)
b)/etc/hosts
nano /etc/hosts
127.0.0.1 localhost
c)/etc/apt/sources.list
(file:///var/cache/hiweed-debs/
包含 : (copy from hiweed-055.iso)
flashplayer-hiweed
hiweedconf
netcardconfig-hiweed
skel-hiweed
ttf-simsun-hiweed
)
touch /etc/apt/sources.list
nano /etc/apt/sources.list
deb
deb file:///var/cache/hiweed-debs/ ./
deb
d)apt-get update
e)dpkg --set-selections < ./hiweed-livecd-pkg.list
f)apt-get dselect-upgrade
**)locale : 选zh_CN.GBK GBK (并选它作为默认)
***********clean************
g)apt-get clean
h)rm -rf /tmp
ln -s /var/tmp /tmp
rm -rf /var/tmp/*
i)mkdir /cdrom /cdrom1 /MorphixCD /floppy
j)updatedb
k)exit
3)作mainmod (cloop 2.x 压缩)
==================================
a)umount /home/mpx/mod-new/proc
b)sh mkmain
cat mkmain
mkisofs -iso-level 4 -R -U -V "Hiseed" -P "Hiweed" -hide-rr-moved -cache-inodes -no-bak -pad new-mod | nice -5 create_compressed_fs - 65536 > new-cd/Hiweed.mod
4)作ISO
==================================
a)将hiweed.mod 拷入ISO里的mainmod目录中
5)OK, 大功告成! 刻盘,运行
==================================
a)OK. 刻盘 (在刻盘前,用vmware 试一试最好了)