· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
Booyo LiveCD/Cp Etc Var

BooyoLiveCD/CpEtcVar


ºÎ¿© ¶óÀ̺ê CD ´Â CDROM ¿¡ ¸ðµç ÆÄÀϽýºÅÛÀÌ ÀÖÀ¸¹Ç·Î, Àб⸸ ÇÒ ¼ö ÀÖ½À´Ï´Ù. ½ÇÁ¦·Î ¾²±â°¡ ÇÊ¿äÇÑ ÆÄÀÏÀº ramdisk ¿¡ cp ¸¦ ÇØ ³õ¾Æ¾ß ¾²±â¸¦ ÇÒ ¼ö ÀÖ½À´Ï´Ù. ´ëÇ¥ÀûÀÎ ºÎºÐÀº /home µð·ºÅ丮 ÀÔ´Ï´Ù. ÀÌ¿Ü¿¡ /etc, /var µð·ºÅ丮 ¹ØÀÇ ÆÄÀϵé Áß¿¡ ¾²±â ±â´ÉÀÌ ÇÊ¿äÇÑ ÆÄÀϵéÀÌ ¸¹ÀÌ ÀÖ½À´Ï´Ù. ÇÏÁö¸¸ ¸ðµç ÆÄÀÏÀ» ramdisk ¿¡ º¹»ç¸¦ ÇØ ³õÀ¸¸é ¸Þ¸ð¸®¸¦ ¸¹ÀÌ Â÷ÁöÇϹǷÎ, ²À ÇÊ¿äÇÑ ÆÄÀϸ¸ º¹»ç¸¦ ÇÏ´Â °ÍÀÌ ÇÊ¿äÇÕ´Ï´Ù. ÀÌ ºÎºÐÀº CD ¸¦ »ý¼ºÇÏ´Â °úÁ¤°ú initrd.img ¼ÓÀÇ linuxrc, ±×¸®°í /etc/rc.sysinit ÀÌ ¸ðµÎ °°ÀÌ Ã³¸®ÇØ¾ß ÇÏ´Â ºÎºÐÀÔ´Ï´Ù. CD ¸¦ »ý¼ºÇÏ´Â °úÁ¤¿¡¼­´Â ÇÊ¿ä ¾ø´Â ÆÄÀÏÀº CD ¿¡ Ãß°¡µÇÁö ¾Êµµ·ÏÇÏ´Â ÀÛ¾÷°ú, ³»¿ëÀ» null ·Î ¸¸µå´Â ÀÛ¾÷ÀÌ ÀÖ½À´Ï´Ù. linuxrc ¿¡¼­´Â write °¡ ÇÊ¿äÇÑ ÆÄÀϵéÀ» ramdisk ·Î º¹»çÇÏ´Â °úÁ¤ÀÌ ÀÖ½À´Ï´Ù. rc.sysinit ¿¡¼­´Â ÇÊ¿äÇÑ ÆÄÀÏÀ» »ý¼ºÇÏ´Â °úÁ¤ÀÌ ÀÖ½À´Ï´Ù.

Knoppix ÀÇ °æ¿ì /KNOPPIX ¹ØÀÇ ÆÄÀϵ鸸À» º¹»çÇÔÀ¸·Î½á »ç¿ëÇÒ ¼ö ÀÖ´Ù´Â °ÍÀº Àç¹ÌÀÖ´Â Çö»óÀÔ´Ï´Ù. (ºÎ¿©ÀÇ °æ¿ì °¡´ÉÇÒÁö?)

/etc º¯°æ chane fstab, group, passwd, shadow, inittab rc.d berry-init, berry-halt, berry-reboot

cp -a /KNOPPIX/etc/ftpusers /KNOPPIX/etc/passwd /KNOPPIX/etc/shadow /KNOPPIX/etc /group \ /KNOPPIX/etc/ppp /KNOPPIX/etc/isdn /KNOPPIX/etc/ssh \ /KNOPPIX/etc/inittab /KNOPPIX/etc/network /KNOPPIX/etc/sudoers \ /KNOPPIX/sbin/init /KNOPPIX/etc/dhcpc /etc/ 2>/dev/null

618 cp passwd passwd.org 619 cp shadow shadow.org 620 cp group group.org 621 cp -Rp ppp ppp.org 622 cp -Rp isdn isdn.org 624 cp -Rp ssh ssh.org 626 cp inittab inittab.org 628 cp sudoers sudoers.org 629 dhcpc, network not exist

debian root@1sysconfig# cd /etc/network root@1network# ls if-down.d if-pre-up.d ifstate interfaces options if-post-down.d if-up.d ifstate.hotplug interfaces-

