用gNewSense来创建自己的Linux发行版


是否觉得在4,5百个Linux发行版中很难选择?只是觉得某个版本的某些功能好,无法综合,现在我们就来打造自己的发行版本,俺近期会发行一个linux版本代号为Xlib-Linux0.1,呵呵!
俺在没有发现gNewSense之前想了很多办法都没有成功,最近看了她,但是似乎没有中文资料,俺自己做了一下翻译整理,希望对您有帮助,一步步来很简单!
Step 1: 环境准备
需要一个debian环境,推荐ubunt和hiweed debian;
Step 2: GPG Key
很多APT都需要一个GPG Key来确认发行版,我们首先来创建一个自己的GPG Key:gpg –gen-key,注意要用空白密码,后边的配置需要这个,然后添加public Key到rootking;
Step 3: Packages
下边这些文件是必须的:
apt-get install reprepro imagemagick debmirror build-essential apache2 subversion cdebootstrap
apt-get install squashfs-tools netpbm syslinux bittornado
apt-get build-dep linux-image-$(uname -r) ubiquity update-manager Ubuntu-artwork base-files ubuntu-meta
apt-get build-dep launchpad-integration grub system-tools-backends example-content gnome-panel
apt-get build-dep gnome-app-install
svn co http://svn.gnewsense.svnhopper.net/gnewsense/builder/trunk builder sudo ./fixup-kernel-wedge
Step 4:Debmirror (可选)
为了避免重复下载文件,俺建议创建一个自己的发行版的镜像,可能需要27GB空间。
debmirror –nocleanup –verbose –progress –method=http –host=ie.archive.ubuntu.com –arch=i386 \
–source –dist=dapper,dapper-security,dapper-updates,dapper-backports –section=main,main/debian-installer,universe –ignore-release-gpg \
–root=ubuntu /the/target/directory
Step 5: Configuration(配置)
进入之前您创建的biulder文件夹,编辑config文件,这里需要注意:MIRROR, RELEASE, DISTRONAME,DOMAIN, BASEDIR, 和 REPOAPT,这里有个详解文件:配置文件详解,一定要仔细看这个很关键。
Step 6: Generate the repository
./gen-repo && ./do-update
这一步需要点时间,每次有更新的时候 re-run re-do(debmirror 如果有需要的话)
Step 7: Generate the LiveCD
sudo ./gen-livecd;生成的文件将放到 $LIVECDDIR/$DISTRONAME_L-livecd-$LIVECD_VERSION.iso
./gen-cdsource
./stage-cd
这一步会创建一个压缩包,生成一个ISO文件在: $REPODST/cdimage
Step 7: Push your repository to a mirror and publicise
现在就可以发布了:
./push-repo
./push-cd
好了就这么多,可以共享一下您的Linux么?

相关内容

    暂无相关文章