Debian GNU/Linux のインストール&セットアップのメモ.
このメモの内容ほとんどは Debian-Linux specific です.
Linux 一般なところはそう書いておきます.
ブート(起動)したときにいっぱい出たメッセージを見る方法.(Unix 一般)
% dmesgなんかエラーが出てるときに使う.
lilo がどうにもうまくいかなかったので grub というのを使ってます。
もし自動的に立ち上がらなかったら,grub のレスキューディスクからでも
grub のプロンプトを出して,
grub> root <hd0,0> grub> boot /vmlinuzとすれば立ち上がると思う。
ディスク上のファイルを読むのには,ファイルシステムを directory tree
のどこかにマウントしなきゃいけない.
% mount -t file-system-type /dev/device-file destination-directoryfile-system-type はフォーマットの種類で,ms-dos (FAT), ext2 (Linux), nfs 等.
ハードディスク /dev/hda, /dev/hdb フロッピー /dev/fd0 CD-ROM /dev/cdromMO は今 ('99.11.29) は SCSI に繋がってるので /dev/sda
% dmesg | grep scsiででどこに割り当てられたか確かめられる.
% mount -t nfs reizei:/home /mntこの場合, reizei の /etc/exports で許されていないとならない.
/etc/init.d/network IP アドレス,デフォルトゲートウェイなど /etc/hostname ホスト名 /etc/hosts よく使うホスト名 /etc/resolv.conf DNS 関係/etc/init.d/network をいじったら,
% /etc/init.d/networkで反映される.
runlevel という,起動モードみたいなものがある.(System V 流儀らしい)
runlevel 0 : halt runlevel 1 : single-user runlevel 2-5 : multi-user runlevel 6 : rebootdebian では標準は runlevel=2.
パッケージは dselect で追加/削除するが,初めの一回 (CD-ROM)
以外は Access にAPT (apt-get) を使った方がいい.
apt のソース (ftp site) は /etc/apt/sources.list に書かれている.
deb ftp://ftp.debian.or.jp/debian stable main contrib non-free deb ftp://ftp.debian.or.jp/debian dists/proposed-updates/ deb ftp://ftp.debian.or.jp/debian-jp stable-jp main contrib non-free deb ftp://ftp.debian.or.jp/debian-jp dists/slink-jp-proposed-updates/ deb ftp://ftp.debian.or.jp/debian-non-US stable non-US #deb ftp://ftp.debian.or.jp/debian-non-US/dists proposed-update/としておくのがいいだろう.もっと詳しくは man apt-get を見ること.
% dpkg --get-selections > filename % dpkg --set-selections < filename % dselectで保存・復元できる.