SoftwareDesign 2010/1
(
Amazon
)
の
P153 の「基本システムの設定」からを実行する。
同じマシンで実行しているので、
P152 の「debian 基本システムのアーカイブ」~
P153 の「アーカイブの展開」までは要らない。
root@TS-WXL3B3:~# chroot /mnt/debinst/ sh-3.2#SD 誌とはちょっと違うが、、、
sh-3.2# mount -t proc proc /proc sh-3.2# cd /dev/ sh-3.2# MAKEDEV generic (ちょっと待つ) sh-3.2#
# /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> /dev/md1 / xfs defaults,noatime 0 0 proc /proc proc defaults 0 0 /dev/md10 swap swap defaults 0 0 /dev/md0 /boot ext3 defaults,noatime 0 0 #/dev/sda6 /mnt/disk1 xfs defaults,noatime 0 0 #/dev/sdb6 /mnt/disk2 xfs defaults,noatime 0 0こんなところ?
sh-3.2# cd /etc/default/ sh-3.2# mv rcS rcS.orig sh-3.2# grep UTC rcS.orig UTC=yes sh-3.2# sed -e 's/UTC=yes/UTC=no/' rcS.orig > rcS sh-3.2# diff -c rcS.orig rcS *** rcS.orig Tue Aug 12 14:22:51 2008 --- rcS Sun Mar 7 02:45:32 2010 *************** *** 10,16 **** TMPTIME=0 SULOGIN=no DELAYLOGIN=no ! UTC=yes VERBOSE=no FSCKFIX=no RAMRUN=no --- 10,16 ---- TMPTIME=0 SULOGIN=no DELAYLOGIN=no ! UTC=no VERBOSE=no FSCKFIX=no RAMRUN=no sh-3.2# ls -l rcS* -rw-r--r-- 1 root root 281 Mar 7 02:45 rcS -rw-r--r-- 1 root root 282 Aug 12 2008 rcS.orig sh-3.2#これぐらいなら、sed で十分
sh-3.2# dpkg-reconfigure tzdata Package configuration lqqqqqqqqqqqqqqqqqqqqqqqqqqu Configuring tzdata tqqqqqqqqqqqqqqqqqqqqqqqqqqqk x Please select the geographic area you live in. Subsequent configuration x x questions will narrow this down by presenting a list of cities, x x representing the time zones in which they are located. x x x x Geographic area: x x x x Australia x x Arctic a x x Asia a x x Atlantic a x x Europe x x Indian a x x Pacific a x x SystemV a x x Etc x x x x x x <Ok> <Cancel> x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj Package configuration lqqqqqqqqqqqqqqqqqqqqu Configuring tzdata tqqqqqqqqqqqqqqqqqqqqk x Please select the time zone corresponding to your location. x x x x Time zone: x x x x Singapore x x Taipei a x x Tashkent a x x Tbilisi a x x Tehran a x x Tel_Aviv a x x Thimphu a x x Tokyo a x x Ujung_Pandang x x Ulaanbaatar a x x Urumqi x x x x x x <Ok> <Cancel> x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj Current default timezone: 'Asia/Tokyo' Local time is now: Sun Mar 7 11:47:28 JST 2010. Universal Time is now: Sun Mar 7 02:47:28 UTC 2010. sh-3.2#
# We always want the loopback interface. # auto lo iface lo inet loopback # To use dhcp: # # auto eth0 # iface eth0 inet dhcp # Static IP setup: (broadcast and gateway are optional) # auto eth0 iface eth0 inet static address 192.168.2.70 network 192.168.2.0 netmask 255.255.255.0 broadcast 192.168.2.255 gateway 192.168.2.1
sh-3.2# cat /etc/resolv.conf nameserver 192.168.2.39 nameserver 192.168.1.2 search yamasita.jp sh-3.2#いつ設定した???? debootstrap ?
sh-3.2# echo tswxl > /etc/hostname sh-3.2# cat !$ cat /etc/hostname tswxl sh-3.2#
sh-3.2# cd /etc sh-3.2# mv inittab inittab.orig sh-3.2# cp inittab.orig inittab sh-3.2# vi inittab : : sh-3.2# ls -l inittab* -rw-r--r-- 1 root root 2063 Mar 7 11:59 inittab -rw-r--r-- 1 root root 2008 Aug 12 2008 inittab.orig sh-3.2# diff -u inittab.orig inittab --- inittab.orig 2008-08-12 23:25:30.000000000 +0900 +++ inittab 2010-03-07 11:59:05.000000000 +0900 @@ -52,16 +52,17 @@ # 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 +#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. # sh-3.2#
sh-3.2# exit exit root@TS-WXL3B3:~#
root@TS-WXL3B3:~# cd / root@TS-WXL3B3:/# tar cf - lib/modules/ | (cd /mnt/debinst/; tar xvf -) lib/modules/ lib/modules/2.6.22.18-mv78100/ lib/modules/2.6.22.18-mv78100/modules.ccwmap lib/modules/2.6.22.18-mv78100/modules.symbols lib/modules/2.6.22.18-mv78100/modules.ieee1394map lib/modules/2.6.22.18-mv78100/modules.seriomap lib/modules/2.6.22.18-mv78100/modules.ofmap : : lib/modules/2.6.22.18-88f6281/modules.usbmap lib/modules/2.6.22.18-88f6281/modules.inputmap lib/modules/2.6.22.18-88f6281/modules.dep lib/modules/2.6.22.18-88f6281/modules.alias root@TS-WXL3B3:/#/boot と同様 mv78100 用と 88f6281 用とがある
root@TS-WXL3B3:/# uname -a Linux TS-WXL3B3 2.6.22.18-mv78100 #134 Thu Feb 4 11:14:40 JST 2010 armv5tejl unknown root@TS-WXL3B3:/#なので、88f6281 用は要らない。消す
root@TS-WXL3B3:/# rm -fr /mnt/debinst/lib/modules/2.6.22.18-88f6281/ root@TS-WXL3B3:/#
とりあえずここまで。
|
← 今度こそ debootstrap |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ / の構成 |