Debian インストール後の作業
私的なインストール後の作業リストです。
こんなメモ必要だろうか。。。
一応残しておくカンジで。
- APTの設定
- sudoのインストール
- sshのインストール
- telnet他デーモンの停止
- Emacs(emacs21)のインストール
- kon2とjfbtermのインストール
私的なインストール後の作業リストです。
こんなメモ必要だろうか。。。
一応残しておくカンジで。
wikiからの移植です。
iface lo inet loopback auto loiface eth0 inet static
address 192.168.0.3
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1
auto eth0
iface lo inet loopback auto loiface eth0 inet dhcp
auto eth0
search ns.XXX.com
nameserver 192.168.0.200
nameserver 192.168.0.201
alias eth0
/etc/modules.confへ反映
update-modules
近い将来止めるwikiからの移植です。
sudo update-inetd --enable smtp
sudo update-inetd --disable smtp
wikiからの移植です。
Debian woodyでは、perldocをデフォルトで使用できない。 perldocのプログラムおそらくデフォルトで、
/usr/bin/perldocとなっているが、実行すると
you need to install the perl-doc package to use this program
と言われてしまう。
なのでaptコマンドを使ってインストールする。
apt-get update apt-get install perl-docこれでperldocが使用可
今回はカーネル2.6を使用したいのでlinux26 [return]する。
カーネル2.4の場合はlinux [return]でOK
(1)IP Address (2)net mask (3)gateway (4)name server address(DNS) ・スペースで区切って複数入力可能 (5)hostname (6)domain名
ディスク全体を消去する: IDE1 マスタ (hda) - ...... 手動でパーティションテーブルを編集
計算結果が表示され、よければそのまま書き込みを行う。
wikiからの移植です。
Debain WoodyのインストールCDの用意
CDからブートすると、"boot:" という画面で止まる。今回はカーネル2.4を使用したいのでbf24 [return]する。
普通に日本語106を選択
。。。
/etc/network/interfaces
以下私的なメモです。
apt-getで済ます。
apt-get install proftpd
ftp stream tcp nowait root /usr/sbin/tcpd /usr/local/sbin/proftpd
ServerType inetd
ディスクの使用状況を表示するファイルシステムごとに、デバイス名、全容量、使用容量、残り容量、使用割合、マウント先を表示する。
% df -k Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/sd0s1a 118959 71251 38192 65% / /dev/sd0s1f 3540086 2488705 768175 76% /usr /dev/sd0s1e 197951 19640 162475 11% /var procfs 4 4 0 100% /proc /dev/cd0c 662942 662942 0 100% /cdromオプション:
i-node はファイルを作成するたびに必ず一つ必要となる。i-node を全て使いつくすと、ディスク容量に空きがあっても新たなファイルを作成できなくなる。iused・ifree・%iused が i-node に関わる情報で、それぞれ「使用中の i-node」「未使用の i-node」「i-node の使用率」である。
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on /dev/ad0s1a 37352396 16260170 18104036 47% 363569 4464589 8% / devfs 1 1 0 100% 0 0 100% /dev procfs 4 4 0 100% 1 0 100% /proc linprocfs 4 4 0 100% 1 0 100% /usr/compat/linux/proc
% df -H Filesystem Size Used Avail Capacity Mounted on /dev/ad0s1a 38G 17G 19G 47% / devfs 1.0K 1.0K 0B 100% /dev procfs 4.1K 4.1K 0B 100% /proc linprocfs 4.1K 4.1K 0B 100% /usr/compat/linux/proc
普通 df コマンドをオプションなしで実行すると、容量が 512 バイト単位で表示されてしまい わかりにくいので、上の例のように -k オプションを使うとよい。また、-k オプションの代わりに環境変数 BLOCKSIZE を設定しておく手もある。
-a, --all include filesystems having 0 blocks
--block-size=SIZE use SIZE-byte blocks
-h, --human-readable print sizes in human readable format (e.g., 1K 234M 2G)
-H, --si likewise, but use powers of 1000 not 1024
-i, --inodes list inode information instead of block usage
-k, --kilobytes like --block-size=1024
-l, --local limit listing to local filesystems
-m, --megabytes like --block-size=1048576
--no-sync do not invoke sync before getting usage info (default)
-P, --portability use the POSIX output format
--sync invoke sync before getting usage info
-t, --type=TYPE limit listing to filesystems of type TYPE
-T, --print-type print filesystem type
-x, --exclude-type=TYPE limit listing to filesystems not of type TYPE
-v (ignored)
--help display this help and exit
--version output version information and exit
wikiからの移植です。
apt-cache search 検索語
パッケージの状態を調べてどのようなパッケージに依存しているかをチェック
apt-cache show パッケージ名
パッケージのインストール
apt-get install パッケージ名
usr/share/doc/パッケージ名/README.Debianにreadmeがある。その他ドキュメントもusr/share/doc/パッケージ名/にあるのでチェックする
apt-get remove パッケージ名
deborphan(必要のなくなったパッケージを調べる) それらもapt-get removeで削除する
etc/apt/sources.list を編集
先頭に'#'でコメントアウトが可能
deb http://近くのサーバ/archives/linux/debian/debian woody main contrib non-free deb http://近くのサーバ/archives/linux/debian/debian-non-US woody/non-US main contrib non-free deb http://security.debian.org/ woody/updates main contrib non-free