Debian GNU/Linux

Debian GNU/Linux のメモ。

-Debian -- Debian パッケージ検索
--https://packages.debian.org/ja/

-index — Debian Manpages
--https://manpages.debian.org/

-慎重派のアップグレード(ダウンロードして、何が更新されるかチェックして、それからアップグレード)
--# apt-get update
--# apt-get -d upgrade
--# apt-get -s upgrade
--# apt-get upgrade

-ネットワークの再起動
--# /etc/init.d/networking restart

-ネットワークインターフェースの停止と起動
--# /sbin/ifdown eth0
--# /sbin/ifup eth0

-IPアドレスの変更
--# ifdown eth0
--# editor /etc/network/interfaces # お好きなようにいじる
--# ifup eth0

-/etc/network/options
--ip_forward=yes # IP転送の設定
--spoofprotect=yes # IP偽装排除の設定
--syncookies=yes # SYN floods 攻撃対策の設定

-Debian リファレンス - ネットワークの設定
--http://qref.sourceforge.net/Debian/reference/ch-gateway.ja.html

-Debianでのネットワークの設定
--http://park15.wakwak.com/~unixlife/linux/de-network.html

-Debian GNU/Linuxネットワーク設定
--http://www.yaromai.net/~kazssym/linux/debian-network

-Debian セキュリティマニュアル
--http://ukdebian.mirror.anlx.net/doc/manuals/securing-debian-howto/index.ja.html

-IT技術メモ - [Debian]初心者的Debianメモ
--http://www.nilab.info/resource/bbslog/megabbs/1036412362.html

-ファイルが属するパッケージを調べる
--$ dpkg -S /bin/ls

-パッケージの再設定
--# dpkg-reconfigure パッケージ名

-プログラム実行中に必要なパッケージを自動でインストール
--# auto-apt run プログラム実行コマンド

-Debian tdiary
--/usr/share/tdiary/misc/plugin/ に plugin のファイルを設置する。

-Debian でインストール済みパッケージの一覧を表示する
--dpkg -l

-依存関係が壊れたシステムの修復
--# apt-get -f install

-インストール済みのパッケージを再インストールする
--# apt-get --reinstall install hoge

-パッケージ構成をまるごとコピーしたマシンを構築する方法
--コピー元マシンにてパッケージ構成情報を取得
---# dpkg --get-selections > list.txt
--コピー先マシンにて、パッケージ構成情報を設定して、パッケージをまとめてインストール
---# dpkg --set-selections < list.txt
---# apt-get dselect-upgrade

-apt-setup で /etc/sources.list の設定

-apt-line 例
--deb http://cdn.debian.or.jp/debian/ etch main contrib non-free
--deb-src http://cdn.debian.or.jp/debian/ etch main contrib non-free
--deb http://security.debian.org/ etch/updates main contrib non-free
--deb http://www.ring.gr.jp/archives/linux/debian/debian/ etch main contrib
--deb-src http://www.ring.gr.jp/archives/linux/debian/debian/ etch main contrib
--deb http://XXX/debian stable main contrib non-free
--deb-src http://XXX/debian stable main contrib non-free
--deb http://security.debian.org/ stable/updates main contrib non-free

-Debian Popularity Contest (パッケージ人気コンテスト)
--http://www.nilab.info/zurazure2/archives/000273.html

-Debian GNU/Linux sarge で OpenSSH を使う
--http://www.nilab.info/zurazure2/archives/000170.html

-Debian に namazu をインストールする
--http://www.nilab.info/zurazure2/archives/000128.html

-Debian の APTリポジトリを作ってみる
--http://www.nilab.info/zurazure2/archives/000096.html