D.3.2. debootstrap のインストール
D.3.3. debootstrap の実行
迄が終わったので、次は、
root@debian:/# LANG=C chroot /mnt/debinst /bin/bash root@debian:/# ls bin dev home media opt root selinux sys usr boot etc lib mnt proc sbin srv tmp var root@debian:/# cat etc/debian_version 6.0 root@debian:/#出たり入ったりするのでしょうけど、、、
root@debian:/# exit exit root@debian:/# cat /mnt/debinst/etc/fstab # UNCONFIGURED FSTAB FOR BASE SYSTEM root@debian:/# cat /etc/fstab # UNCONFIGURED FSTAB FOR BASE SYSTEM tmpfs /lib/init/rw tmpfs rw,nosuid,mode=0755 0 0 /proc /proc proc rw,noexec,nosuid,nodev 0 0 sysfs /sys sysfs rw,noexec,nosuid,nodev 0 0 varrun /var/run tmpfs rw,nosuid,mode=0755 0 0 varlock /var/lock tmpfs rw,noexec,nosuid,nodev,mode=1777 0 0 udev /dev tmpfs rw,mode=0755 0 0 tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0 devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=620 0 0 rootfs / rootfs rw 0 0 tmpfs /var/cache/apt tmpfs defaults,noatime root@debian:/#コピーしてしまう。
root@debian:/# ls -l /mnt/debinst/etc/fstab -rw-r--r-- 1 root root 37 Feb 6 12:00 /mnt/debinst/etc/fstab root@debian:/# cp /etc/fstab /mnt/debinst/etc/fstab root@debian:/# !ls ls -l /mnt/debinst/etc/fstab -rw-r--r-- 1 root root 488 Feb 6 13:00 /mnt/debinst/etc/fstab root@debian:/#若干修正
root@debian:/# vi !$ : : root@debian:/# cat /mnt/debinst/etc/fstab # UNCONFIGURED FSTAB FOR BASE SYSTEM /proc /proc proc rw,noexec,nosuid,nodev 0 0 sysfs /sys sysfs rw,noexec,nosuid,nodev 0 0 udev /dev tmpfs rw,mode=0755 0 0 tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0 devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=620 0 0 rootfs / rootfs rw 0 0 root@debian:/#
root@debian:/# !LANG LANG=C chroot /mnt/debinst /bin/bash root@debian:/# cat /etc/default/rcS # # /etc/default/rcS # # Default settings for the scripts in /etc/rcS.d/ # # For information about these variables see the rcS(5) manual page. # # This file belongs to the "initscripts" package. TMPTIME=0 SULOGIN=no DELAYLOGIN=no UTC=yes VERBOSE=no FSCKFIX=no RAMRUN=no RAMLOCK=no root@debian:/#UTC=no に変える。
root@debian:/# vi /etc/default/rcS : :続いて、tzdata の reconfigure
root@debian:/# dpkg-reconfigure tzdata
Package configuration
敖陳陳陳陳陳陳陳陳陳陳陳陳 潅onfiguring tzdata 団陳陳陳陳陳陳陳陳陳陳陳陳朕
覚lease select the geographic area in which you live. Subsequent
崖 configuration questions will narrow this down by presenting a list of
崖 cities, representing the time zones in which they are located.
崖
崖 Geographic area:
崖
崖 Arctic
崖 Asia 嘘
Atlantic 嘘
Europe 嘘
Indian 霸 嘘
Pacific 霸 嘘
柮ystemV 嘘
US 朿
嬰tc
崖
崖
崖 <Ok> <Cancel>
崖
垣陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳潰
Asia を選んで、
Package configuration
敖陳陳陳陳陳陳陳陳陳陳陳 潅onfiguring tzdata 団陳陳陳陳陳陳陳陳陳陳陳
審 Please select the city or region corresponding to your time zone.
崖
崖 Time zone:
崖
崖 Seoul
較hanghai 嘘
較ingapore 嘘
郭aipei 嘘
郭ashkent 嘘
郭bilisi 嘘
郭ehran 嘘
郭el_Aviv 嘘
郭himphu 朿
Tokyo 嘘
Ujung_Pandang
崖
崖
崖 <Ok> <Cancel>
崖
垣陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳
Tokyo を選ぶ
Current default time zone: 'Asia/Tokyo' Local time is now: Sun Feb 6 22:04:23 JST 2011. Universal Time is now: Sun Feb 6 13:04:23 UTC 2011. root@debian:/#
root@debian:/# vi /etc/network/interfaces
root@debian:/# cat !$
cat /etc/network/interfaces
######################################################################
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# See the interfaces(5) manpage for information on what options are
# available.
######################################################################
# We always want the loopback interface.
#
auto lo
iface lo inet loopback
# To use dhcp:
#
# auto eth0
# iface eth0 inet dhcp
# An example static IP setup: (broadcast and gateway are optional)
#
auto eth0
iface eth0 inet static
address 192.168.2.89
network 192.168.2.0
netmask 255.255.255.0
broadcast 192.168.2.255
gateway 192.168.2.1
root@debian:/#
root@debian:/# vi /etc/resolv.conf : : root@debian:/# cat !$ cat /etc/resolv.conf domain yamasita.jp search yamasita.jp nameserver 192.168.2.39 root@debian:/#
root@debian:/# cat /etc/hostname debian root@debian:/# echo ks2 > !$ echo ks2 > /etc/hostname root@debian:/# !cat cat /etc/hostname ks2 root@debian:/#
root@debian:/# cat /etc/hosts 127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters root@debian:/# echo "192.168.2.98 ks2" >> /etc/hosts root@debian:/# !cat cat /etc/hosts 127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters 192.168.2.98 ks2 root@debian:/#
root@debian:/# cat /etc/apt/sources.list deb http://ftp.us.debian.org/debian squeeze main root@debian:/# vi !$ : : root@debian:/# cat !$ cat /etc/apt/sources.list deb http://ftp.us.debian.org/debian squeeze main deb http://security.debian.org/ squeeze/updates main deb-src http://security.debian.org/ squeeze/updates main root@debian:/# apt-get update Get:1 http://ftp.us.debian.org squeeze Release.gpg [1671 B] Ign http://ftp.us.debian.org/debian/ squeeze/main Translation-en Hit http://ftp.us.debian.org squeeze Release Hit http://ftp.us.debian.org squeeze/main armel Packages Get:2 http://security.debian.org squeeze/updates Release.gpg [835 B] Ign http://security.debian.org/ squeeze/updates/main Translation-en Get:3 http://security.debian.org squeeze/updates Release [38.4 kB] Get:4 http://security.debian.org squeeze/updates/main Sources [8026 B] Get:5 http://security.debian.org squeeze/updates/main armel Packages [40.8 kB] Fetched 89.7 kB in 3s (23.3 kB/s) Reading package lists... Done root@debian:/#
root@debian:/# apt-get install locales Reading package lists... Done Building dependency tree... Done The following NEW packages will be installed: locales 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 4757 kB of archives. After this operation, 13.1 MB of additional disk space will be used. Get:1 http://ftp.us.debian.org/debian/ squeeze/main locales all 2.11.2-10 [4757 kB] Fetched 4757 kB in 6s (745 kB/s) Preconfiguring packages ... Can not write log, openpty() failed (/dev/pts not mounted?) Selecting previously deselected package locales. (Reading database ... 8459 files and directories currently installed.) Unpacking locales (from .../locales_2.11.2-10_all.deb) ... Processing triggers for man-db ... Can not write log, openpty() failed (/dev/pts not mounted?) Setting up locales (2.11.2-10) ... Generating locales (this might take a while)... Generation complete. root@debian:/#
root@debian:/# dpkg-reconfigure locales
Package configuration
敖陳陳陳陳陳陳陳陳陳陳陳陳調 Configuring locales 団陳陳陳陳陳陳陳陳陳陳陳陳朕
殻ocales are a framework to switch between multiple languages and allow
崖 users to use their language, country, characters, collation order, etc.
崖
崖 Please choose which locales to generate. UTF-8 locales should be chosen
崖 by default, particularly for new installations. Other character sets may
崖 be useful for backwards compatibility with older systems and software.
崖
崖 Locales to be generated:
崖
崖 ]iw_IL ISO-8859-8
額 ] iw_IL.UTF-8 UTF-8 嘘
額*] ja_JP.EUC-JP EUC-JP 朿
額*] ja_JP.UTF-8 UTF-8 嘘
額 ] ka_GE GEORGIAN-PS 嘘
額 ] ka_GE.UTF-8 UTF-8
崖
崖
崖 <Ok> <Cancel>
崖
垣陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳潰
Package configuration
敖陳陳陳陳陳陳陳陳陳陳陳陳調 Configuring locales 団陳陳陳陳陳陳陳陳陳陳陳陳朕
獲any packages in Debian use locales to display text in the correct
崖 language for the user. You can choose a default locale for the system
崖 from the generated locales.
崖
崖 This will select the default language for the entire system. If this
崖 system is a multi-user system where not all users are able to speak the
崖 default language, they will experience difficulties.
崖
崖 Default locale for the system environment:
崖
崖 None
崖 ja_JP.EUC-JP
崖 ja_JP.UTF-8
崖
崖
崖 <Ok> <Cancel>
崖
垣陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳潰
Generating locales (this might take a while)...
ja_JP.EUC-JP...cannot map archive header: Invalid argument
done
ja_JP.UTF-8...cannot map archive header: Invalid argument
done
Generation complete.
root@debian:/#
root@debian:/# exit exit root@debian:/# cd / root@debian:/# tar cf - boot/sheeva-2.6.37-System.map |(cd /mnt/debinst/; tar xv f -) boot/sheeva-2.6.37-System.map root@debian:/# tar cf - lib/modules/2.6.37 |(cd /mnt/debinst/; tar xvf -) lib/modules/2.6.37/ lib/modules/2.6.37/build lib/modules/2.6.37/modules.isapnpmap : : lib/modules/2.6.37/modules.symbols.bin lib/modules/2.6.37/modules.dep lib/modules/2.6.37/modules.seriomap root@debian:/#
root@debian:/# tty /dev/ttyS0 root@debian:/# grep ttyS0 /mnt/debinst/etc/inittab #T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100 root@debian:/#/dev/ttyS0 で getty が動いていない他、/etc/inittab を修正する。
root@debian:/# vi /mnt/debinst/etc/inittab : : root@debian:/# cat /mnt/debinst/etc/inittab # /etc/inittab: init(8) configuration. # $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $ # The default runlevel. id:2:initdefault: # Boot-time system configuration/initialization script. # This is run first except when booting in emergency (-b) mode. si::sysinit:/etc/init.d/rcS # What to do in single-user mode. ~~:S:wait:/sbin/sulogin # /etc/init.d executes the S and K scripts upon change # of runlevel. # # Runlevel 0 is halt. # Runlevel 1 is single-user. # Runlevels 2-5 are multi-user. # Runlevel 6 is reboot. l0:0:wait:/etc/init.d/rc 0 l1:1:wait:/etc/init.d/rc 1 l2:2:wait:/etc/init.d/rc 2 l3:3:wait:/etc/init.d/rc 3 l4:4:wait:/etc/init.d/rc 4 l5:5:wait:/etc/init.d/rc 5 l6:6:wait:/etc/init.d/rc 6 # Normally not reached, but fallthrough in case of emergency. z6:6:respawn:/sbin/sulogin # What to do when CTRL-ALT-DEL is pressed. ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now # Action on special keypress (ALT-UpArrow). #kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work." # What to do when the power fails/returns. pf::powerwait:/etc/init.d/powerfail start pn::powerfailnow:/etc/init.d/powerfail now po::powerokwait:/etc/init.d/powerfail stop # /sbin/getty invocations for the runlevels. # # The "id" field MUST be the same as the last # characters of the device (after "tty"). # # Format: #: : : # # Note that on most Debian systems tty7 is used by the X Window System, # so if you want to add more getty's go ahead but skip tty7 if you run X. # #1:2345:respawn:/sbin/getty 38400 tty1 #2:23:respawn:/sbin/getty 38400 tty2 #3:23:respawn:/sbin/getty 38400 tty3 #4:23:respawn:/sbin/getty 38400 tty4 #5:23:respawn:/sbin/getty 38400 tty5 #6:23:respawn:/sbin/getty 38400 tty6 # Example how to put a getty on a serial line (for a terminal) # #T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100 #T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100 T0:2345:respawn:/sbin/getty -L ttyS0 115200 vt100 # Example how to put a getty on a modem line. # #T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3 root@debian:/#
root@debian:/# grep root /etc/shadow root:*:15011:0:99999:7::: root@debian:/# passwd root Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully root@debian:/#
root@debian:/# apt-get clean root@debian:/#こんなところか、、、
|
|
←(前のページ) Squeeze のインストール(1)debootstrap |
当月のハックの記録 SheevaPlug/玄柴(KURO-SHEEVA)をハックしよう トップ |
(次のページ)→ Squeeze のインストール(3)root fs の入れ換え |