Booyo LiveCD/Misc Note
/etc/fstab, /proc/mounts, /etc/mtab ¶
knoppix@ttyp0[knoppix]$ cat /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/auto/floppy auto user,noauto,exec,umask=000 0 0 /dev/cdrom /mnt/auto/cdrom auto user,noauto,exec,ro 0 0 knoppix@ttyp0[knoppix]$ cat /proc/mounts rootfs / rootfs rw 0 0 /dev/root.old / ext2 rw 0 0 /proc /proc proc rw 0 0 /dev/pts /dev/pts devpts rw 0 0 /dev/scd0 /cdrom iso9660 ro 0 0 /dev/cloop /KNOPPIX iso9660 ro 0 0 /ramdisk /ramdisk tmpfs rw 0 0 /proc/bus/usb /proc/bus/usb usbdevfs rw 0 0 automount(pid386) /mnt/auto autofs rw 0 0 knoppix@ttyp0[knoppix]$ cat /etc/mtab /dev/root / ext2 rw 0 0 /dev/scd0 /cdrom iso9660 ro 0 0 /dev/cloop /KNOPPIX iso9660 ro 0 0 /ramdisk /ramdisk tmpfs rw,size=506368k 0 0 /proc/bus/usb /proc/bus/usb usbdevfs rw,devmode=0666 0 0 automount(pid386) /mnt/auto autofs rw,fd=4,pgrp=386,minproto=2,maxproto=4 0 0 partiotions ¶/dev/sda1 48163+ de Dell Utility /dev/sda2 * 61440592+ 7 HPFS/NTFS /dev/sda3 2883667+ db CP/M / CTOS / ... /dev/sda4 91875735 5 Extended /dev/sda5 9775521 83 Fedora core 3 /dev/sda6 1020096 82 Linux swap /dev/sda7 9775521 83 Fedora core 3 desktop /dev/sda8 5863693+ 83 knoppix /dev/sda9 3911796 83 booyo-live cd fail /dev/sda10 5855661 83 knoppix 3.7 /dev/sda11 3429846 83 booyo test3 build /dev/sda12 5863693+ 83 booyo test3 build /dev/hdb1 knoppx live cd 3.7 /dev/hdb2 booyo live cd emul yum ¶[root@localhost ~]# yum check-update Setting up Repos base 100% |=========================| 1.1 kB 00:00 updates-released 100% |=========================| 951 B 00:00 Reading repository metadata in from local files primary.xml.gz 100% |=========================| 797 kB 00:01 MD Read : ################################################## 2623/2623 base : ################################################## 2622/2622 primary.xml.gz 100% |=========================| 351 kB 00:00 MD Read : ################################################## 885/885 updates-re: ################################################## 885/885 alsa-lib.i386 1.0.6-8.FC3 updates-released alsa-lib-devel.i386 1.0.6-8.FC3 updates-released at.i386 3.1.8-70_FC3 updates-released autofs.i386 1:4.1.3-114 updates-released cpp.i386 3.4.3-22.fc3 updates-released curl.i386 7.12.3-3.fc3 updates-released curl-devel.i386 7.12.3-3.fc3 updates-released dhclient.i386 7:3.0.1-42_FC3 updates-released dmraid.i386 1.0.0.rc6-1_FC3 updates-released e2fsprogs.i386 1.36-1.FC3.1 updates-released e2fsprogs-devel.i386 1.36-1.FC3.1 updates-released elinks.i386 0.9.2-2.1 updates-released enscript.i386 1.6.1-28.0.4 updates-released foomatic.i386 3.0.2-13.4 updates-released gaim.i386 1:1.2.1-1.fc3 updates-released gcc.i386 3.4.3-22.fc3 updates-released gcc-c++.i386 3.4.3-22.fc3 updates-released gcc-g77.i386 3.4.3-22.fc3 updates-released gcc-java.i386 3.4.3-22.fc3 updates-released gftp.i386 1:2.0.18-0.FC3 updates-released gimp.i386 2:2.2.6-0.fc3.2 updates-released glibc.i386 2.3.5-0.fc3.1 updates-released glibc-common.i386 2.3.5-0.fc3.1 updates-released glibc-devel.i386 2.3.5-0.fc3.1 updates-released glibc-headers.i386 2.3.5-0.fc3.1 updates-released hwbrowser.noarch 0.20-0.fc3.1 updates-released initscripts.i386 7.93.7-1 updates-released jwhois.i386 3.2.2-6.FC3.1 updates-released kernel.i586 2.6.11-1.14_FC3 updates-released kernel-smp.i586 2.6.11-1.14_FC3 updates-released krb5-devel.i386 1.3.6-5 updates-released krb5-libs.i386 1.3.6-5 updates-released libexif.i386 0.5.12-6.fc3 updates-released libf2c.i386 3.4.3-22.fc3 updates-released libgcc.i386 3.4.3-22.fc3 updates-released libgcj.i386 3.4.3-22.fc3 updates-released libgcj-devel.i386 3.4.3-22.fc3 updates-released libpcap.i386 14:0.8.3-8.FC3 updates-released libstdc++.i386 3.4.3-22.fc3 updates-released libstdc++-devel.i386 3.4.3-22.fc3 updates-released libtiff.i386 3.6.1-10.fc3 updates-released libtiff-devel.i386 3.6.1-10.fc3 updates-released lockdev.i386 1.0.1-4.1 updates-released lockdev-devel.i386 1.0.1-4.1 updates-released logwatch.noarch 5.2.2-1.FC3.1 updates-released lsof.i386 4.72-2.2 updates-released nscd.i386 2.3.5-0.fc3.1 updates-released openssh.i386 3.9p1-8.0.1 updates-released openssh-askpass.i386 3.9p1-8.0.1 updates-released openssh-askpass-gnome.i386 3.9p1-8.0.1 updates-released openssh-clients.i386 3.9p1-8.0.1 updates-released openssh-server.i386 3.9p1-8.0.1 updates-released perl.i386 3:5.8.5-12.FC3 updates-released policycoreutils.i386 1.18.1-2.12 updates-released procps.i386 3.2.3-5.2 updates-released selinux-policy-targeted.noarch 1.17.30-2.96 updates-released system-config-samba.noarch 1.2.28-0.fc3.1 updates-released system-config-services.noarch 0.8.21-0.fc3.1 updates-released telnet.i386 1:0.17-32.FC3.2 updates-released thunderbird.i386 1.0.2-1.3.2 updates-released tzdata.noarch 2005f-1.fc3 updates-released udev.i386 039-10.FC3.7 updates-released urw-fonts.noarch 2.3-0.FC3.1 updates-released util-linux.i386 2.12a-24.2 updates-released vixie-cron.i386 1:4.1-33_FC3 updates-released vte.i386 0.11.13-1.fc3 updates-released words.noarch 3.0-2.3 updates-released xloadimage.i386 4.1-34.FC3 updates-released xorg-x11.i386 6.8.2-1.FC3.13 updates-released xorg-x11-Mesa-libGL.i386 6.8.2-1.FC3.13 updates-released xorg-x11-Mesa-libGLU.i386 6.8.2-1.FC3.13 updates-released xorg-x11-deprecated-libs.i386 6.8.2-1.FC3.13 updates-released xorg-x11-deprecated-libs-devel.i386 6.8.2-1.FC3.13 updates-released xorg-x11-devel.i386 6.8.2-1.FC3.13 updates-released xorg-x11-font-utils.i386 6.8.2-1.FC3.13 updates-released xorg-x11-libs.i386 6.8.2-1.FC3.13 updates-released xorg-x11-tools.i386 6.8.2-1.FC3.13 updates-released xorg-x11-twm.i386 6.8.2-1.FC3.13 updates-released xorg-x11-xauth.i386 6.8.2-1.FC3.13 updates-released xorg-x11-xdm.i386 6.8.2-1.FC3.13 updates-released xorg-x11-xfs.i386 6.8.2-1.FC3.13 updates-released[root@localhost ~]# dwnload from update
yum-2.2.0-0.fc3.noarch.rpm
libxml2-python-2.6.16-3.i386.rpm
There's one thing I've noticed in the autorun of a lot of CDs that gets overlooked. When an autorun.bat executes from a DOS window in Win9x/Me, it leaves an ugly "Finished - Autorun" window on the screen (I understand that the window closes in 2000/XP) that you have to manually close.
All that's needed to fix it (and make it look a lot more professional) is to include a .PIF file that includes instructions to run the window minimized and to close it when the autorun.bat finishes. Then all you get is a brief appearance of "Start - Autorun" in the taskbar (look quick or you'll miss it) and nothing detracting from the presentation.
Autorun.inf files allow the cd's you create to automatically launch an
application when the cd is inserted in the cd player. Simply place
the file you create with Autorun.inf maker in the root directory of your cd.
application suite
fax
telephony
office suite
image editor
Light weight image manipulator
vector drawing
cad software
spam filter
calendaring
mail lists
download manager
documentation
windows emulation
html editor
ids
jre
virus scan/control
web browser
business logistics
core
default filesystem
back-up/file-sync utilities
.net framework
java
support for windows client
security package
shells
vpn
developer specific
ha software
compilers
editors
version control
scripting language
project management
ide
look and feel
desktop environment
light weight window manager
management and monitoring
cluster management
remote management
hardware monitoring
network monitoring
miscellaneous
automatic installer
unattended auto installer
x-terminal emulator
mua
news reader
irc client
core services
network information
authentication
service location
printing spooler
file sharing
other services
database server
web server
mta
ftp server
pop3/imap4 server
dns server
proxy server
java app server
terminal serv
grub-install --root-directory=/mnt/hda5 /dev/hda
Keep your Linux system up-to-date!
This product contains a daily snapshot of downloadable Fedora Core 4 update/errata. You can save your time and bandwidth by updating your system using your choice of package manager (yum, apt-get or rpm) and this product. You should update your system regularly to keep your computer safe and working at it's best! This product allows you to conveniently install the latest security updates, bug fixes and errata onto your existing Linux system.
Note:
Most of the software in this package are governed by the GNU General Public License (GPL). No support is provided. Fedora is a registered trademark of RedHat Linux. Linux is a registered trademark of Linus Torvalds. All other brands and product names are trademarks or registered trademarks of their respective owners.
gnome ubuntu ¶/etc/gdm/gdm.conf
root@ubuntu:/etc/gdm # diff gdm.conf gdm.conf~ 23,24c23,24 < AutomaticLoginEnable=true < AutomaticLogin=ubuntu --- > AutomaticLoginEnable=false > AutomaticLogin= 28,30c28,30 < TimedLoginEnable=true < TimedLogin=ubuntu < TimedLoginDelay=10 --- > TimedLoginEnable=false > TimedLogin= > TimedLoginDelay=30 321c321 < BackgroundColor=#2A569D --- > BackgroundColor=#4E3E29 squashfs ¶
unionfs ¶
slax ¶
Important directories: boot ....... contains files to boot Live CD base ....... contains base (essential) modules for filesystem. All .mo files from this directory will be used. modules .... contains additional modules for filesystem. All .mo files from this directory will be used. optional ... contains optional modules, which are loaded only with "load=modulename.mo" boot option. rootcopy ... contains files which are directly copied to root directory / while booting, overwriting originals. Important files: make_iso.sh .... script to build new iso in Linux make_iso.bat ... script to build new iso in DOS/Windows [root@localhost base]# ls 01_kernel.mo 03_xwindow.mo 05_common.mo 07_kde_apps.mo 09_slax.mo 02_core.mo 04_xap_libs.mo 06_kde_base.mo 08_kde_office.mo # Insert one single .mo module to the union # $1 = union absolute path (starting with /) # $2 = module.mo full path # $3 = destination folder, where images will be mounted to # union_insert_module() { TARGET="$3/`basename $2`" while [ -e $TARGET ]; do TARGET=$TARGET.X; done mkdir -p $TARGET mount_module $2 $TARGET if [ $? -ne 0 ]; then echo "can't read module data. corrupted download?" >&2; return 1; fi union_insert_dir $1 $TARGET if [ $? -ne 0 ]; then echo "can't insert module to union" >&2; return 1; fi basename $TARGET } # Mount .mo module to destination directory # $1 = path to .mo livecd compressed module # $2 = destination folder # mount_module() { mount -t squashfs -o loop,ro "$1" "$2" echo "$1 $2" >>/tmp/_mounts } # Insert a directory tree $2 to an union specified by $1 # Top-level read-write branch is specified by it's index 0 # $1 = union absolute path (starting with /) # $2 = path to data directory # union_insert_dir() { unionctl "$1" --add --after 0 --mode ro "$2" } adios ¶[root@localhost cdrecorder]# ls -l ÇÕ°è 538841 -r-xr-xr-x 1 root root 36864 11¿ù 30 2004 Autorun.exe -r--r--r-- 1 root root 1038 7¿ù 14 08:38 README -r--r--r-- 1 root root 2861 7¿ù 20 12:53 TRANS.TBL -r--r--r-- 1 root root 35483648 7¿ù 19 12:55 adios.sqfs dr-xr-xr-x 2 root root 2048 7¿ù 11 15:55 adk -r-xr-xr-x 1 root root 609 11¿ù 30 2004 autorun -r--r--r-- 1 root root 1379 7¿ù 5 19:33 autorun.html -r--r--r-- 1 root root 40 11¿ù 30 2004 autorun.inf lr-xr-xr-x 1 root root 8 12¿ù 21 2004 boot -> isolinux -r--r--r-- 1 root root 1303 7¿ù 20 11:18 grubit.cmd dr-xr-xr-x 2 root root 2048 7¿ù 20 10:28 isolinux dr-xr-xr-x 2 root root 2048 7¿ù 19 11:32 opt -r--r--r-- 1 root root 516235264 7¿ù 19 13:19 usr.sqfs dr-xr-xr-x 3 root root 2048 2¿ù 17 12:48 www [root@localhost opt]# ls -l ÇÕ°è 170189 -r--r--r-- 1 root root 667 7¿ù 20 12:53 TRANS.TBL -r--r--r-- 1 root root 74838016 7¿ù 19 11:33 openoffice.sqfs -r--r--r-- 1 root root 52039680 7¿ù 8 12:09 uml.sqfs -r--r--r-- 1 root root 47394816 7¿ù 19 08:19 www.sqfs squashfs ¶45 mv squashfs2.2-patch /usr/src/linux/ 46 cd /usr/src/linux 47 ls 48 patch -p1 < squashfs2.2-patch 49 make distclean 50 make mrproper 65 make gconfig [root@localhost linux]# diff .config ../redhat/BUILD/kernel-2.6.12/linux-2.6.12/.config 3,4c3,4 < # Linux kernel version: 2.6.12-prep < # Sun Aug 7 09:48:43 2005 --- > # Linux kernel version: 2.6.12.2 > # Sun Aug 7 09:32:40 2005 30c30,31 < # CONFIG_AUDIT is not set --- > CONFIG_AUDIT=y > CONFIG_AUDITSYSCALL=y 794,798c795 < CONFIG_IP_ROUTE_MULTIPATH_CACHED=y < CONFIG_IP_ROUTE_MULTIPATH_RR=m < CONFIG_IP_ROUTE_MULTIPATH_RANDOM=m < CONFIG_IP_ROUTE_MULTIPATH_WRANDOM=m < CONFIG_IP_ROUTE_MULTIPATH_DRR=m --- > # CONFIG_IP_ROUTE_MULTIPATH_CACHED is not set 931c928 < # CONFIG_IP6_NF_QUEUE is not set --- > CONFIG_IP6_NF_QUEUE=m 1286c1283 < # CONFIG_BNX2 is not set --- > CONFIG_BNX2=m 2113,2114c2110 < CONFIG_FB_HGA=m < CONFIG_FB_HGA_ACCEL=y --- > # CONFIG_FB_HGA is not set 2344c2340 < # CONFIG_USB_SL811_CS is not set --- > CONFIG_USB_SL811_CS=m 2497c2493 < # CONFIG_USB_SERIAL_OPTION is not set --- > CONFIG_USB_SERIAL_OPTION=m 2610,2612c2606 < CONFIG_NTFS_FS=m < # CONFIG_NTFS_DEBUG is not set < # CONFIG_NTFS_RW is not set --- > # CONFIG_NTFS_FS is not set 2651,2654d2644 < CONFIG_SQUASHFS=m < # CONFIG_SQUASHFS_EMBEDDED is not set < CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3 < # CONFIG_SQUASHFS_VMALLOC is not set device drivers ->networking support -> networking support -> networking options -> tcp/ip networking -> IP:advanced router -> IP: equal cost multipath -> IP: equal cost multipath with caching support N device drivers ->networking support -> networking support -> networking options ->network packet filtering -> IPv6:netfilter configuration -> userspace queing via NETLINK M device drivers ->networking support -> network device support -> ethernet(1000Mbit) -> Broadcom NetXt.. M device drivers -> graphics support -> support for framebuffer -> hercules mono graphics support N device drivers -> USB support -> Support for host side USB -> SL811HS HCD support -> CF/PCMCIA support SL811HS HCD M device drivers -> USB support -> Support for host side USB -> USB serial converter support -> USB serial converter support -> USB option pcmcia serial driver M edit Makefile: EXTRAVERSION = -squashfs make iso ¶for dir in bin etc home lib opt root usr sbin var; do if [ -d $ROOT/$dir ]; then echo "base/$dir.mo" create_module $ROOT/$dir $CDDATA/base/$dir.mo -keep-as-directory if [ $? -ne 0 ]; then exit; fi fi done echo "creating LiveCD ISO image..." cd $CDDATA ./make_iso.sh /tmp/livecd.iso cd /tmp header "Your ISO is created in /tmp/livecd.iso" without squashfs module [root@localhost base]# ls -l ÇÕ°è 1536444 -rw------- 1 root root 2650112 8¿ù 7 13:51 bin.mo -rw------- 1 root root 9347072 8¿ù 7 13:52 etc.mo -rw------- 1 root root 4096 8¿ù 7 13:52 home.mo -rw------- 1 root root 157302784 8¿ù 7 13:56 lib.mo -rw------- 1 root root 4096 8¿ù 7 13:56 opt.mo -rw------- 1 root root 43253760 8¿ù 7 13:57 root.mo -rw------- 1 root root 7938048 8¿ù 7 14:30 sbin.mo -rw------- 1 root root 1336991744 8¿ù 7 14:30 usr.mo -rw------- 1 root root 14254080 8¿ù 7 14:30 var.mo
busybox ¶adios functions Currently defined functions: [, [[, ash, awk, basename, bunzip2, busybox, bzcat, cat, chgrp, chmod, chown, chroot, chvt, clear, cmp, cp, cpio, cut, date, dd, deallocvt, df, dirname, dmesg, du, echo, egrep, eject, env, expr, false, fdisk, fgrep, find, free, freeramdisk, getopt, grep, gunzip, gzip, hdparm, head, hexdump, hostname, id, ifconfig, insmod, kill, killall, klogd, length, ln, logger, losetup, ls, lsmod, md5sum, mesg, mkdir, mkfifo, mknod, mkswap, mktemp, modprobe, more, mount, mv, nameif, nc, netstat, nice, nslookup, od, openvt, patch, pidof, ping, pivot_root, printf, ps, pwd, rdate, readlink, renice, reset, rm, rmdir, rmmod, route, sed, seq, sh, sleep, sort, stat, strings, stty, sum, swapoff, swapon, sync, sysctl, syslogd, tail, tar, tee, test, tftp, time, top, touch, tr, traceroute, true, tty, udhcpc, umount, uname, uniq, unzip, uptime, usleep, vi, wc, wget, which, whoami, xargs, yes, zcat slax functions Currently defined functions: [, ash, basename, busybox, cat, chmod, chown, chroot, clear, cp, cut, dd, df, dirname, du, echo, egrep, expr, false, fdisk, fgrep, find, free, grep, gunzip, halt, hdparm, head, insmod, kill, killall, last, ln, logger, losetup, ls, lsmod, md5sum, mkdir, mkfifo, mknod, mkswap, mktemp, modprobe, more, mount, mv, pivot_root, poweroff, ps, pwd, readlink, realpath, reboot, rm, rmdir, rmmod, sed, sh, sleep, sort, swapoff, swapon, sync, tail, tar, tee, test, touch, tr, true, umount, uname, uniq, vi, wc, xargs, zcat mandrake move functions Currently defined functions: basename, busybox, cat, chgrp, chmod, chown, chroot, chvt, clear, cp, cut, date, dd, df, dirname, dmesg, du, echo, env, false, find, free, grep, gunzip, gzip, halt, head, id, init, kill, killall, klogd, linuxrc, ln, logger, ls, lsmod, mkdir, mknod, mkswap, more, mount, mv, poweroff, ps, pwd, reboot, reset, rm, rmdir, sed, sh, sleep, sort, swapoff, swapon, sync, syslogd, tail, tar, touch, true, tty, umount, uname, uniq, uptime, wc, which, whoami, xargs, yes, zcat
package ºÐ·ù ¶
|
You like to form new friendships and make new acquaintances. |