LS-GL: debian: いろいろインストール/設定


だいたい、以前実行した内容と同じ。
2回目なので楽勝。

まずは apt-get update

ude:~# apt-get update
Hit http://ftp.jp.debian.org sarge/main Packages
	:
Hit http://security.debian.org sarge/updates/non-free Release
Reading Package Lists... Done
ude:~#

less

こんなの、最初から入れておいてもいいなぁ、、、
ude:~# apt-get install less
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  less
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 103kB of archives.
After unpacking 266kB of additional disk space will be used.
Get:1 http://ftp.jp.debian.org sarge/main less 382-1 [103kB]
Fetched 103kB in 0s (133kB/s)
Selecting previously deselected package less.
(Reading database ... 7658 files and directories currently installed.)
Unpacking less (from .../archives/less_382-1_arm.deb) ...
Setting up less (382-1) ...

ude:~#

ftp

これも、最初から入れておいてもいいなぁ、、、
ude:/usr/local/sbin# apt-get install ftp
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  libreadline4
The following NEW packages will be installed:
  ftp libreadline4
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 194kB of archives.
After unpacking 508kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.jp.debian.org sarge/main libreadline4 4.3-11 [138kB]
Get:2 http://ftp.jp.debian.org sarge/main ftp 0.17-12 [55.3kB]
Fetched 194kB in 1s (189kB/s)
Selecting previously deselected package libreadline4.
(Reading database ... 7619 files and directories currently installed.)
Unpacking libreadline4 (from .../libreadline4_4.3-11_arm.deb) ...
Selecting previously deselected package ftp.
Unpacking ftp (from .../archives/ftp_0.17-12_arm.deb) ...
Setting up libreadline4 (4.3-11) ...

Setting up ftp (0.17-12) ...

ude:/usr/local/sbin#

ftpd

ude:~# apt-get install inetutils-ftpd
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  inetutils-ftpd
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 48.7kB of archives.
After unpacking 131kB of additional disk space will be used.
Get:1 http://ftp.jp.debian.org sarge/main inetutils-ftpd 2:1.4.2+20040207-4 [48.7kB]
Fetched 48.7kB in 7s (6169B/s)
Selecting previously deselected package inetutils-ftpd.
(Reading database ... 7675 files and directories currently installed.)
Unpacking inetutils-ftpd (from .../inetutils-ftpd_2%3a1.4.2+20040207-4_arm.deb) ...
Setting up inetutils-ftpd (1.4.2+20040207-4) ...
ude:~# echo "ftp     stream  tcp     nowait  root    /usr/sbin/tcpd  ftpd" >> /etc/inetd.conf
ude:~# tail /etc/inetd.conf
#:BOOT: Tftp service is provided primarily for booting.  Most sites
# run this only on machines acting as "boot servers."

#:RPC: RPC based services

#:HAM-RADIO: amateur-radio services

