mkdir mnt debootstrap breezy mnt cd mnt sudo cp /etc/resolv.conf mnt/etc sudo cp /etc/apt/sources.list mnt/etc/apt/sources.list for i in 0 1 2 3 4 ; do mknod mnt/dev/cobd$i b 117 $i ; done vi mnt/etc/fstab -- /dev/cobd0 / ext3 defaults 0 1 proc /proc proc defaults 0 0 /dev/cobd1 none swap sw 0 0 -- sudo chroot mnt /bin/bash dpkg-reconfigure locales tzconfig vi etc/default/rcS -- UTC=no -- echo colinux > /etc/hostname vi /etc/hosts -- 127.0.0.1 localhost.localdomain localhost colinux # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts -- passwd shadowconfig on update-rc.d -f hwclockfirst.sh remove update-rc.d -f hwclock.sh remove apt-get update apt-get install ubuntu-ja-keyring apt-get install anacron bc bicyclerepair bluez-cups bluez-pin bluez-utils bogofilter bug-buddy cdparanoia cdrecord contact-lookup-applet cupsys cupsys-bsd cupsys-client cupsys-driver-gimpprint dbus-1-utils dc desktop-file-utils diveintopython doc-base doc-debian dvd+rw-tools eog esound evince evolution evolution-exchange evolution-plugins evolution-webcal fetchmail file-roller firefox firefox-gnome-support foomatic-db foomatic-db-engine foomatic-db-gimp-print foomatic-db-hpijs foomatic-filters foomatic-filters-ppds fortune-mod gaim gamin gcalctool gconf-editor gedit gimp gimp-python gnome-about gnome-app-install gnome-applets gnome-btdownload gnome-control-center gnome-cups-manager gnome-games gnome-icon-theme gnome-media gnome-menus gnome-netstatus-applet gnome-nettool gnome-panel gnome-pilot-conduits gnome-session gnome-spell gnome-system-monitor gnome-system-tools gnome-terminal gnome-themes gnome-utils gnome-volume-manager gnome2-user-guide gnomemeeting gs-esp gstreamer0.8-alsa gstreamer0.8-audiofile gstreamer0.8-cdparanoia gstreamer0.8-dv gstreamer0.8-dvd gstreamer0.8-esd gstreamer0.8-flac gstreamer0.8-gnomevfs gstreamer0.8-gsm gstreamer0.8-hermes gstreamer0.8-jpeg gstreamer0.8-misc gstreamer0.8-musepack gstreamer0.8-oss gstreamer0.8-plugin-apps gstreamer0.8-sdl gstreamer0.8-speex gstreamer0.8-theora gstreamer0.8-vorbis gstreamer0.8-x gthumb gtk2-engines-clearlooks gtk2-engines-industrial gtk2-engines-mist gtk2-engines-smooth gucharmap hal hal-device-manager hplip-base hplip-ppds hwdb-client irssi-text language-selector lftp libesd-alsa0 libgl1-mesa libglib2.0-data libglut3 libgnome2-perl libgstreamer-gconf0.8-0 libgstreamer-plugins0.8-0 libgstreamer0.8-0 libpt-plugins-v4l libpt-plugins-v4l2 libsasl2-modules libxp6 metacity mkisofs nautilus nautilus-cd-burner nautilus-sendto notification-daemon openoffice.org2 openoffice.org2-evolution openoffice.org2-gnome pnm2ppa procmail python-adns python-apt python-cddb python-clientcookie python-crypto python-egenix-mxproxy python-egenix-mxstack python-egenix-mxtexttools python-egenix-mxtools python-epydoc python-eunuchs python-examples python-gadfly python-gd python-gdbm python-gdchart python-genetic python-geoip python-glade2 python-gnome2 python-gnupginterface python-gst python-gtk2 python-htmlgen python-htmltmpl python-id3lib python-imaging python-imaging-sane python-jabber python-kjbuckets python-ldap python-musicbrainz python-mysqldb python-netcdf python-newt python-numeric python-osd python-pam python-parted python-pexpect python-pgsql python-pisock python-pqueue python-pyao python-pylibacl python-pyopenssl python-pyorbit python-pyvorbis python-pyxattr python-reportlab python-simpletal python-soappy python-sqlite python-stats python-syck python-unit python-xdg python-xmpp python2.4-dbus python2.4-dictclient python2.4-librdf python2.4-libxml2 python2.4-libxslt1 python2.4-pycurl readahead rhythmbox rss-glx screen scrollkeeper serpentine slocate smbclient smeg sound-juicer ssh-askpass-gnome synaptic totem tsclient ttf-arabeyes ttf-bitstream-vera ttf-freefont ubuntu-docs ubuntu-sounds unzip-sjis update-notifier vino wvdial x-ttcidfont-conf xfonts-base xfonts-100dpi xfonts-75dpi xfonts-scalable xbase-clients xutils xkeyboard-config xchat xkeyboard-config xsane xscreensaver xscreensaver-gl xterm xvncviewer yelp zenity zip language-pack-ja language-pack-gnome-ja language-support-ja scim-anthy scim-gtk2-immodule scim-modules-socket ubuntu-ja-user-setup-wizard freenx binutils prelink ipamonafont apt-get purge remove gdm vi /etc/X11/xkb/keycodes/xfree86 vi /etc/init.d/ssh rm /etc/ssh/*key* adduser ubuntu adduser ubuntu adm adduser ubuntu cdrom adduser ubuntu floppy adduser ubuntu audio adduser ubuntu dip adduser ubuntu video adduser ubuntu plugdev adduser ubuntu lpadmin adduser ubuntu scanner addgroup --system admin adduser ubuntu admin visudo -- # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL -- ln -s /usr/share/keymaps/i386/qwerty/jp106.kmap.gz /etc/console/boottime.kmap.gz prelink -afmvR apt-get clean vi /etc/network/interfaces vi /etc/resolv.conf exit sudo cp /etc/esound/esd.conf mnt/etc/esound/ sudo cp /etc/fonts/local.conf mnt/etc/fonts/ sudo cp /etc/scim/config mnt/etc/scim/ tar xvzf vmlinux-modules.tar.gz -C mnt/ 掃除 /root /tmp /var/tmp /home/ubuntu /var/apt/lists dd if=/dev/zero bs=65536 count=32753 of=my_fs && \ mkfs.ext2 -b 1024 -f 1024 -g 8192 -F my_fs && \ tune2fs -c 0 -i 0 my_fs mkdir mnt2 sudo mount my_fs mnt2 -o loop sudo rsync -a mnt/ mnt2 sudo umount mnt2