Debianの軽い環境
Debian ( Debian 4.0r1(Etch) )を古いPCでも動く様に軽く設定する方法が以下で紹介されていたので転載する
Debian install
- Debian公式サイトからbusinesscardイメージをdownload
- CDにイメージを焼く
- OSは標準のシステムだけをインストールする
- システムインストール後,以下でdesktopを構築していく
# LANG=C apt-get install xfce4 gdm xserver-xorg x-window-system
基本的な設定
- installが終わったら再起動。
システム負荷モニタ
# aptitude install xfce4-systemload-plugin
zipとunzip
# aptitude install zip unzip
フォントのディレクトリ
/usr/share/fonts/truetype
firefoxをinstall
- 前準備
# aptitude install libstdc++5
- firefoxを公式サイトからダウンロードした後解凍
$ tar xvfz firefox-x.x.x.x.tar.gz # mv firefox /usr/local # ln -s /usr/local/firefox/firefox /usr/local/bin/.
chkconfigの代わり
chkconfigが存在しないので代わりにsysv-rc-confをインストールして使用する。
# aptitude install sysv-rc-conf
使い方は
$ sysv-rc-conf -h
で確認できる。実際コマンドが違うだけでほとんどchkconfigと同じ。
ntpサーバーをインストール
# aptitude install ntp-server # vi /etc/ntp.conf
server 0.debian.pool.ntp.org iburst server 1.debian.pool.ntp.org iburst server 2.debian.pool.ntp.org iburst server 3.debian.pool.ntp.org iburst
↑のを全てコメントアウトして
server -4 ntp.nict.jp server -4 ntp.jst.mfeed.ad.jp
を追記する。
# /etc/init.d/ntp start # sysv-rc-conf ntp on # sysv-rc-conf --list ntp
2〜5番目がonになってたらおk
アンチウイルスソフト(ClamAV)
# cd /etc/apt/sources.list.d/
新規作成
# vi volatile.list
deb http://ftp2.jp.debian.org/debian-volatile etch/volatile main contrib deb http://ftp2.jp.debian.org/debian-volatile etch/volatile-sloppy main contrib
と書き込んで保存。
# aptitude update # sptitude install clamav
- パターンの更新
# freshclam
- ClamAVを設定
# vi /etc/clamav/clamd.conf
User clamav ↓ #User clamav ←root権限で動作するようにする
ArchiveBlockMax no ↓ #ArchiveBlockMax no ←大きな圧縮ファイル等をウイルス感染ファイルとみなさないようにする。
上の二つを変更したら保存。
# crontab -e 00 00 * * * freshclam || clamscan -r /home > /dev/null 2>&1