#:OTHER: Other services
rsync   stream  tcp     nowait  root    /usr/sbin/tcpd /usr/bin/rsync --daemon
ftp     stream  tcp     nowait  root    /usr/sbin/tcpd  ftpd
ude:~# kill -HUP `cat /var/run/inetd.pid `
ude:~# ftp localhost
Connected to localhost.
220 ude FTP server (GNU inetutils 1.4.2) ready.
Name (localhost:yasunari):
331 Password required for yasunari.
Password:
230- Linux ude 2.6.12.6-arm1 #33 Tue Aug 8 17:16:04 JST 2006 armv5tejl GNU/Linux
230-
230- The programs included with the Debian GNU/Linux system are free software;
230- the exact distribution terms for each program are described in the
230- individual files in /usr/share/doc/*/copyright.
230-
230- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
230- permitted by applicable law.
230 User yasunari logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> quit
221 Goodbye.
ude:~#

ntpd

ude:~# apt-get install ntp-server
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  ntp ntp-simple perl perl-modules psmisc
Suggested packages:
  ntpdate ntp-doc libterm-readline-gnu-perl libterm-readline-perl-perl
Recommended packages:
  perl-doc
The following NEW packages will be installed:
  ntp ntp-server ntp-simple perl perl-modules psmisc
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 5772kB of archives.
After unpacking 22.6MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.jp.debian.org sarge/main perl-modules 5.8.4-8sarge5 [2179kB]
Get:2 http://ftp.jp.debian.org sarge/main perl 5.8.4-8sarge5 [3133kB]
Get:3 http://ftp.jp.debian.org sarge/main psmisc 21.5-1 [43.5kB]
Get:4 http://ftp.jp.debian.org sarge/main ntp 1:4.2.0a+stable-2sarge1 [257kB]
Get:5 http://ftp.jp.debian.org sarge/main ntp-simple 1:4.2.0a+stable-2sarge1 [128kB]
Get:6 http://ftp.jp.debian.org sarge/main ntp-server 1:4.2.0a+stable-2sarge1 [31.4kB]
Fetched 5772kB in 58s (99.1kB/s)
Selecting previously deselected package perl-modules.
(Reading database ... 7686 files and directories currently installed.)
Unpacking perl-modules (from .../perl-modules_5.8.4-8sarge5_all.deb) ...
Selecting previously deselected package perl.
Unpacking perl (from .../perl_5.8.4-8sarge5_arm.deb) ...
Selecting previously deselected package psmisc.
Unpacking psmisc (from .../archives/psmisc_21.5-1_arm.deb) ...
Selecting previously deselected package ntp.
Unpacking ntp (from .../ntp_1%3a4.2.0a+stable-2sarge1_arm.deb) ...
Selecting previously deselected package ntp-simple.
Unpacking ntp-simple (from .../ntp-simple_1%3a4.2.0a+stable-2sarge1_arm.deb) ...
Selecting previously deselected package ntp-server.
Unpacking ntp-server (from .../ntp-server_1%3a4.2.0a+stable-2sarge1_arm.deb) ...
 Removing any system startup links for /etc/init.d/ntp-simple ...
 Removing any system startup links for /etc/init.d/ntp-refclock ...
 Removing any system startup links for /etc/init.d/ntp ...
ntpd: no process killed
Setting up psmisc (21.5-1) ...

Setting up perl-modules (5.8.4-8sarge5) ...
Setting up ntp (4.2.0a+stable-2sarge1) ...

Setting up ntp-server (4.2.0a+stable-2sarge1) ...
Starting NTP server: ntpd.

Setting up ntp-simple (4.2.0a+stable-2sarge1) ...

Setting up perl (5.8.4-8sarge5) ...

ude:~#
server を足す。
ude:~# mv /etc/ntp.conf{,.orig}
ude:~# cp /etc/ntp.conf.orig /etc/ntp.conf
ude:~# ls -l /etc/ntp.conf*
-rw-r--r--  1 root root 1792 Jan 14 15:47 /etc/ntp.conf
-rw-r--r--  1 root root 1792 Aug 27  2005 /etc/ntp.conf.orig
ude:~# vi /etc/ntp.conf
	:
ude:~# diff /etc/ntp.conf.orig /etc/ntp.conf
22a23,27
> server  ntp3.jst.mfeed.ad.jp
> server  ntp2.jst.mfeed.ad.jp
> server  ntp1.jst.mfeed.ad.jp
> server  link.yamasita.jp
ude:~#
再起動
ude:~# /etc/init.d/ntp-server reload
Usage: /etc/init.d/ntp-server {start|stop|restart|force-reload}
ude:~# /etc/init.d/ntp-server restart
Restarting NTP server: ntpd... done.
ude:~# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 209.104.4.231   209.81.9.7       2 u    3   64    1  192.837  -20427.   0.015
 ntp3.jst.mfeed. 210.173.160.56   2 u    3   64    1   33.527  -20432.   0.015
 ntp2.jst.mfeed. 210.173.160.56   2 u    2   64    1   33.207  -20431.   0.015
 ntp1.jst.mfeed. 210.173.160.56   2 u    1   64    1   35.298  -20433.   0.015
 link.yamasita.j 210.173.160.57   3 u    -   64    1   10.439  -20428.   0.015
 LOCAL(0)        LOCAL(0)        13 l    -   64    0    0.000    0.000 4000.00
ude:~#
まぁ、そのうち同期するでしょう。

resolv.conf

ドメインを省略できるよう、search を追加する。
ude:~# cat /etc/resolv.conf
nameserver 192.168.1.2
ude:~# echo search yamasita.jp >> !$
echo search yamasita.jp >> /etc/resolv.conf
ude:~# !cat
cat /etc/resolv.conf
nameserver 192.168.1.2
search yamasita.jp
ude:~# ping ns
PING ns.yamasita.jp (192.168.1.2) 56(84) bytes of data.
64 bytes from ns.yamasita.jp (192.168.1.2): icmp_seq=1 ttl=255 time=1.50 ms
64 bytes from ns.yamasita.jp (192.168.1.2): icmp_seq=2 ttl=255 time=0.274 ms
64 bytes from ns.yamasita.jp (192.168.1.2): icmp_seq=3 ttl=255 time=0.258 ms
64 bytes from ns.yamasita.jp (192.168.1.2): icmp_seq=4 ttl=255 time=0.280 ms

--- ns.yamasita.jp ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3029ms
rtt min/avg/max/mdev = 0.258/0.578/1.500/0.532 ms
ude:~#

strings

ハックの道具の筆頭 strings は、、、
ude:~# apt-cache search strings
amaterus - GTK+ based window manager
bigloo - A practical Scheme compiler
chemeq - Parser for chemical formula and equilibria
と apt-cache search しても出てこないのだが、、、

binutils をインストールするらしい。

ude:~# apt-get install binutils
Reading Package Lists... Done
Building Dependency Tree... Done
Suggested packages:
  binutils-doc
The following NEW packages will be installed:
  binutils
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2072kB of archives.
After unpacking 5681kB of additional disk space will be used.
Get:1 http://ftp.jp.debian.org sarge/main binutils 2.15-6 [2072kB]
Fetched 2072kB in 35s (58.2kB/s)
Selecting previously deselected package binutils.
(Reading database ... 9042 files and directories currently installed.)
Unpacking binutils (from .../binutils_2.15-6_arm.deb) ...
Setting up binutils (2.15-6) ...

ude:~# which strings
/usr/bin/strings
ude:~#

開発環境

ude:~# apt-get install gcc make libc6-dev bzip2
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  cpp cpp-3.3 gcc-3.3 libbz2-1.0 linux-kernel-headers
Suggested packages:
  cpp-doc manpages-dev autoconf automake libtool flex bison gdb gcc-doc gcc-3.3-doc libbz2-dev glibc-doc
The following NEW packages will be installed:
  bzip2 cpp cpp-3.3 gcc gcc-3.3 libbz2-1.0 libc6-dev linux-kernel-headers make
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 7873kB of archives.
After unpacking 26.7MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.jp.debian.org sarge/main libbz2-1.0 1.0.2-7 [41.3kB]
Get:2 http://ftp.jp.debian.org sarge/main cpp-3.3 1:3.3.5-13 [1275kB]
Get:3 http://ftp.jp.debian.org sarge/main cpp 4:3.3.5-3 [29.6kB]
Get:4 http://ftp.jp.debian.org sarge/main gcc-3.3 1:3.3.5-13 [1558kB]
Get:5 http://ftp.jp.debian.org sarge/main gcc 4:3.3.5-3 [4920B]
Get:6 http://ftp.jp.debian.org sarge/main linux-kernel-headers 2.5.999-test7-bk-17 [1473kB]
Get:7 http://ftp.jp.debian.org sarge/main libc6-dev 2.3.2.ds1-22sarge4 [2825kB]
Get:8 http://ftp.jp.debian.org sarge/main make 3.80-9 [431kB]
Get:9 http://ftp.jp.debian.org sarge/main bzip2 1.0.2-7 [234kB]
Fetched 7873kB in 38s (205kB/s)
Selecting previously deselected package libbz2-1.0.
(Reading database ... 9156 files and directories currently installed.)
Unpacking libbz2-1.0 (from .../libbz2-1.0_1.0.2-7_arm.deb) ...
Selecting previously deselected package cpp-3.3.
Unpacking cpp-3.3 (from .../cpp-3.3_1%3a3.3.5-13_arm.deb) ...
Selecting previously deselected package cpp.
Unpacking cpp (from .../cpp_4%3a3.3.5-3_arm.deb) ...
Selecting previously deselected package gcc-3.3.
Unpacking gcc-3.3 (from .../gcc-3.3_1%3a3.3.5-13_arm.deb) ...
Selecting previously deselected package gcc.
Unpacking gcc (from .../gcc_4%3a3.3.5-3_arm.deb) ...
Selecting previously deselected package linux-kernel-headers.
Unpacking linux-kernel-headers (from .../linux-kernel-headers_2.5.999-test7-bk-17_arm.deb) ...
Selecting previously deselected package libc6-dev.
Unpacking libc6-dev (from .../libc6-dev_2.3.2.ds1-22sarge4_arm.deb) ...
Selecting previously deselected package make.
Unpacking make (from .../archives/make_3.80-9_arm.deb) ...
Selecting previously deselected package bzip2.
Unpacking bzip2 (from .../archives/bzip2_1.0.2-7_arm.deb) ...
Setting up libbz2-1.0 (1.0.2-7) ...

Setting up cpp-3.3 (3.3.5-13) ...
Setting up cpp (3.3.5-3) ...
Setting up gcc-3.3 (3.3.5-13) ...
Setting up gcc (3.3.5-3) ...

Setting up linux-kernel-headers (2.5.999-test7-bk-17) ...
Setting up libc6-dev (2.3.2.ds1-22sarge4) ...
Setting up make (3.80-9) ...

Setting up bzip2 (1.0.2-7) ...

ude:~#
さあ、必要な物は大体揃ったかな。


LS-GL: debian: アップデート
ハックの記録
LinkStation/玄箱 をハックしよう

LS-GL: debian: バックアップ

Copyright (C) 2007 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市