|
|
slitaz整合软件
本帖最后由 2010teasiu 于 2013-5-2 01:42 编辑
关于整合软件的脚本,我这里放出2个例子,
大家很容易就可以做到。
把脚本下载到当前并解压出来
你要做的就是输入# sh genisoxxx.sh即可。
tux@slitaz:~$ su
Password:
root@slitaz:/home/tux# sh geniso-base-ghost.sh
Connecting to download.tuxfamily.org (88.191.250.171:80)
packages.desc 100% |*******************************| 349k 00:00:00 ETA
Connecting to download.tuxfamily.org (88.191.250.18:80)
packages.md5 100% |*******************************| 195k 00:00:00 ETA
Connecting to download.tuxfamily.org (88.191.250.171:80)
packages.txt 100% |*******************************| 274k 00:00:00 ETA
Connecting to download.tuxfamily.org (88.191.250.18:80)
packages.list 100% |*******************************| 61644 00:00:00 ETA
Connecting to download.tuxfamily.org (88.191.250.171:80)
wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable
Connecting to download.tuxfamily.org (88.191.250.18:80)
files.list.lzma 100% |*******************************| 1814k 00:00:00 ETA
Connecting to download.tuxfamily.org (88.191.250.171:80)
wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable
================================================================================
Last packages.list is ready to use. Note that next time you recharge the
list, a list of differences will be displayed to show new and upgradeable
packages.
Cleaning : /home/slitaz/4.0/distro
================================================================================
================================================================================
Connecting to linux-pe.googlecode.com (173.194.72.82:80)
slitaz4.0cn-3.8.5-ba 100% |*******************************| 64470k 00:00:00 ETA
Tazlito extracting : slitaz4.0cn-3.8.5-base-20130427.iso
================================================================================
Mounting ISO image...
Copying the Linux kernel... OK
Copying isolinux files... OK
Copying the rootfs... OK
Extracting the rootfs... 493911 blocks
================================================================================
Extracted : slitaz4.0cn-3.8.5-base-20130427.iso (63.0M)
Distro tree : /home/slitaz/4.0/distro
Rootfs size : 258.2M rootfs
Rootcd size : 62.9M rootcd
================================================================================
Connecting to linux-pe.googlecode.com (173.194.72.82:80)
ghost.tazpkg 100% |*******************************| 6958k 00:00:00 ETA
Installation of : linux-ghost
================================================================================
Copying linux-ghost... [ OK ]
Extracting linux-ghost... [ OK ]
Extracting the pseudo fs... (lzma) [ OK ]
Installing linux-ghost... [ OK ]
Removing all tmp files... [ OK ]
================================================================================
linux-ghost (0.01) is installed.
273554 bytes saved in duplicate files.
Generating lzma'ed initramfs...
Filesystem size: 66.2M
Computing md5... OK
Generating ISO image
================================================================================
Generating slitaz-4.0.iso
Size of boot image is 4 sectors -> No emulation
14.06% done, estimate finish Sun Apr 28 23:20:43 2013
28.08% done, estimate finish Sun Apr 28 23:20:43 2013
42.13% done, estimate finish Sun Apr 28 23:20:43 2013
56.14% done, estimate finish Sun Apr 28 23:20:43 2013
70.20% done, estimate finish Sun Apr 28 23:20:43 2013
84.21% done, estimate finish Sun Apr 28 23:20:43 2013
98.27% done, estimate finish Sun Apr 28 23:20:43 2013
Total translation table size: 2048
Total rockridge attributes bytes: 2067
Total directory bytes: 4096
Path table size(bytes): 38
Max brk space used 22000
35629 extents written (69 MB)
Creating hybrid ISO... OK
Creating the ISO md5sum... OK
================================================================================
Distro statistics (/home/slitaz/4.0/distro)
================================================================================
Build date : 20130428
Packages : 277
Rootfs size : 265.4M
Initramfs size : 66.2M
ISO image size : 70.0M
================================================================================
Image is ready: slitaz-4.0.iso
生成的ISO文件在/home/slitaz/4.0/distro/
root@slitaz:/home/tux#
另外,教大家修改脚本的方法:
比如我增加几句:- #!/bin/sh
- tazpkg recharge
- ISO_URL="http://linux-pe.googlecode.com/files/slitaz4.0cn-3.8.5-base-20130427.iso"
- ISO=$(basename $ISO_URL)
- ISO_PATH="/home/slitaz/4.0/distro"
- tazlito clean-distro
- mkdir -p $ISO_PATH
- cd $ISO_PATH
- busybox wget -P .. $ISO_URL
- tazlito extract-distro ../$ISO
- cd rootfs
- echo "增加ghost工具"
- wget http://linux-pe.googlecode.com/svn/trunk/ghost.tazpkg
- tazpkg install ghost.tazpkg --root=$(pwd) --forced
- rm ./ghost.tazpkg
- echo "如果你像我那么贱,好吧,再加上一个无线破解"
- wget http://linux-pe.googlecode.com/svn/trunk/minidwep.tazpkg
- tazpkg install minidwep.tazpkg --root=$(pwd) --forced
- rm ./minidwep.tazpkg
- echo "增加root权限按F4弹出终端配置"
- wget http://linux-pe.googlecode.com/svn/trunk/main
- mkdir -p ./root/.config/pcmanfm
- mv ./main ./root/.config/pcmanfm
- echo "取消首次运行输入法弹出窗口"
- wget http://linux-pe.googlecode.com/svn/trunk/config.desc
- mv ./config.desc ./usr/share/fcitx/configdesc
- echo "正在重制iso请稍候"
- tazlito gen-initiso
- echo "生成的ISO文件在/home/slitaz/4.0/distro/"
复制代码 有些网友需要离线的整合脚本,那么我再修改了一下,大家要注意自己选择了。- #!/bin/sh
- ISO_URL="/home/tux/slitaz4.0cn-3.8.5-base-20130427.iso"
- ISO=$(basename $ISO_URL)
- ISO_PATH="/home/slitaz/4.0/distro"
- if [ ! -f "$ISO_URL" ] ; then
- echo "对不起你还没有下载ISO,程序终止"
- echo "请到http://linux-pe.googlecode.com下载"
- echo "或者输入wget http://linux-pe.googlecode.com/files/slitaz4.0cn-3.8.5-base-20130427.iso"
- exit
- fi
- tazpkg recharge
- tazlito clean-distro
- mkdir -p $ISO_PATH
- cd $ISO_PATH
- cp $ISO_URL ../
- tazlito extract-distro ../$ISO
- cd rootfs
- ##########################
- if [ -f "/home/tux/minidwep.tazpkg" ] ; then
- echo "安装minidwep.tazpkg软件包"
- cp /home/tux/minidwep.tazpkg ./
- tazpkg install minidwep.tazpkg --root=$(pwd) --forced
- rm ./minidwep.tazpkg
- else
- echo "没有发现minidwep.tazpkg"
- fi
- ##############################
- echo "增加root权限按F4弹出终端配置"
- wget http://linux-pe.googlecode.com/svn/trunk/main
- mkdir -p ./root/.config/pcmanfm
- mv ./main ./root/.config/pcmanfm
- ###############################
- echo "取消首次运行输入法弹出窗口"
- wget http://linux-pe.googlecode.com/svn/trunk/config.desc
- mv ./config.desc ./usr/share/fcitx/configdesc
- #############################
- echo "正在重制iso请稍候"
- tazlito gen-initiso
- echo "生成的ISO文件在/home/slitaz/4.0/distro/"
复制代码 |
评分
-
查看全部评分
|