Tạo multiboot Dvd
mục tiêu : tạo liveDvd cho phép chọn một trong 3 live_linux lúc khởi động
quantian_0.7.9.2 knomath-1.1fr knoscience-1.0
lý do để các thày dạy toán lý tự chọn hệ quen thuộc.
chuẩn bị : thư mục chủ "toanly" cần chỗ 13Gb trên đĩa.
Tạo 2 thư mục
~/toanly/[ KNOPPIX/ boot/isolinux/ ]
tải 3 iso trên về ,link các tên sau với chúng
quantian.iso math.iso science.iso
cho dễ gõ-dùng sau này.tỉ dụ :
ln-s $HOME/download/knomath-1.1fr.iso $HOME/math.iso
-------------script---------
#!/bin/bash
#build master tree to create bootable_live_dvd for 3 distro
set -x
#if [ -d /home/wangji/toanly ] && rm -fr /home/wangji/toanly ;then
#mkdir ~/toanly ~/toanly/boot ~/toanly/boot/isolinux ~/toanly/KNOPPIX
for i in quantian math science ;
do
sudo mount -oloop $i.iso /mnt/test
cp /mnt/test/KNOPPIX/KNOPPIX ~/toanly/KNOPPIX/$i
if [ -f /mnt/test/KNOPPIX/KNOPPIX2 ] ; then
cp /mnt/test/KNOPPIX/KNOPPIX2 ~/toanly/KNOPPIX/"$i"2
cp /mnt/test/boot/isolinux/* ~/toanly/boot/isolinux/
else
for j in linux minirt.gz ; do
cp /mnt/test/boot/isolinux/$j ~/toanly/boot/isolinux/
done
for k in knoppix.sh configs.tar.bz2 background.jpg ; do
cp /mnt/test/KNOPPIX/$k ~/toanly/KNOPPIX
done
cp /mnt/test/*pdf ~/toanly
fi
sudo umount /mnt/test
done
md5sum ~/toanly/KNOPPIX/* > ~/toanly/KNOPPIX/md5sums
fi
---------------cut here---------------
Để hoàn chỉnh phân biệt giữa 3 distro này ,sửa tệp
~/toanly/boot/isolinux/isolinux.cfg
ở hai item
1 LABEL knoppix [KERNEL linux26] [minirt26.gz] thành
LABEL math [KERNEL linux ] [minirt.gz]
2 LABEL expert [KERNEL linux26] [minirt26.gz] thành
LABEL science [KERNEL linũ] [minirt.gz]
Thế là xong phần tạo master.
Để tạo tệp iso,gõ trong thư mục ~/toanly (trong thí dụ /mnt/hda6 có chỗ !)
mkisofs -R -J -joliet-long -l -iso-level 4 -V " knosmath-science" \
-o /mnt/hda6/matcd.iso -b boot/isolinux/isolinux.bin \
-c boot/isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table .
Để thử khởi động với qemu (khỏi tốn xăng_dvd_trắng..và thời gian đốt )
qemu -m 256 -cdrom /mnt/hda6/matcd.iso
lúc tới boot: có thể gõ thử 3 trường hợp
1 linux26 knoppix_name=quantian (full quantian_0.7.9.2 xem note dưới)
2 math knoppix_name=math knomath-1.1fr
3 science knoppix_name=science knoscience-1.0
phụ thêm
4 linux24 knoppix_name=quantian (quantian "nhẹ bụng" )
Muốn đốt dvd ,login_as_root ! gõ
growisofs -Z /dev/dvd -R -J -joliet-long -l -iso-level 4 \
-V " QuantianKnomathKnoscience" -b boot/isolinux/isolinux.bin\
-c boot/isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table .
note việt : trưóc khi tạo iso hay đốt dvd,nên chép xvnkb_0.2.9-1_i386.deb
chim.jar vào ~/toanly/ ,vì cả 3 distro toán đều có unionfs ,vậy thì sau
khi khởi động livedvd vẫn cài dễ dàng mấy chú này mà
"xào chim với nộm chuối " !
note quantian:
khi chạy với linux24 thì chỉ dùng khonén chính KNOPPIX (1.6Gb)
với linux26 thì kèm thêm khonén phụ KNOPPIX2 (1.1Gb) ;
khonén KNOPPIX2 của quantian chứa nhiều liên hệ tới java :
OpenOffice Mondrian(stat dữ liệu) weka (knowledge flow) allianc-5.0 (mô hình
sắp xếp "chip" của tương lai !) và scilab !!!
note cuối: bài viết này được khởi xướng sau đôi suy nghĩ về câu hỏi về vẽ đồ
thị khoa học của "bánh đậu xanh hải dương"
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
VietLUG-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vietlug-users