root@1network# cd /etc/sysconfig/network-scripts/ root@1network-scripts# ls -a . ..

fedora root@1hda2# find . -name network ./etc/sysconfig/network ./etc/pcmcia/network ./etc/rc.d/init.d/network

root@1network-scripts# ls ifcfg-eth0 ifdown-ipv6 ifup ifup-isdn ifup-sit ifcfg-lo ifdown-isdn ifup-aliases ifup-plip ifup-sl ifdown ifdown-post ifup-ippp ifup-plusb ifup-wireless ifdown-aliases ifdown-ppp ifup-ipsec ifup-post init.ipv6-global ifdown-ippp ifdown-sit ifup-ipv6 ifup-ppp network-functions ifdown-ipsec ifdown-sl ifup-ipx ifup-routes network-functions-ipv6

root@1network-scripts# cd ../networking/ root@1networking# ls devices profiles

Debian users can edit the /etc/network/interfaces configuration file. Mandrake users can manually edit NIC configuration scripts under the /etc/sysconfig/network-scripts directory (which are similar to those used by Red Hat Linux), whereas SuSE users will use configuration files under the /etc/sysconfig/network directory.

/var/state ´Â ¾ø½¿. /etc/dhcpc µµ ¾ø½¿. network setting À» ¾Ë¾Æ¾ß ÇÔ. /var/lib/texmf/ls-R ¾ø½¿.

not linked to BERRY X11, acpi, auto.mnt, bonobo-activation, canna, cron.daily, cron.weekly,cups, dbus-1, default, filesystems, fonts, fstab, gconf, gimp, gnome-vfs-2.0, group, shadow, gshadow, gtk, gtk-2.0, hosts, hotplug, hotplug.d, inittab iproute2, kde, ld.so.cache, ld.so.conf.d, logrotate.d, mplayer, mtab, netplug, netplug.d, openldap, openoffice, opt, pam.d, pango, passwd, pcmcia, ppp, profile.d, rc.d, rc?.d, resolve.conf, resolv.conf.predhclient, rpm, security, shadow, ssh, sysconfig, xdg, xinetd.d

Á¡°ËÇÒ ÆÄÀϵé

/mnt/hdc5/etc/sysconfig/firstboot: ÀνºÅçÀÌÈÄ Ã¹¹ø° ºÎÆÃÀΰ¡ Á¡°ËÇϴµ¥ »ç¿ë

/mnt/hdc5/etc/sysconfig/hwconf: kudzu ¿¡ ÀÇÇØ »ý¼ºµÇ´Â ÆÄÀÏ

/mnt/hdc5/etc/X11/xorg.conf: FC3 ¿¡¼­ ¹«¾ùÀÌ »ý¼ºÇÏ´ÂÁö Á¡°Ë ÇÊ¿ä ¸¶¿ì½º, Å°º¸µå, ¸ð´ÏÅÍ, video card /mnt/hdc5/etc/fstab: list of file systems to mount /mnt/hdc5/etc/mtab: mounted file system table

/mnt/hdc5/etc/group /mnt/hdc5/etc/passwd /mnt/hdc5/etc/passwd- /mnt/hdc5/etc/shadow- /mnt/hdc5/etc/shadow /mnt/hdc5/etc/gshadow /mnt/hdc5/etc/passwd.OLD

/mnt/hdc5/etc/sysconfig/clock: ŸÀÓÁ¸ /mnt/hdc5/etc/localtime /mnt/hdc5/etc/adjtime

/mnt/hdc5/etc/lvm/.cache

/mnt/hdc5/etc/ssh/ssh_host_key /mnt/hdc5/etc/ssh/ssh_host_key.pub /mnt/hdc5/etc/ssh/ssh_host_rsa_key /mnt/hdc5/etc/ssh/ssh_host_rsa_key.pub /mnt/hdc5/etc/ssh/ssh_host_dsa_key /mnt/hdc5/etc/ssh/ssh_host_dsa_key.pub

/mnt/hdc5/etc/aliases.db: sendmail ¿¡¼­ »ç¿ë. aliases ÆÄÀÏÀ» »ç¿ëÇÏ¿© ¸¸µë

/mnt/hdc5/etc/cups/certs/0 /mnt/hdc5/etc/cups/ppds.dat

/mnt/hdc5/etc/resolv.conf: network ¼³Á¤½Ã »ý¼ºµÉ °ÍÀ¸·Î »ý°¢µÊ.

/mnt/hdc5/etc/blkid.tab: block device ¿¡ °üÇÑ Á¤º¸ /mnt/hdc5/etc/smartd.conf

