如何把已在线更新成中文后的ubuntu 10.04 做成纯中文启动盘?(有技术含量的)

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
头像
bingyulian
帖子: 32
注册时间: 2010-08-05 12:48
送出感谢: 0
接收感谢: 0

如何把已在线更新成中文后的ubuntu 10.04 做成纯中文启动盘?(有技术含量的)

#1

帖子 bingyulian » 2010-08-18 18:27

问问各位高手们。我的ubuntu10.04 已在线更新成中文版后。 如果我想要这个已更新的中文unbuntu 系统做成纯中文启动盘,也就是说,当我再重装后,我就不需要再在线更新成中文。我不喜欢更新后就做个备份,以后就直接还原。这个没意思。最主要的原因是我想把这个纯中文的unbuntu光盘拿给那些没有网络的人安装。因为我们这里很难上到网,网费很高。我再网上搜索一段时间,也没发现别人问过我这类似的问题。再笨论坛也没发现。所以我只好先提出来咯
我的存在,只是为了让你堕落!
头像
bingyulian
帖子: 32
注册时间: 2010-08-05 12:48
送出感谢: 0
接收感谢: 0

Re: 如何把已在线更新成中文后的ubuntu 10.04 做成纯中文启动盘?(有技术含量的)

#3

帖子 bingyulian » 2010-08-19 18:37

ubuntu1023 写了:试试remastersys :em11
行 我去试试看
我的存在,只是为了让你堕落!
mech
帖子: 466
注册时间: 2007-09-06 16:07
送出感谢: 0
接收感谢: 0

Re: 如何把已在线更新成中文后的ubuntu 10.04 做成纯中文启动盘?(有技术含量的)

#4

帖子 mech » 2010-08-26 18:58

给你个脚本,参考下,自己更改就行了

代码: 全选

 
#!/bin/bash

btisoname=origin.iso

clear
echo "##############################################################"
echo "[*] Setting up the build environment..."

services="inetutils-inetd tinyproxy iodined knockd openvpn atftpd ntop nstxd nstxcd apache2 sendmail atd dhcp3-server winbind miredo miredo-server pcscd wicd wacom cups bluetooth binfmt-support mysql"
export LC_ALL=C

mkdir -p mnt
mount -o loop $btisoname mnt/
mkdir -p extract-cd
rsync --exclude=/casper/filesystem.squashfs -a mnt/ extract-cd
mkdir -p squashfs
mount -t squashfs -o loop mnt/casper/filesystem.squashfs squashfs
mkdir -p edit
echo "[*] Copying over files, please wait ... "

cp -a squashfs/* edit/

cp /etc/resolv.conf edit/etc/
cp /etc/hosts edit/etc/
cp /etc/fstab edit/etc/
cp /etc/mtab edit/etc/

mount --bind /dev/ edit/dev
mount -t proc /proc edit/proc

echo "##############################################################"
echo "[*] Entering livecd. "
echo "##############################################################"
echo "[*] Now you can modify the LiveCD. At minimum, we recommend :"
echo "[*] apt-get update && apt-get upgrade & apt-get clean"
echo "##############################################################"
echo "[*] If you are running a large update, you might need to stop"
echo "[*] services like crond, udev, cups, etc in the chroot"
echo "[*] before exiting your chroot environment."
echo "##############################################################"
echo "[*] Once you have finished your modifications, type \"exit\""
echo "##############################################################"

chroot edit

echo "[*] Exited the build environemnt, unmounting images."

rm -rf edit/etc/mtab
rm -rf edit/etc/fstab

umount edit/dev
umount edit/proc
umount squashfs
umount mnt

chmod +w extract-cd/casper/filesystem.manifest

echo "[*] Building manifest"
chroot edit dpkg-query -W --showformat='${Package} ${Version}n' > extract-cd/casper/filesystem.manifest

for service in $services;do
chroot edit update-rc.d -f $service remove
done

REMOVE='ubiquity casper live-initramfs user-setup discover xresprobe os-prober libdebian-installer4'
for i in $REMOVE
do
sed -i "/${i}/d" extract-cd/casper/filesystem.manifest-desktop
done

cp extract-cd/casper/filesystem.manifest extract-cd/casper/filesystem.manifest-desktop

sed -i '/ubiquity/d' extract-cd/casper/filesystem.manifest-desktop

rm -rf extract-cd/casper/filesystem.squashfs
echo "[*] Building squashfs image..."

mksquashfs edit extract-cd/casper/filesystem.squashfs

rm extract-cd/md5sum.txt

(cd extract-cd && find . -type f -print0 | xargs -0 md5sum > md5sum.txt)

cd extract-cd

echo "[*] Creating iso ..."

mkisofs -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -V "MYiso" -cache-inodes -r -J -l -o ../new.iso .

cd ..

echo "[*] Your modified ISO is in $(pwd)/new.iso"
echo "##############################################################"


回复

回到 “网卡问题以及网络和拨号”