Booyo LiveCD/Hd Install
BooyoLiveCD/HdInstall ¶* ¶óÀ̼¾½º¿¡ ¹®Á¦°¡ Àִ°¡? (show license ÇØ¾ß Çϳª?)
* ¼³Ä¡ÇÑ °æ¿ì´Â ¿ø·¡ÀÇ »óÅ°¡ µÇµµ·Ï ÇÑ´Ù.
* ÆÐÅ°Áö ¼³Ä¡´Â root ¸¸ ÇÒ ¼ö ÀÖµµ·Ï ÇÏ¸é ¹®Á¦´Â ¹«¾ùÀΰ¡?
* root ·Î ÀÎÅͳÝÀ» µ¹¾Æ ´Ù´Ï´Â °ÍÀº ¾ó¸¶³ª À§ÇèÇÑ°¡?
booyo-installer µðÀÚÀÎ ¶* system_type ÀÌ booyo1 ÀÎ °æ¿ì´Â ÇöÀç »óȲ´ë·Î
* system_type ÀÌ FC3 ÀÎ °æ¿ì´Â ÃÖÃÊ ¼³Ä¡ »óÅ·Î
knoppix-installer ½ºÅ©¸³Æ® »ç¿ë: ¹öÀü 03-11 ¶1. Å͹̳¯ âÀ» ¸¸µì´Ï´Ù.
2. knoppix-install À» ¼öÇàÇÕ´Ï´Ù.
Knoppix ¼³Ä¡ (v0.3-11) ¶½Ã½ºÅÛ Çü½ÄÀ» ¼±ÅÃÇϽʽÿä
¼³Ä¡¸¦ À§ÇÑ ¼³Á¤ ¶
¼³Ä¡ ½ÃÀÛ ¶
¼³Á¤ Àоî¿À±â ¶
function add_var { case "$REGISTERED" in *$1*) return 1;; esac REGISTERED="$REGISTERED $1" } function register_vars { for i in $@; do add_var "$i" done } function register_var { export $1"_COMMENT"="$2" export $1"_ALLOWED"="$3" export $1"_CHECKIT"="$4" export $1"_DEFAULT"="$5" [ -z "${!1}" -a -n "$5" ] && export $1="$5" }
main: knoppix-installer ¶
menu_part: 00-hd-tools.bm ¶
menu_main: knoppix-installer ¶
action-part: 00-hd-tools.bm ¶
create_config: knoppix-installer ¶
start_install: knoppix-installer ¶
do_install: knoppix-installer ¶
system_type_knoppix(): install/03-system_types.bm ¶
system_copy_home: install/02-install-tools.bm ¶
system_add_hd_config: install/02-install-tools.bm ¶
system_copy_etc: install/02-install-tools.bm ¶
system_type_beginner(): 03-system_types.bm ¶
system_install_templates: install/02-install-tools.bm ¶
system_install_i18n: install/02-install-tools.bm ¶
system_setup_kdm: install/02-install-tools.bm ¶
system_add_hd_autoconfig: install/02-install-tools.bm ¶
system_services: install/02-install-tools.bm ¶
/etc/init.d/knoppix-hd-config ¶
/etc/init.d/knoppix-hd-autoconfig ¶
/usr/sbin/knoppix-installer ¶clean_exit(), logit, exit_proc, setup_dialog_messages(), add_var, register_vars,
register_var, update_status, create_config, check_param, load_config, save_config,
show_install_options, old_installer, do_install, start_install, menu_main, main(),
ni-main
/usr/share/knoppix-installer/modules ¶
00-dialog.bm ¶
00-setuser.bm ¶
05-services.bm ¶
07-system.bm ¶
00-hd-tools.bm ¶
07-system.bm ¶
boot-tools.bm ¶
02-install-tools.bm ¶
* module_hd_doaction
module_swap_doaction
insert swap into /etc/fstab
clear /etc/fstab and insert only swap partition
update_fstab: used in hd install ¶
none /proc proc defaults 0 0 /dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0 (hal ÀÌ Ã³¸®Çϵµ·Ï ÇÒ °Í) none /sys sysfs defaults 0 0
save swap partition insert head comment insert selected partitoin to install knoppix Add other HD-mappings Add saved swap devices Add proc partition Add /dev/fd0 Add CD-Roms/DVD/... Let Knoppix detect all other partitions chroot "$TR" mount /proc chroot "$TR" rebuildfstab -r chroot "$TR" umount /proc # NTFS Partition(en) mit umask=000 Option ausstatten perl -pi -e 's/(ntfs noauto,users,exec,ro).*/\1,umask=000 0 0/' $TARGET_MNT_POINT/etc/fstab # USB Eintrag in die /etc/fstab vornehmen echo usbdevfs /proc/bus/usb usbdevfs defaults 0 0 >> $TARGET_MNT_POINT/etc/fstab cp $TARGET_MNT_POINT/etc/fstab $TMPDIR/ # remove uid=, gid= - entries for vfat; instead use that of running process [ -z "$USER_NAME" ] && USER_NAME="$DEFAULT_USER" sed 's/,umask=000,uid='$DEFAULT_USER',gid='$DEFAULT_USER'/,umask=000/g; s/$DEFAULT_USER/'$USER_NAME'/g' $TMPDIR/fstab > $TARGET_MNT_POINT/etc/fstab rebuildfstab is equal to buildfstab
call scanpartitions
modules/user-name-pass.bm ¶µé¿©´Ù º¸°í »ý°¢À» ÇØ¾ß ÇÔ.
root passwd ¿Í username, user passwd ¸¦ °íÃÄ¾ß ÇÔ.
modules/booting/boot-tools.bm ¶µé¿©´Ù º¸¸é Àç¹ÌÀÖÀ» °ÍÀ¸·Î »ý°¢µÊ.
¾ÕÀ¸·Î ÇÊ¿äµµ ÇÒ °ÍÀ¸·Î »ý°¢µÊ.
berry Á¡°Ë ¸ÕÀú ÇÒ °Í
add_bootmanager() ¶ÇÊ¿äÇÑ º¯¼ö: TARGET_MNT_POINT, $1, BOOT_LOADER, BOOT_WHERE
create_initrd() ¶¿©±â¿¡¼ SATA °ü·Ã ÀÛ¾÷À» ÇØ ÁÖ¾î¾ß ÇÔ. (¾î·Á¿ï °ÍÀ¸·Î ¿¹»óµÊ)
install_grub(): ¼öÁ¤Àü ¶
install_grub(): ¼öÁ¤ÈÄ ¶
make_grub_conf() ¶
¾Ë¾Æ³½ »çÇ× ¶
Á¶»ç ÇÊ¿äÇÑ °Íµé ¶
install_lilo()
qtpatred or gparted ¶qtparted ¸¦ ¼³Ä¡ÇÏ´Â °ÍÀÌ º¸´Ù ½¬¿ò.
gparted ¸¦ ¼³Ä¡Çϱâ À§Çؼ´Â ¼³Ä¡ÇØ¾ß ÇÏ´Â °ÍÀÌ ¸¹À½.
´ëºÎºÐ rpm À¸·Î µÇ¾î ÀÖÁö ¾ÊÀ½.
rpm À¸·Î µÇ¾î ÀÖ´Â °ÍÀ» ã¾ÒÀ½. 2005.5.9
¼öÁ¤ ÀÛ¾÷ ¶mkinitrd option ÀÌ º¯ÇßÀ½.
update-grub °¡ FC3 ¿¡´Â ¾ø½¿.
knoppix ÀÇ ½ºÅ©¸³Æ® º¹»ç
tempfile ÀÌ ¾øÀ¸¹Ç·Î mktemp »ç¿ë
#newtemplate=$(tempfile) newtemplate=`mktemp ` || exit 1 #buffer=$(tempfile) buffer=`mktemp ` || exit 1 HD_CHOICE="/dev/hdb1" GRUB_MBR=$(grep "(hd0)" device.map | awk '{ print $2 }') HD_CHOICE_BASE=${HD_CHOICE%%[0-9]} HD_CHOICE_NUM=${HD_CHOICE#$HD_CHOICE_BASE} GRUB_PART="" if [ "$GRUB_MBR" != "$HD_CHOICE_BASE" ] then GRUB_PART=$(grep $HD_CHOICE_BASE device.map | awk '{ print $1 }') fi if [ -z "$GRUB_PART" ] then ROOT_PART="(hd0,$(($HD_CHOICE_NUM-1)))" else GRUB_PART_BASE=${GRUB_PART%)} ROOT_PART="$GRUB_PART_BASE,$(($HD_CHOICE_NUM-1)))" fi echo $ROOT_PART fstab °ü·Ã ¶[root@localhost mnt]# cat /proc/mounts rootfs / rootfs rw 0 0 /proc /proc proc rw,nodiratime 0 0 none /dev tmpfs rw 0 0 /dev/root / ext2 rw 0 0 none /dev tmpfs rw 0 0 /proc /proc proc rw,nodiratime 0 0 /proc/bus/usb /proc/bus/usb usbfs rw 0 0 /sys /sys sysfs rw 0 0 none /dev/pts devpts rw 0 0 none /dev/shm tmpfs rw 0 0 none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0 sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0 [root@localhost mnt]# cat /etc/fstab # This file is edited by fstab-sync - see 'man fstab-sync' for details LABEL=/ / ext2 defaults 1 1 none /dev/pts devpts gid=5,mode=620 0 0 none /dev/shm tmpfs defaults 0 0 none /proc proc defaults 0 0 none /sys sysfs defaults 0 0 /dev/sda6 swap swap defaults 0 0 /dev/hda /media/cdrecorder auto pamconsole,ro,exec,noauto,managed 0 0 /dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0 title Fedora Core (2.6.9-booyo) root (hd0,4) kernel /boot/vmlinuz-2.6.9-booyo ro root=LABEL=/ initrd /boot/initrd-2.6.9-booyo.img /etc/fstab ÀÇ º¯È¸¦ ÃßÀûÇØ¾ß ÇÔ.
/dev/sda10 / ext2 defaults,errors=remount-ro 0 1 /proc /proc proc defaults 0 0 /sys /sys sysfs noauto 0 0 /dev/pts /dev/pts devpts mode=0622 0 0 /dev/fd0 /mnt/auto/floppy auto user,noauto,exec,umask=000 0 0 /dev/cdrom /mnt/auto/cdrom auto user,noauto,exec,ro 0 0 # Added by KNOPPIX /dev/hdb1 /mnt/hdb1 ext2 noauto,users,exec 0 0 fstab in knoppix-autoconfig ¶Ãʱâ /etc/fstab
/proc /proc proc defaults 0 0 /sys /sys sysfs noauto 0 0 /dev/pts /dev/pts devpts mode=0622 0 0 /dev/fd0 /mnt/floppy auto user,noauto,exec,umask=000 0 0 /dev/cdrom /mnt/cdrom auto user,noauto,exec,ro 0 0 cdrom automount and add /etc/fstab
rebuildfstab -r -u knoppix -g knoppix
ÇÊ¿äÇÑ ÀÛ¾÷ ¼öÇà (Á¶±Ý º¹ÀâÇÔ)
automounter ÀÌ ÀÖÀ¸¸é floppy, cdrom ÀÇ mount point Á¶Á¤ /mnt/auto/floppy
module_system() in 07-system.bm ¶register_vars "SYSTEM_MODULE SYSTEM_TYPE"
booyo-installer, 02-install-tools.bm
note ¶beginner ¿Í expert ·Î ±¸ºÐÇÏ¿© expert ´Â file system ¼±Åðú ÃʱâºÎÆýà ¼³Á¤À» Çϵµ·Ï ÇÏ´Â °ÍÀÌ ¾î¶³±î?
/.unconfigured ¸¦ »ý¼ºÇÏ¸é µÉ °Í °°À½. ÀÌ °æ¿ì root passwd ´Â rc.sysinit ¿¡¼ ¼³Á¤ÇÔ.
module_name Àº ¾ø¿¡´Â °ÍÀÌ ÁÁ°Ú½¿. (passwd ¿¡¼ »ç¿ëÇÔ. ÇÊ¿äÇÒ °ÍÀ¸·Î »ý°¢µÊ)
BOOT_LOADER Àº grub ·Î fix Çß½¿.
SYSTEM_TYPE ¸¦ INSTALL_TYPE ·Î º¯°æÇß½¿. °è¼Ó °ËÅäÇØ¾ß ÇÔ.
boot-tools.bm: GRUB_CMDLINE=$(module_system_get_cmdlines): ¿ì¼± comment ó¸®Çß½¿. »ý°¢ÇØ º¼ ÇÊ¿ä ÀÖ½¿.
experienced ´Â grub.conf ¸¦ ¼öÁ¤º¸¿ÏÇÒ ´É·ÂÀÌ ÀÖ´Ù.
module_system_get_cmdlines()
{
case "$INSTALL_TYPE" in
}
beginner)
experienced)
esac
SYSTEM_RESCUE_CMDS="acpi|noapic|nosmp|pci|pnpbios|noapm" SYSTEM_RESCUE_CMDLINE=$(cat /proc/cmdline | tr ' ' '\n' | egrep "$SYSTEM_RESCUE_CMDS" | tr '\n' ' ')
echo "ramdisk_size=100000 lang=ko apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi nomce $SYSTEM_RESCUE_CMDLINE"
modules/install/03-system_types.bm »ý°¢Çؼ °íÃÄ¾ß ÇÔ.
gparted ¶http://newrpms.sunsite.dk/apt/redhat/en/i386/fc3/RPMS.newrpms/
ÀÌ »çÀÌÆ®¿¡¼ ¹Þ¾Æ¼ ó¸®ÇÏ´Â °ÍÀÌ ¸ÂÀ» °Í °°À½.
[root@localhost ~]# rpm -ivh libsigc++2-2.0.11-1.rhfc3.nr.i386.rpm °æ°í: libsigc++2-2.0.11-1.rhfc3.nr.i386.rpm: V3 DSA signature: NOKEY, key ID b8693f2c Áغñ Áß... ########################################### [100%] 1:libsigc++2 ########################################### [100%] [root@localhost ~]# rpm -ivh glibmm-2.4.7-1.rhfc3.nr.i386.rpm °æ°í: glibmm-2.4.7-1.rhfc3.nr.i386.rpm: V3 DSA signature: NOKEY, key ID b8693f2cÁغñ Áß... ########################################### [100%] 1:glibmm ########################################### [100%] [root@localhost ~]# rpm -ivh gtkmm24-2.4.8-1.rhfc3.nr.i386.rpm °æ°í: gtkmm24-2.4.8-1.rhfc3.nr.i386.rpm: V3 DSA signature: NOKEY, key ID b8693f2c Áغñ Áß... ########################################### [100%] 1:gtkmm24 ########################################### [100%] [root@localhost ~]# rpm -ivh parted-1.6.15-5.i386.rpm °æ°í: parted-1.6.15-5.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2 Áغñ Áß... ########################################### [100%] parted-1.6.15-5 ÆÐÅ°Áö´Â ÀÌ¹Ì ¼³Ä¡µÇ¾î ÀÖ½À´Ï´Ù [root@localhost ~]# rpm -ivh gparted-0.0.8-2.rhfc3.nr.i386.rpm °æ°í: gparted-0.0.8-2.rhfc3.nr.i386.rpm: V3 DSA signature: NOKEY, key ID b8693f2c Áغñ Áß... ########################################### [100%] 1:gparted ########################################### [100%]parted °¡ ¼³Ä¡µÇ¾î ÀÖ´ÂÁö Á¡°Ë ÇÊ¿ä ½ÃÇèÀ» ¾î¶»°Ô ÇØ¾ß ÇÒÁö???? http://dag.wieers.com/packages/ntfsprogs/
[root@localhost ~]# rpm -ivh ntfsprogs-1.9.4-1.1.fc3.rf.i386.rpm °æ°í: ntfsprogs-1.9.4-1.1.fc3.rf.i386.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6 Áغñ Áß... ########################################### [100%] 1:ntfsprogs ########################################### [100%]
2005. 5. 12 ¶
½ÇÁ¦ º¹»ç ÀÛ¾÷ ¶
system_type_booyo1 ¶root ¸¦ ramdisk ·Î ¿Å°Ü¾ß ÇÒ °Í °°À½.
beginner ÀÇ °æ¿ì´Â ±×´ë·Î º¹»ç
experienced ÀÇ °æ¿ì´Â /etc/skel ¸¸ º¹»ç
live cd ¿¡¼ /etc/rc.d/rc5.d Á¶Á¤ÇÒ °Í
Á» ´õ »ý°¢ÇØ º¸ÀÚ
system_install_templates ¿¡¼ ¹«¾ùÀ» ÇÒ °ÍÀÎÁö »ý°¢ ÇÊ¿ä
system_update_files »ý°¢ÇÒ ÇÊ¿ä ÀÖÀ½
system_install_i18n »ý°¢ÇÒ ÇÊ¿ä ÀÖÀ½
°í·ÁÇØ¾ß ÇÏ´Â ÆÄÀÏµé ¶* linuxrc
The root filesystem doesn't have to be modified often, except for some configuration files. So it is possible to mount this directory read-only. There are several reasons: * if the user wants a simple solution to use a read-only support for the root directory (perhaps a better solution could be to have a look to how create one's own live CD). * if the user is in paranoid mode and wishes to secure its system even more. * finally, to avoid that power loss or system crash damage the root partition. * booyo-init
install fc4 ¶{{{ 7 umount /mnt/hdc6 8 mkfs.ext2 /dev/hdc6 9 mount /dev/hdc6 /mnt/hdc6 10 cd /mnt/hdc6 16 cp -Rp /BOOYO/bin /mnt/hdc6/ 19 cp -Rp /BOOYO/boot /mnt/hdc6/ 20 cp -Rp /BOOYO/lib /mnt/hdc6/ 22 cp -Rp /BOOYO/opt /mnt/hdc6/ 23 cp -Rp /BOOYO/sbin /mnt/hdc6/ 24 cp -Rp /BOOYO/usr /mnt/hdc6/ 25 cp -Rp /dev /mnt/hdc6/ 26 cp -Rp /ramdisk/etc /mnt/hdc6/ 28 cp -Rp /ramdisk/home /mnt/hdc6/ 29 mkdir media 30 mkdir mnt 31 mkdir proc 32 cp -Rp /ramdisk/home/root /mnt/hdc6/ 34 mkdir swap 35 mkdir sys 36 mkdir tmp 37 cp -Rp /ramdisk/var /mnt/hdc6/ edit menu.lst 115 cp /BOOYO/etc/inittab . 118 cd sbin 120 rm halt 121 mv halt.org halt 122 rm init 123 mv init.org init 125 rm poweroff 126 mv poweroff.org poweroff 129 rm reboot 130 mv reboot.org reboot edit fstab 14 cp -Rp /BOOYO/etc /mnt/hdc6/ 4 cd etc/sysconfig 5 ls 6 cp /etc/sysconfig/hwconf . 7 cp /etc/sysconfig/mouse . 8 cp /etc/sysconfig/xserver . 9 cd ../X11 10 pwd 11 cp /etc/X11/xorg.conf . 48 cp -Rp /BOOYO/var/mail . |
You will be recognized and honored as a community leader. |