/mnt/hdc5/etc/asound.state: sound card °ü·Ã Á¤º¸ÀεíÇÔ. ´©°¡ »ý¼ºÇÏ´ÂÁö ¾Ë¾Æ¾ß ÇÔ.

/mnt/hdc5/etc/prelink.cache

/etc/modprobe.conf ¿¡ ´©°¡ ¾ðÁ¦ ¾²´Â°¡? sound card, usb-controller eht0

/etc/sysconfig kernel: bootloader ¸¦ ¼³Ä¡ÇÏ¸é »ý¼ºµÊ. installer ¿¡¼­ »ý¼ºÇØ¾ß ÇÒ °ÍÀ¸·Î »ý°¢µÊ desktop: µðÆúÆ® µ¥½ºÅ©Å¾ system-config-securitylevel: firewall ¼³Ä¡½Ã enable, ¾Æ´Ñ °æ¿ì --disabled clock: time zone °ú clock config booyo-init ¿¡¼­ ó¸®ÇØ¾ß ÇÔ. i18n: ¾ð¾î ¼±Åà sysfont °¡ µé¾î°¨. booyo-init ¿¡¼­ ó¸®ÇØ¾ß ÇÔ. network-scripts/network-scripts/ifcfg-* : network ¼³Á¤ booyo-init /etc/resolv.conf ¿ª½Ã network: booyo-init firstboot: installer ¿¡¼­ °í·ÁÇÒ »çÇ×ÀÓ pcmcia: booyo-init ¿¡¼­ pcmcia ó¸®ÇÒ ¶§ »ý¼ºÇØ¾ß ÇÔ. installinfo: installer ¿¡¼­ °í·ÁÇÒ »çÇ×ÀÓ. installinfo.rpmsave: installer ¿¡¼­ °í·ÁÇÒ »çÇ×ÀÓ.

/etc inittab: runlevel À» Àû¾îÁÖ´Â ÀÛ¾÷À» ÇÔ. ±×´ë·Î »ç¿ëÇÏ¸é µÊ. fstab: booyo-init °ú installer ¿¡¼­ ¸ðµÎ ÀÛ¾÷ ÇÊ¿ä. mdadm.conf: md »ç¿ëÇÒ °æ¿ì¿¡¸¸ ÇØ´çµÊ. °í·Á ÇÊ¿ä. mtab: booyo-init ¿¡¼­ ÀÛ¾÷ ÇÊ¿ä. rpm/platform: ¾îµð¿¡ ÇÊ¿äÇÑ °ÍÀÎÁö Àß ¸ð¸£°Ú½¿. rpm/macros: ¾îµð¿¡ ÇÊ¿äÇÑ °ÍÀÎÁö Àß ¸ð¸£°Ú½¿. resolv.conf: booyo-init ¿¡¼­ ó¸®ÇØ¾ß ÇÔ. hosts: network ¼³Á¤½Ã ó¸®ÇØ¾ß ÇÔ. booyo-init reconfigSys: firstboot ¸¦ À§ÇØ ÇÊ¿äÇÑ ÆÄÀÏÀÓ. installer ¿¡¼­ °í·ÁÇÒ »çÇ×ÀÓ. modprobe.conf: booyo-init ¿¡¼­ °í·ÁÇØ¾ß ÇÔ.

/tmp/modprobe.conf /tmp/zfcp.conf


BERRY ÀÇ °æ¿ì

# Create common WRITABLE (empty) dirs mkdir -p /var/lib /var/lock /var/nis /var/preserve /var/run /var/tmp \ /var/spool/cups/tmp \ /mnt/floppy \ /root /home/root /etc/sysconfig /etc/X11 /etc/cups cp -a ${sysdir}/etc/skel/ /home/berry chown -R berry.berry /home/berry

# Create empty utmp and wtmp :> /var/run/utmp :> /var/run/wtmp

# CUPS wants writable files cp -a ${sysdir}/etc/cups/*.conf /etc/cups/ 2>/dev/null

# resolv.conf must be writable as well cp -a ${sysdir}/etc/resolv.conf /etc/ 2>/dev/null

# All files in here should be size zero after BERRY. clean was run cp -a ${sysdir}/var/local ${sysdir}/var/log ${sysdir}/var/spool ${sysdir}/var/webmin /var/ 2>/dev/null cp -a ${sysdir}/var/lib/pcmcia ${sysdir}/var/lib/dhcp* /var/lib/ 2>/dev/null

# Problematic directories in /var/lib (lots and lots of inodes) #ln -s /BERRY/var/lib/dpkg /BERRY/var/lib/apt \ # /var/lib/ 2>/dev/null

