Debianの軽い環境

Debian ( Debian 4.0r1(Etch) )を古いPCでも動く様に軽く設定する方法が以下で紹介されていたので転載する

Debian install

  1. Debian公式サイトからbusinesscardイメージをdownload
  2. CDにイメージを焼く
  3. OSは標準のシステムだけをインストールする
  4. システムインストール後,以下でdesktopを構築していく
# LANG=C apt-get install xfce4 gdm xserver-xorg x-window-system

基本的な設定

  • installが終わったら再起動。
日本語入力環境の設定(SCIM-Anthy)
# apt-get install scim-anthy im-switch kasumi
ALSAサウンドドライバを入れる
# aptitude install alsa alsa-utils
# alsaconf

その他役立つソフトの導入

システム負荷モニタ

# aptitude install xfce4-systemload-plugin

zipとunzip

# aptitude install zip unzip

The GIMP

# aptitude install gimp

バイスの自動マウント

# aptitude install xvmount

スクリーンセーバーの設定

# aptitude install xscreensaver
  • xscreensaverを自動開始アプリケーションに登録
  • xscreensaver &

フォントのディレクト

/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
# 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

Skype

  1. サイトからSkypeをダウンロード
  2. Skypeを起動させるためにQtをインストール
# aptitude install libqt4-core libqt4-gui
  1. Skpeを解凍して適当なところに移動する
# tar jxvf skype-x.x.x.x.tar.bz2
# su xkype-x.x.x.x /usr/local/skype
# ln -s /usr/local/skype/skype /usr/local/bin/.