メニュー

  1. カーネルのインストール
  2. 下準備
  3. カーネルのアップグレード
  4. alsaによる音鳴らし
  5. apciによるハイバネーション

カーネルのインストール

2004年10月現在、Debianのインストーラは大幅な改変が行われているけど、 簡単になるだけで、基本システムのインストール日本語の設定・Xのインストールを 見ておけばまず迷うことはなかった。

ここまででやっておいた方が便利なこと(追加)

index

下準備

  1. hjk@Fairlady#:apt-get install autoconf automake binutils gcc gettext kernel-package libncurses5-dev libtool linux-kernel-headers make module-init-tools procps e2fsprogs util-linux bzip2 fakeroot
  2. kernel.orgで、 カーネル本体とパッチを落す
  3. 次の内容で /etc/kernel-img.conf を作る
    
    do_initrd = Yes
    do_symlink = Yes
    postinst_hook = /sbin/update-grub
    postrm_hook = /sbin/update-grub
    do_bootloader = no
    
    
index

カーネルのアップグレード

ソフトウェアサスペンド(acpi)でhibernationするために http://softwaresuspend.berlios.de/ のdownloadから software-suspend-2.1-rc2-for-2.6.9-rc4.tar.bz2 (local)を ダウンロードして、/usr/src あたりに置いておく。
  1. 以前にカーネルを作っていれば
    1. # cd /usr/src/linux
    2. usr/src/linux# ..
    3. usr/src# rm -f kernel-image-hogehoge
    4. usr/src# rm linux
    5. usr/src# ln -s linux-2.6.xx /usr/src/linux
    しておく。
  2. # LANG=c
  3. # cd /usr/src
  4. usr/src# tar jxvf /hoge/(kernel本体ある場所)/linux-2.6.8.1.tar.bz2
  5. usr/src# ln -s linux-2.6.xx /usr/src/linux
  6. usr/src# cd linux
  7. usr/src/linux# cp /hoge/(patchのある場所)/patch-2.6.9.bz2 .
  8. usr/src/linux# bzip2 -d patch-2.6.9.bz2
  9. usr/src/linux# patch -p1 < patch-2.6.9

    しておく

  10. /usr/src/linux# cp /home/hujioka/config-2.4.18-bf2.4 .config
  11. /usr/src/linux# make-kpkg clean
    
    通常であれば、
    cp /boot/config-x.x.x.config
    
    既に出来ているものがあるので、scpで/home/hujiokaに移動しておいた
    
    
  12. # make oldconfig かなりの項目になる 問題になっているモジュールは ないし で対応。
    無視してもよい。

  13. # make menuconfig
    
    make oldconfigをした場合には再度、
    "make oldconfig"での決定が反映されているかをチェック
    
    

  14. s30の場合、ここで murasakiの作者さんが作ってくれている Thinkpad s30専用 ACPIパッチ(DSDTデータ)
    • cp /hoge(パッチのある場所)/s30-linux.hex /usr/src/linux-2.6.9/
    として当てておく

    usr/src/linux# fakeroot make-kpkg --revision=240z kernel-image
  15. usr/src/linux# cd /usr/src
  16. /usr/src# dpkg -i kernel-image-2.6.8.1_240z+swsusp.deb
  17. /usr/src# cd /boot/
  18. boot# mkinitrd -o initrd.img-2.6.8 /lib/modules/2.6.8/
index

alsaによる音鳴らし

  1. # apt-get install alsa-base alsa-utils libasound2
  2. # alsaconf
  3. # update-modules
  4. # /etc/init.d/alsa restart
  5. # alsamixer でMMになっているものは「m」で外して「ESC」で保存
  6. $ xmms で起動させてみてプロセスを見る。場合によっては(240zの場合 そうだったが)、/dev/mixer, /dev/dsp等にパーミション・エラーが生じている ことがある。#chmod 777 /dev/hoge 等で問題を解消する
index

apciによるハイバネーション

ここからhibernate-script-0.99.tar.gzをもってくる (場所は/tmpがよいようだ)。

その後はhttp://softwaresuspend.berlios.de/Software-suspend-3.html#ss3.3 に書かれている通り


# cd /tmp
# tar xzvf hibernate-script-0.99.tar.gz
# cd hibernate-script-0.99
# ./install.sh
# 

しておく。
index

Acroread

ftp://ftp.adobe.com/pub/adobe/acrobatreader/unix/5.x/ から"linux-5.0.9.tar.gz"と"janxx.tar.gz"をとってくる。

/tmpで作業する。

hjk@s30:/tmp$ sudo tar zxvf linux-509.tar.gz 
Password:
./
./COMMON.TAR
./INSTALL
./README
./LICREAD.TXT
./LINUXRDR.TAR
tar: Read 8192 bytes from linux-509.tar.gz
./MANIFEST
hjk@s30:/tmp$ sudo ./INSTALL 
 
…スクリプトを実行するとライセンスの説明が表示される。納得したら Q を押す。
 
To accept the terms and conditions of this agreement enter "accept".
To decline the terms and conditions of this agreement enter "decline".
 
Please type "accept" to accept the terms and conditions license agreement; Type "decline" to exit. accept

…acceptと打ってEnterを押した。

This installation requires 25MB of free disk space.
 
Enter installation directory for Acrobat 5.0.9 [/usr/local/Acrobat5] 
 
Directory "/usr/local/Acrobat5" does not exist.
Do you want to create it now? [y] 
 
Installing platform independent files ... Done
 
Installing platform dependent files ... Done
 
hjk@s30:/tmp$ 

次に日本語フォントをインストールする。
rootになってやらないとうまくいかないので、suしとくこと。


s30:/tmp# tar zxvf jpnfont.tar.gz 
JPNKIT/
JPNKIT/INSTLANG
JPNKIT/LICFONT.TXT
JPNKIT/LANGJPN.TAR
JPNKIT/LANGCOM.TAR
tar: Read 4608 bytes from jpnfont.tar.gz
s30:/tmp# cd JPNKIT/
s30:/tmp/JPNKIT# ./INSTLANG 
 
Welcome to the Asian Language Kit installation.
 
This installation will not work if you do not have the
Unix Acrobat Reader 5.0 or a higher version installed
prior to this installation. If you do not have Acrobat Reader 5.0
or a higher version already installed on your system,
please do so before installing this Asian Language Kit.
 
 
Continue installation? [y]  
 
…スクリプトを実行するとライセンスの説明が表示される。納得したら Q を押す。
 
 
To accept the terms and conditions of this agreement enter "accept".
To decline the terms and conditions of this agreement enter "decline".
 
Please type "accept" to accept the terms and conditions of this license agreement; Type "decline" to exit.  accept
 
Enter the location where you installed the Acrobat Reader [/usr/local/Acrobat5] 
 
Installing...
 
Installing Common resources ... Done
 
Installing Japanese language resources ... Done
 
Installation completed.
 
s30:/tmp/JPNKIT# 
最後にコマンドから補完が効くように

s30:/tmp# ln -s /usr/local/Acrobat5/bin/acroread /usr/local/bin/acroread

しておく。
これで acro.. とすると、acroread と補完してくれる。
[備忘録]