# Debian-apt #ln -s /BERRY/var/cache/apt /var/cache/ 2>/dev/null ln -s ${sysdir}/etc/skel /etc/ 2>/dev/null

cp -aus ${sysdir}/var/* /var/ 2>/dev/null cp -aus ${sysdir}/etc/* /etc/ 2>/dev/null

# Make SURE that these are files, not links! rm -rf /etc/passwd /etc/shadow /etc/group /etc/gshadow /etc/passwd- /etc/shadow- /etc/group- /etc/gshadow- rm -rf /etc/ppp /etc/ssh rm -rf /etc/rc.d/rc5.d/* /etc/X11?/XF86Config* /etc/sysconfig/* rm -rf /etc/rc?.d ln -s /etc/rc.d/rc?.d /etc/ cp -a ${sysdir}/etc/passwd ${sysdir}/etc/shadow ${sysdir}/etc/group ${sysdir}/etc/gshadow \ ${sysdir}/etc/ppp ${sysdir}/etc/ssh \ ${sysdir}/etc/sysconfig/ /etc/ 2>/dev/null

# Diet libc bug workaround #cp -f /BERRY/etc/localtime /etc/localtime echo "${BLUE}Done.${NORMAL}"

# < modify symbolic link > rm -rf /etc/sysconfig/network-scripts/ifup /etc/sysconfig/network-scripts/ifdown cp -aus /sbin/ifup /sbin/ifdown /etc/sysconfig/network-scripts

# < Now tell kernel where the real modprobe lives > echo "/sbin/modprobe" > /proc/sys/kernel/modprobe

rc5.d


  • mDNSResponder

need /etc/sysconfig/network

  • cups

cups (À»)¸¦ ½ÃÀÛÇÕ´Ï´Ù: Traceback (most recent call last): File "/usr/sbin/printconf-backend", line 7, in ? import backend File "/usr/share/printconf/util/backend.py", line 54, in ? which = cups_import.which_spooler () File "/usr/share/printconf/util/cups_import.py", line 191, in which_spooler which = l.split ('.')1.strip () IndexError: list index out of range

need cp /etc/alternatives/print in linuxrc

  • xfs

tcheun@localhost ~$ /usr/sbin/chkfontpath --list Current directories in font path: 1: /usr/X11R6/lib/X11/fonts/korean 2: /usr/X11R6/lib/X11/fonts/misc:unscaled 3: /usr/X11R6/lib/X11/fonts/75dpi:unscaled 4: /usr/X11R6/lib/X11/fonts/100dpi:unscaled 5: /usr/X11R6/lib/X11/fonts/Type1 6: /usr/X11R6/lib/X11/fonts/Speedo 7: /usr/share/fonts/default/Type1 8: 9: /usr/share/fonts/ko/TrueType

font.dir º¸´Ù »õ·Î »ý¼ºµÈ ÆÄÀÏÀÌ ÀÖÀ¸¸é, font.dir À» Áö¿ì°í »õ·Î ¸¸µé·Á°í ÇÔ. ÇÏÁö¸¸ read-only ÆÄÀÏ ½Ã½ºÅÛÀ̹ǷΠ¿À·ù ¹ß»ý. fond.dir ÀÇ »ý¼º ½Ã±â¸¦ ÃÖ½ÅÀ¸·Î ¸¸µé¸é µÉ °ÍÀÓ.

booyo-init ¿¡¼­ ¼öÇàÇÏ´Â °ÍÀÌ °¡Àå ÀûÀýÇÒ °ÍÀ¸·Î º¸ÀÓ.

for d in $(/usr/sbin/chkfontpath --list | cut -f 2 -d ':' | sort | uniq) ;do if -d "$d" ; then cd "$d" if -e fonts.dir ; then touch fonts.dir fi fi done

  • sendmail

/etc/mail/sendmail.cf: line 94: fileclass: cannot open '/etc/mail/local-host-names': World writable directory

/etc/mail/sendmail.cf 91, 588 sm-client /etc/mail/submit.cf 548 class file can't open /etc/mail/local-host-names, trusted-users

cp files in linuxrc, but not solved. remove sticky bit from etc in linuxrc, but not solved

/etc is softlinked to /ramdisk/etc, thus rw mode is set for group and others. I guess this cause the above problem. how solve this problem ?

insert the following line in /etc/mail/sendmail.cf, submit.cf O DontBlameSendmail=ClassFileInUnsafeDirPath

ID
Password
Join
With clothes the new are best, with friends the old are best.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2005-03-07 14:28:48
Processing time 0.0109 sec