Anda seorang network administrator yang sering melakukan pemasangan server warnet. Banyak hal yang sering dilakukan seperti konfigurasi DHCP server, internet sharing, hingga proxy. Untuk itu Anda butuh melakukan perubahan pada iso Ubuntu atau Blankon dengan menambahkan paket yang dimaksud.
Pasang paket yang diperlukan:
$ sudo apt-get update $ sudo apt-get install squashfs-tools mkisofs
Buatlah file conf:
SOURCE="/home/sugiana/Unduhan/blankon-6.0-cdlive-i386.iso" TARGET="blankon-6.0-cdlive-soho-i386.iso" LABEL="BlankOn 6 SOHO"
. ./conf mkdir -p /tmp/cdrom /tmp/root mount -o loop $SOURCE /tmp/cdrom rsync --exclude 'filesystem.squashfs' -a /tmp/cdrom/ cdrom/ mount -o loop -t squashfs /tmp/cdrom/casper/filesystem.squashfs /tmp/root cp -a /tmp/root . umount /tmp/root umount /tmp/cdrom
cp /etc/resolv.conf root/etc chroot root mount -t proc none /proc chroot root mount -t sysfs none /sys chroot root rm -f root/etc/resolv.conf chroot root apt-get clean chroot root umount sys chroot root umount proc chroot root rm -rf /tmp/* /root/.bash_history rm -rf cdrom/programs chmod +w cdrom/casper/filesystem.manifest chroot root dpkg-query -W --showformat='${Package} ${Version}\n' > cdrom/casper/filesystem.manifest cp cdrom/casper/filesystem.manifest cdrom/casper/filesystem.manifest-desktop sed -ie '/ubiquity/d' cdrom/casper/filesystem.manifest-desktop
. ./conf rm -f cdrom/casper/filesystem.squashfs awal=`date` mksquashfs root cdrom/casper/filesystem.squashfs cd cdrom find . -type f -print0 | xargs -0 md5sum > md5sum.txt mkisofs -r -V "${LABEL}" -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o ../$TARGET . echo "Awal $awal" echo "Akhir "`date` echo "Source "`ls -l $SOURCE | awk '{print $5}'` echo "Target "`ls -l ../$TARGET | awk '{print $5}'`
$ sudo sh 1-extract.sh
$ sudo sh 2-chroot.sh
root@laptop:/#
root@laptop:/# cd /etc/apt/sources.list.d root@laptop:/# wget http://debian.rab.co.id/rab.list root@laptop:/# apt-get update root@laptop:/# apt-get install internet-sharing dhcp3-server squid vim
root@laptop:/# exit exit sugiana@laptop:~$
$ sudo 3-pack.sh
Parallel mksquashfs: Using 2 processors Creating 4.0 filesystem on cdrom/casper/filesystem.squashfs, block size 131072. [==========================| ] 15063/84258 17%
357433 extents written (698 MB) Awal Sen Agu 2 09:45:39 WIT 2010 Akhir Sen Agu 2 09:50:52 WIT 2010 Source 731869184 Target 732022784
$ sudo sh 2-chroot.sh
$ sudo sh 3-pack.sh
Komentar terbaru
10 tahun 47 pekan y.l.
13 tahun 25 pekan y.l.
13 tahun 25 pekan y.l.
13 tahun 26 pekan y.l.