Debian Etchがもうすぐ出るけど、時間がないからインストールしてしまった。間違っている部分や変な部分もあると思うけど、参考にしてください。
apt-spy でアクセスが早いミラーサイトを探す。後に、BerylもインストールするのでBerylの分も書いておく。
$ sudo aptitude install apt-spy
$ apt-spy -d testing -s JP -o sources.list.tmp
/etc/apt/source.list
#deb file:/var/cache/apt-build/repository apt-build main
#deb file:///cdrom/ sarge main
#deb cdrom:[Debian GNU/Linux testing _Sarge_ - Official Snapshot i386 Binary-1 (20050122)]/ unstable contrib main
#deb http://dennou-k.gaia.h.kyoto-u.ac.jp/library/Linux/debian/ sarge main contrib non-free
deb http://dennou-k.gaia.h.kyoto-u.ac.jp/library/Linux/debian/ etch main contrib non-free
deb http://dennou-k.gaia.h.kyoto-u.ac.jp/library/Linux/debian/ unstable main contrib non-free
#deb http://dennou-k.gaia.h.kyoto-u.ac.jp/library/Linux/debian/ experimental main contrib non-free
#deb-src http://dennou-k.gaia.h.kyoto-u.ac.jp/library/Linux/debian/ sarge main contrib non-free
deb-src http://dennou-k.gaia.h.kyoto-u.ac.jp/library/Linux/debian/ etch main contrib non-free
deb-src http://dennou-k.gaia.h.kyoto-u.ac.jp/library/Linux/debian/ unstable main contrib non-free
#deb-src http://dennou-k.gaia.h.kyoto-u.ac.jp/library/Linux/debian/ experimental main contrib non-free
deb http://security.debian.org etch/updates main contrib non-free
deb-src http://security.debian.org etch/updates main contrib non-free
# Beryl
deb http://download.tuxfamily.org/3v1deb debian-unstable beryl-svn
/etc/apt/preferencesを作成。メインをEtchにする。
/etc/apt/preferences
Package: *
Pin: release a=etch
Pin-Priority: 1000
Package: *
Pin: release a=sid
Pin-Priority: -1
Package: *
Pin: release a=unstable
Pin-Priority: -1
Package: *
Pin: release a=experimental
Pin-Priority: -1
このままではエラーが出るので、/etc/apt/apt.confをいじる。
AptGet - Debian GNU/Linux スレッドテンプレ - aptitude update したら "E: Dynamic MMap ran out of room" とエラーが出た
/etc/apt/apt.conf
APT::Cache-Limit "100000000";
鍵を取得しないといけない。Berylの分も取得。信用できる鍵なんてないみたい。
# gpg --keyserver pgp.mit.edu --recv-keys A70DAF536070D3A1
gpg: 鍵6070D3A1をhkpからサーバーpgp.mit.eduに要求
gpg: 鍵6070D3A1: 公開鍵“Debian Archive Automatic Signing Key (4.0/etch) ”を読み込みました
gpg: 絶対的に信用する鍵が見つかりません
gpg: 処理数の合計: 1
gpg: 読込み: 1
# gpg --armor --export 6070D3A1 | apt-key add -
OK
# wget http://download.tuxfamily.org/3v1deb/DD800CD9.gpg -O- | sudo apt-key add -
aptitudeの方が良いんだけど、apt-getでやってしまった。アップグレード開始!
# apt-get update
# apt-get upgrade
# apt-get clean
# apt-get dist-upgrade
最新のカーネルとnvidiaのドライバを入れる。一旦、Xを落した方がいいのかな?と思ったので、Xを終了させてから入れた。たぶん、Xを終了させなくても大丈夫だと思う。ここで、Xを終了させるなら、dist-upgradeをする前で終了させた方が良いと思うんだけど、やってしまったものは仕方ない。
# /etc/init.d/gdm stop
# apt-get install linux-image-2.6.18-4-686
# apt-get install nvidia-kernel-2.6.18-4-686
# apt-get install nvidia-glx
次にxorg.confの設定。どうやら、Sargeからアップグレードすると、フォントのパスの位置が変わっているようだ。フォントのあるパスを確認して、指定する。これで、何度startxをした事か・・・。フォントで、引っかかるとは思わなかった。
xorg.confの設定は、
Debian GNU/Linux etch RC1 インストール・設定メモ - nvidia-legacy-driver のインストールを参考に設定した。
DVI接続でモニタに表示するときは、これも付け加える。
Section "Device"
Option "ConnectedMonitor" "DFP"
EndSection
/etc/X11/xorg.conf
# /etc/X11/xorg.conf
Section "Files"
# FontPath "unix/:7100"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/usr/share/fonts/msfonts"
# FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection
Section "Module"
Load "bitmap"
Load "dbe"
Load "ddc"
# Load "dri"
Load "extmod"
# Load "freetype"
# Load "xtt"
Load "glx"
Load "int10"
Load "record"
Load "type1"
Load "vbe"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "jp106"
Option "XkbLayout" "jp"
Option "XkbVariant" "jp106"
Option "XkbOptions" "jp"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
Section "Device"
Identifier "Generic Video Card"
# Driver "nv"
Driver "nvidia"
EndSection
Section "Monitor"
Identifier "Generic Monitor"
HorizSync 30-60
VertRefresh 50-75
Option "DPMS"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Generic Video Card"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection
Section "DRI"
Mode 0666
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
再起動すれば、Etchの世界!!
参考
Debian GNU/Linux etch RC1 インストール・設定メモ
Debian GNU/Linux 4.0 (`etch') リリースノート (Intel x86 用) - 以前のリリースからアップグレードする