root@LS-VL815:~# ar -sh: ar: command not found root@LS-VL815:~# wget wget: missing URL Usage: wget [OPTION]... [URL]... Try `wget --help' for more options. root@LS-VL815:~#ar がない。
TS-WXLと同じように、busybox を見る。
root@LS-VL815:~# /bin/busybox --help BusyBox v1.7.0 (2009-04-29 19:12:57 JST) multi-call binary Copyright (C) 1998-2006 妥rik Andersen, Rob Landley, and others. Licensed under GPLv2. 帯ee source distribution for full notice. Usage: busybox [function] [arguments]... or: [function] [arguments]... BusyBox is a multi-call binary that combines many common Unix utilities into a single executable. Most people will create a link to busybox for each function they wish to use and BusyBox will act like whatever it was invoked as! Currently defined functions: [, [[, addgroup, adduser, adjtimex, ar, arp, arping, ash, awk, basename, bunzip2, bzcat, cal, cat, catv, chattr, chgrp, chmod, chown, chpasswd, chpst, chroot, chrt, chvt, cksum, clear, cmp, comm, cp, cpio, crond, crontab, cryptpw, cut, date, dc, dd, deallocvt, delgroup, deluser, df, dhcprelay, diff, dirname, dmesg, dnsd, dos2unix, du, dumpkmap, dumpleases, echo, ed, egrep, eject, env, envdir, envuidgid, ether-wake, expand, expr, fakeidentd, false, fbset, fdflush, fdformat, fdisk, fgrep, find, fold, free, freeramdisk, fsck, fsck.minix, ftpget, ftpput, fuser, getopt, getty, grep, gunzip, gzip, halt, hdparm, head, hexdump, hostid, hostname, httpd, hwclock, id, ifconfig, ifdown, ifup, inetd, init, insmod, install, ip, ipaddr, ipcalc, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, kill, killall, killall5, klogd, last, length, less, linux32, linux64, linuxrc, ln, loadfont, loadkmap, logger, login, logname, logread, losetup, ls, lsattr, lsmod, lzmacat, makedevs, md5sum, mdev, mesg, mkdir, mkfifo, mkfs.minix, mknod, mkswap, mktemp, modprobe, more, mount, mountpoint, mt, mv, nameif, nc, netstat, nice, nmeter, nohup, nslookup, od, openvt, passwd, patch, pidof, ping, ping6, pipe_progress, pivot_root, poweroff, printenv, printf, ps, pscan, pwd, raidautorun, rdate, readahead, readlink, readprofile, realpath, reboot, renice, reset, resize, rm, rmdir, rmmod, route, rpm, rpm2cpio, run-parts, runlevel, runsv, runsvdir, rx, sed, seq, setarch, setconsole, setkeycodes, setlogcons, setsid, setuidgid, sh, sha1sum, slattach, sleep, softlimit, sort, split, start-stop-daemon, stat, strings, stty, su, sulogin, sum, sv, svlogd, swapoff, swapon, switch_root, sync, sysctl, syslogd, tail, tar, taskset, tcpsvd, tee, telnet, test, tftp, time, top, touch, tr, traceroute, true, tty, ttysize, udhcpc, udhcpd, udpsvd, umount, uname, uncompress, unexpand, uniq, unix2dos, unlzma, unzip, uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, watch, watchdog, wc, wget, which, who, whoami, xargs, yes, zcat, zcip root@LS-VL815:~#busybox 自体は、ar が使えるようにコンフィギュレーションされているが、 ar というファイルにシンボリックリンクが張ってないので ar が使えないだけ。
シンボリックリンクを張る
root@LS-VL815:~# ln -s /bin/busybox /usr/local/bin/ar root@LS-VL815:~# which ar /usr/local/bin/ar root@LS-VL815:~# ar BusyBox v1.7.0 (2009-04-29 19:12:57 JST) multi-call binary Usage: ar [-o] [-v] [-p] [-t] [-x] ARCHIVE FILES Extract or list FILES from an ar archive Options: -o Preserve original dates -p Extract to stdout -t List -x Extract -v Verbose root@LS-VL815:~#
wget で debootstrap_1.0.26_all.deb 取得する。
root@LS-VL815:~# mkdir /mnt/disk1/debootstrap root@LS-VL815:~# cd !$ cd /mnt/disk1/debootstrap root@LS-VL815:/mnt/disk1/debootstrap# wget http://ftp.jp.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.26_all.deb --2010-12-23 00:06:55-- http://ftp.jp.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.26_all.deb Resolving ftp.jp.debian.org... 150.65.7.130 Connecting to ftp.jp.debian.org|150.65.7.130|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 58232 (57K) [application/x-debian-package] Saving to: `debootstrap_1.0.26_all.deb' 100%[======================================>] 58,232 --.-K/s in 0.08s 2010-12-23 00:06:55 (694 KB/s) - `debootstrap_1.0.26_all.deb' saved [58232/58232] root@LS-VL815:/mnt/disk1/debootstrap#
root@LS-VL815:/mnt/disk1/debootstrap# ar -xv debootstrap_1.0.26_all.deb rw-r--r-- 0/0 4 Nov 12 21:07 2010 debian-binary rw-r--r-- 0/0 1171 Nov 12 21:07 2010 control.tar.gz rw-r--r-- 0/0 56868 Nov 12 21:07 2010 data.tar.gz root@LS-VL815:/mnt/disk1/debootstrap#
root@LS-VL815:/mnt/disk1/debootstrap# pwd /mnt/disk1/debootstrap root@LS-VL815:/mnt/disk1/debootstrap# cd / root@LS-VL815:/# tar zxvf /mnt/disk1/debootstrap/data.tar.gz ./ ./usr/ ./usr/sbin/ ./usr/sbin/debootstrap ./usr/share/ ./usr/share/man/ ./usr/share/man/man8/ ./usr/share/man/man8/debootstrap.8.gz ./usr/share/doc/ ./usr/share/doc/debootstrap/ ./usr/share/doc/debootstrap/README ./usr/share/doc/debootstrap/changelog.gz ./usr/share/doc/debootstrap/copyright ./usr/share/debootstrap/ ./usr/share/debootstrap/functions ./usr/share/debootstrap/devices.tar.gz ./usr/share/debootstrap/scripts/ ./usr/share/debootstrap/scripts/sid ./usr/share/debootstrap/scripts/feisty ./usr/share/debootstrap/scripts/dapper ./usr/share/debootstrap/scripts/woody.buildd ./usr/share/debootstrap/scripts/warty.buildd ./usr/share/debootstrap/scripts/woody ./usr/share/debootstrap/scripts/gutsy ./usr/share/debootstrap/scripts/hoary ./usr/share/debootstrap/scripts/potato ./usr/share/debootstrap/scripts/sarge.buildd ./usr/share/debootstrap/scripts/edgy ./usr/share/debootstrap/scripts/hoary.buildd ./usr/share/debootstrap/scripts/sarge ./usr/share/debootstrap/scripts/warty ./usr/share/debootstrap/scripts/breezy ./usr/share/debootstrap/scripts/sarge.fakechroot ./usr/share/debootstrap/scripts/stable ./usr/share/debootstrap/scripts/etch ./usr/share/debootstrap/scripts/squeeze ./usr/share/debootstrap/scripts/lucid ./usr/share/debootstrap/scripts/etch-m68k ./usr/share/debootstrap/scripts/intrepid ./usr/share/debootstrap/scripts/natty ./usr/share/debootstrap/scripts/jaunty ./usr/share/debootstrap/scripts/karmic ./usr/share/debootstrap/scripts/lenny ./usr/share/debootstrap/scripts/wheezy ./usr/share/debootstrap/scripts/testing ./usr/share/debootstrap/scripts/maverick ./usr/share/debootstrap/scripts/unstable ./usr/share/debootstrap/scripts/hardy root@LS-VL815:/#
root@LS-VL815:/# date; usr/sbin/debootstrap --arch armel squeeze /mnt/disk1/debinst http://ftp.jp.debian.org/debian ; date Thu Dec 23 00:14:34 JST 2010 I: Retrieving Release I: Retrieving Packages I: Validating Packages : : I: Configuring tasksel-data... I: Configuring tasksel... I: Base system installed successfully. Thu Dec 23 00:24:45 JST 2010 root@LS-VL815:/#LS-VL だと、10分ほどで終わった。
root@LS-VL815:~# ls root@LS-VL815:~# cd /mnt/disk1/debinst/ root@LS-VL815:/mnt/disk1/debinst# tar zcvf /mnt/disk1/share/hackkit/hackkit_101223.tar.gz . : : ./opt/ ./media/ root@LS-VL815:/mnt/disk1/debinst#
とりあえず、ここまで。
|
← ハックキットの動作確認 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ Squeeze のインストール(2)インストーラの修正 |