|
howto : make a customized ubuntu main module
ccwufu @ linuxsir.cn
http://www.linuxsir.cn/forum.php?mod=viewthread&tid=148935
ccwufu @ morphix.org
http://www.morphix.org/modules/n ... jump=1&
my finished iso (morphix base 0.5pre3 + ubuntu 4.10 mainmod) can be download at
ISO
ftp://distro:smth@distro.cn/inco ... 3/ubuntu-livecd.iso
MD5 CheckSum
ftp://distro:smth@distro.cn/inco ... 3/ubuntu-livecd.md5
note 1:
the default lang is set to cn,so for non-chinese user ,please set the lang=us
note 2:
for the customization , I have add the chinese input (scim + scim-chinese) and chinese ttf fonts (ttf-simsun-hiweed)
================ main ========================
main# echo "deb http://www.morphix.org/ ./debian/" >> /etc/atp/sources.list
main# apt-get update
main# apt-get install polipo
main# apt-get install morphix-mmaker
main# mkdir /mnt/iso
main# mount /path/to/warty-release-install-i386.iso /mnt/iso
main# ln -s /mnt/iso /usr/share/polipo/www/debian
main# cd /usr/lib/debootstrap/scripts
main# ln -s sarge warty
main# ln -s sarge.buildd warty.buildd
main# mkdir /home/ubuntu-custom
main# cd /home/ubuntu-cdstom
main# mkdir ./ubuntu-debootstrap
main# debootstrap --exclude=dhcp-client,exim4,exim4-base,exim4-config,exim4-daemon-light,ipchains,libgcrypt11,libgnutls11,libtextwrap1,nvi,pppoe,tasksel,mailx,at --include=dhcp3-client,dhcp3-common,lsb-base,netbase warty ./ubuntu-debootstrap/ http://localhost:8123/
main# echo "proc-warty /home/ubuntu-custom/ubuntu-debootstrap/proc proc none 0 0" >> /etc/fstab
main# mount proc-warty /home/ubuntu-custom/ubuntu-debootstrap/proc -t proc
main$ rm /home/ubuntu-custom/ubuntu-debootstrap/etc/resolv.conf
main# cp /etc/resolv.conf /home/ubuntu-custom/ubutu-debootstrap/etc/resolv.conf
main# chroot /home/ubuntu-custom
=============== chroot =========================
chroot# echo "127.0.0.1 localhost" >> /etc/hosts
chroot# nano /etc/apt/sources.list
deb http://www.morphix.org/debian/ ./
deb http://localhost:8123/debian/ warty main
deb http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu/ warty main restricted universe
chroot# apt-get update
chroot# dselect update
chroot# dpkg --set-selections < ./ubuntu-selections.list
chroot# apt-get dselect-upgrade
chroot# dpkg --set-selections < ./morphix-gnome-selections.list
chroot# apt-get dselect-upgrade
chroot# apt-get install other-pkgs
chroot# apt-get clean
chroot# rm -rf /tmp
chroot# ln -s /var/tmp /tmp
chroot# rm -rf /tmp/*
chroot# mkdir /cdrom /cdrom1 /MorphixCD /floppy
chroot# updatedb
chroot# exit
================== main ======================
main# umount proc-warty
main# mkisofs -iso-level 4 -R -U -V "Hiseed" -P "Hiweed" -hide-rr-moved -cache-inodes -no-bak -pad ./ubuntu-debootstrap | nice -5 create_compressed_fs - 65536 > ./my-ubuntu.mod
~~~~~~~~OK , the customized ubuntu mainmod is completed.~~~~~~~~~~~
appendix:
a)morphix-gnome-selections.list
cdpersistent install
morphixinstaller install
partitionmorpher install
mcp install
xconf install
networkconf install
datetimeconf install
langconf install
mmaker install
keybconf install
morphix-background install
morphix-isomorph install
morphix-minimodgen install
morphix-modulebuilder install
morphix-init-gnome install
b)ubuntu-selections.list
pkg-name1 install
pkg-name2 install
......
pkg-names install |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|