Debian GNU/Linux

X server

http://www.mnsinc.com/js/Neomagic.html
http://www.cs.utexas.edu/users/kharker/linux-laptop/
http://www.yy.cs.keio.ac.jp/~sanpei/Laptop-X/SONY_VAIO_PCG-505EX
http://www.on.cs.keio.ac.jp/naoto/linux/neomagick.html
http://www.phoneboy.com/pig/howto/neomagic-x.html
Checking for valid XFree86 server configuration.../^+vsync$/: regexp *+ operand could be empty at /usr/sbin/parse-xf86config line 1736, chunk 356. error in configuration file. Not starting X display manager.

X server

安易に, Debianize された XBF でいく. /usr/doc/xserver-neomagic/examples をもとに設定.

% startx -- -bpp 16

xfs-xtt

# cd /usr/share/fonts/truetype/windows
# ln -s /dos/windows/fonts/times.ttf

/etc/X11/xfs/config を編集して, catalogue に /usr/share/fonts/truetype/windows を追加する.

XEmacs + Wl

XEmacs 21.x でないと, package (Debian のじゃなくて XEmacs package) が 使えないけれど, XEmacs-21.x は, まだbetaだから, XEmacs 20.4 しか debianize されてないみたい. 仕方ないから自分でbuild. APEL, FLIM, SEMI, もいれて Wanderlust.

host name change

/etc/hosts と /etc/hostname だけではだめみたい. /etc/pcmcia の下も変えなければいけなかったのか... そういえば, 初期設定時にアドレスいれたっけ. 他にも MTA の設定の時にもいれたなぁ. ここらへんの 設定は必要になった時にでも.

font

font /usr/share/fonts/truetype に DOS パーティションから symbolic link # ln -s /dos/windows/fonts /usr/share/fonts/truetype/windows

Real Player

% wget http://get.real.com/RJP1/210.172.34.13/08079913bf1642649a05/unix/rv50_linux20.tar.gz
% cp rv50_linux20.tar.gz /tmp/
# chown root:root /tmp/rv50_linux20.tar.gz
abyss:/var/cache/apt/archives# dpkg -i rvplayer*
/tmp/rv50_linux20.tar.gz has been unpacked and installed.
You can now delete it, if you wish.

abyss:/var/cache/apt/archives#

カーネルの再構築

# cd /usr/src/linux
# make menuconfig(ncurses) or make xconfig(X Window)
# make-kpkg --revision VAIO505R.0 kernel_image -zimage
# cd ..
# dpkg -i kernel-image-2.0.34_VAIO505R.0_i386.deb
作り直す場合: # cd /usr/src/linux # make-kpkg clean APM Settings

[Y] Advanced Power Management Support
[N] Ignore User Suspend
[Y] Enable PM at boot time
[Y] Make CPU Idle called when idle
[Y] Enable console blanking using APM
[Y] Power off on shutdown

Linux-2.2.4

% cd /usr/local/src/sys/
% ncftpget ftp://ftp.jp.kernel.org/pub/linux/kernel/v2.2/linux-2.2.4.tar.gz
% su
# cd /usr/src/
# gtar zxvf /usr/local/src/sys/linux-2.2.4.tar.gz
# mv linux linux-2.2.4
# ln -s linux-2.2.4 linux
# cd linux
# setenv DISPLAY abyss:0.0
# make xconfig
// 設定ファイルは /usr/src/linux/arch/i386/defconfig かな? ちがうみたい. /usr/src/linux/.config だな.
# make-kpkg --revision vaio505rx.0 kernel_image -zimage
# cd ..
# dpkg -i kernel-image-2.2.4_vaio505rx.0_i386.deb
Selecting previously deselected package kernel-image-2.2.4.
(Reading database ... 53056 files and directories currently installed.)
Unpacking kernel-image-2.2.4 (from kernel-image-2.2.4_vaio505rx.0_i386.deb) ...
Setting up kernel-image-2.2.4 (vaio505rx.0) ...
A new kernel image has been installed, and usually that means  
that some action has to be taken to make sure that the new     
kernel image is used next time the machine boots. Usually,     
this entails running a ``bootloader'' like grub, SILO, loadlin,
LILO, QUIK, or booting from a floppy.                        

A new kernel image has been installed. 

LILO sets up your system to boot Linux directly from your hard
disk, without the need for a boot floppy.

WARNING
If you are keeping another operating system or another version
of Linux on a separate disk partition, you should not have LILO
install a boot block now. Wait until you read the LILO documentation.
That is because installing a boot block now might make the other
system un-bootable. If you only want to run this version of Linux,
go ahead and install the boot block here. If it does not work, you
can still boot this system from a floppy.

Would you like to create a boot floppy now? [No] no
You already have a LILO configuration in /etc/lilo.conf
Install a boot block using the existing /etc/lilo.conf? [Yes] yes
Testing lilo.conf ... 
The boot sector and the map file have *NOT* been altered.
Testing successful. Installing the partition boot sector... 
Installation successful.
# 
最初, 全然モジュールにしないで単純に Yes にしていたら, サイズが大きすぎるから bzImage にしろといわれてしまったので, zImage でなんとか make するため, できるかぎり module にして make しなおした. # vi /etc/lilo.conf
# /sbin/lilo
new kernel で boot すると無事起動. 何度かブートさせてみないとわからないけど とりあえず今回は boot image の展開途中で reboot することはなかった.

boot sequence で APM が認識されていること を確認. apm, xapm, xbatt を実行し確認したかぎり, ちゃんと動いているみたい. panel を閉じて, suspend させ, しばらく待って開いて resume させてみる. ちゃんとネットワークも生き返り, きれいに機能している.

それから, ふと気づくと boot sequence の msdos file system のマウント に失敗している. Filesystem の設定で msdos とかちゃんといれたはずなんだけど... やはり, 近いうちにもう一度やってみる必要あり?

PCMCIA card

1) 2) You can use a script to automatically eject/insert your PCMCIA cards during a APM suspend event. (Note that this will break any connections established by network cards.) 3) You can do nothing; that is, let the PCMCIA modules' APM support handle card suspend/resume events. Unless you know that your system cannot adequately handle APM suspend/resume events on its own, you should choose option 3. If you decide later that you need to automatically suspend/resume your PCMCIA cards with a script you should modify the /etc/pcmcia/apm.opts file so that it contains the following line:
APM=suspend

If you decide later that you need to automatically eject/insert your PCMCIA cards with a script you should modify the /etc/pcmcia/apm.opts file so that it contains the following line:
APM=eject

What do you want to do on APM suspend/resume events? 1) Automatically suspend/resume 2) Automatically eject/insert 3) Nothing(default)

command

ロードされているカーネル・モジュールを確認する.
lsmod. Solaris でいう modinfo にあたる.
カーネル・モジュールをロードする
insmod. Solaris でいう modload にあたる.
カーネル・モジュールをアンロードする.
rmmod. Solaris でいう modunload にあたる.
IRQ の割り当て状態の確認
% cat /proc/interrupts
IO ポートの割り当て状態の確認
% cat /proc/ioports
デバイスの認識状態の確認
% cat /proc/devices
loadable modules are located in /lib/modules/

PPP

Mon, 03/29/1999

PPP-HOWTO
AT&T WorldNet
PPP
PPxP
setserial
そもそも内蔵モデムがどの名前のデバイスファイルとして見えるのかもわからない. tip はいってないし, モデムと直接話すには kermit なり, ppxp のなんとかモード なり, cu(?) なりとにかくなんかいれなきゃだめらしい.

/usr/bin/pon というシェルスクリプトがあるので, これにあわせる. pon に引数を与えないと /etc/ppp/peer/provider を使って call するので, とりあえず, このファイルを設定.

http://argus.riken.go.jp/~ohno/hobby-j/vaio.html をみて, /etc/pcmcia/config.opts で irq 3 を内蔵モデムにリザーブすればいい? exclude irq3 をuncommentしてみる.

http://argus.riken.go.jp/~ohno/hobby-j/vaio.html
http://qp.flatout.org/pc/vaio/
によると, /dev/ttyS1 らしい. これらをもとに pppd の設定して試してみる.

あ, ダイアルしてる! (sound が死んでるのでダイアルの音は聞こえないけど モデムの LED が点灯している, log をみても発呼してそうなのがわかる)

つながった.

# ifconfig ppp0
ppp0      Link encap:Point-to-Point Protocol  
          inet addr:165.76.222.32  P-t-P:165.76.222.11  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1514  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10 

# 
とおもったら, 気づいてみると, PCカードの ethernet が使えなくなってる. exclude irq4 のほうはcomment out しないとだめかな?

ということで, exclude irq4 を comment out して再挑戦. # pon att PC card の network は生きている. dial してみると, 2 度失敗. 3 度目で成功.

Solaris で試した時もそうだったけど, どうも pppd って うまくいく時といかない時がある. (というか最初の1, 2度が だめなことが多い) 自分の設定の問題かもしれないけれど.

内蔵 modem からのPPPでつながった状態で, ping をかけながら PCカードのコネクタを抜いてみる. ping はとぎれない. 無事, PPP が機能してるのを確認.

調子に乗って, 国際電話して US のアクセスポイントでも試してみる. これが動けば出張でも安心.

# ifconfig ppp0
ppp0      Link encap:Point-to-Point Protocol  
          inet addr:12.78.115.39  P-t-P:199.70.76.24  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1514  Metric:1
          RX packets:10 errors:1 dropped:0 overruns:0 frame:1
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10 

#

Tue, 03/30/1999

とりあえず, PPP でつなげるようになったけれど, tip に慣れている身としては modem と直接話しできないとなにかと不便. 昨日試して動かなかった PPxP に再挑戦. (ターミナル・モードのためにインストールというのも, どこかおかしな感じが しないでもない.) でも /etc/resolv.conf を切替えられたり便利らしいし, 現在利用している ppp と共存できるならいれておいて損はないはず.

http://www.dsl.gr.jp/~manabe/PPxP/ へ行き, userlink と ppxp をとってくる.

% wget http://www.dsl.gr.jp/~manabe/PPxP/packages/Linux/userlink-0.98a.tar.gz
% wget http://www.dsl.gr.jp/~manabe/PPxP/packages/Linux/ppxp-0.99030108.tar.gz
ppxp/doc/ja_JP/QuickStart.txt に従い, userlink をインストール.

# make install
# /sbin/depmod -a
ppxp/doc/ja_JP/INSTALL.txt に従い, ppxp をインストール.

Debian package としてインストール(して動かすのに失敗)した, ppxp と 衝突しないよう, /usr/local/ 以下にインストール. PPxP の page によると Linux kernel 2.2.4 では ppxpd のコンソールインターフェースにバグがあり, ppxp が起動しないということなので, ソースを1バイト(listen()の backlog を 0から1に)修正して build.

% ./configure --prefix=/usr/local --sysconfdir=/usr/local/etc
% cd src
% cp console.c console.c.dist
% vi console.c
% diff console.c.dist console.c
760c760,761
< listen(bindFd, 0);
---
> listen(bindFd, 1);
> /*listen(bindFd, 0);*/
% make
% su
# make install

abyss:/home/dxy[12:53am] which ppxp
/usr/local/bin/ppxp
abyss:/home/dxy[12:53am] ppxp
PPxP version 0.99030108
interface: ul0
ppxp> quit
abyss:/home/dxy[12:53am] ppxp serial
PPxP version 0.99030108
interface: ul0
ppxp> set line /dev/ttyS1
ppxp> terminal
at
OK
(Ctrl-\ C)
term> quit
abyss:/home/dxy[12:55am]

Netscape

いろいろいじっているうちに, 起動時 Bus Error でおちるようになる. kinput2 が動いていることがいけないらしく, kinput2 が動作していない状態で netscape を起動してみるとたしかに落ちなくなった.

ssh

Fri, 04/02/1999

ssh をインストール. 出張して, IMAP サーバからメールをとってくるのに, tcp_wrappers のアクセス・コントロール を変更する必要があり, そのために ssh で一旦 login しなければならないので, ssh は必須.

OPIE

Thu, 04/08/1999

installed OPIE

apt

Thu, 06/17/1999

/etc/apt/sources.list を更新. deb http://www.jp.debian.org/debian-jp potato-jp main contrib non-free
を先頭にもってきて, # apt-get update を実行.
# apt-get install realplayer
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
  rvplayer 
The following NEW packages will be installed:
  realplayer 
0 packages upgraded, 1 newly installed, 1 to remove and 282 not upgraded.
3 packages not fully installed or removed.
Need to get 7940b of archives. After unpacking 5488kb will be used.
Do you want to continue? [Y/n] y
Get:1 ftp://ftp.debian.or.jp unstable/contrib realplayer 6.0alpha-3 [7940b]
Fetched 7940b in 41s (191b/s)                                                  
(Reading database ... 55004 files and directories currently installed.)
Removing rvplayer ...
Selecting previously deselected package realplayer.
(Reading database ... 54994 files and directories currently installed.)
Unpacking realplayer (from .../realplayer_6.0alpha-3_i386.deb) ...
Setting up ptex-bin (2.1.8-8) ...
/usr/sbin/ptexconfig: cd: /usr/lib/texmf/web2c: No such file or directory
/usr/sbin/ptexconfig: /usr/lib/texmf/web2c/mktexupd: No such file or directory
dpkg: error processing ptex-bin (--configure):
 subprocess post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of ptex-jtex:
 ptex-jtex depends on ptex-bin; however:
  Package ptex-bin is not configured yet.
dpkg: error processing ptex-jtex (--configure):
 dependency problems - leaving unconfigured
Setting up realplayer (6.0alpha-3) ...
Error: cannot find realplayer archive in /tmp/G2player-6.0-0.99051701.i386_rpm
Visit http://www.real.com/products/player/linux.html
and download the Red Hat RPM of Real Player.

Correct the above problems, and when you are done, enter 'Y'
below. Or, enter 'N' to abort the installation.

Continue with install? [Y/n] 
http://www.real.com/products/player/linux.html で rpm をとってこいとのことなので, もってくる.
# wget http://205.158.7.38/1776630caa4354349a14/unix/G2player-6.0-0.99051701.i386_rpm
# chown root:root /tmp/G2player-6.0-0.99051701.i386_rpm

Continue with install? [Y/n] y

25764 blocks
/tmp/G2player-6.0-0.99051701.i386_rpm has been unpacked and installed.
You can now delete it, if you wish.
add deb ftp://ring.ocn.ad.jp/pub/linux/debian/debian-jp unstable main contrib non-free
# apt-get update
# apt-get install navigator-smotif-ja-46
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  navigator-smotif-46 netscape-base-46 navigator-base-ja-46 navigator-base-46
  netscape-base-ja-46 
The following NEW packages will be installed:
  navigator-smotif-46 netscape-base-46 navigator-base-ja-46
  navigator-smotif-ja-46 navigator-base-46 netscape-base-ja-46 
0 packages upgraded, 6 newly installed, 0 to remove and 289 not upgraded.
3 packages not fully installed or removed.
Need to get 3979kb of archives. After unpacking 15.8Mb will be used.
Do you want to continue? [Y/n] y
Get:1 ftp://ring.ocn.ad.jp unstable/non-free netscape-base-46 4.6-1 [465kb]
Get:2 http://www.jp.debian.org potato-jp/non-free netscape-base-ja-46 1.0 [304kb]
Get:3 ftp://ring.ocn.ad.jp unstable/non-free navigator-base-46 4.6-1 [6918b]   
Get:4 ftp://ring.ocn.ad.jp unstable/non-free navigator-smotif-46 4.6-1 [3153kb]
Get:5 http://www.jp.debian.org potato-jp/non-free navigator-base-ja-46 1.0 [25.0kb]
Get:6 http://www.jp.debian.org potato-jp/non-free navigator-smotif-ja-46 1.0 [25.3kb]
Fetched 3979kb in 7m14s (9157b/s)                                              
Selecting previously deselected package netscape-base-46.
(Reading database ... 55004 files and directories currently installed.)
Unpacking netscape-base-46 (from /var/cache/apt/archives/netscape-base-46_4.6-1_i386.deb) ...
Selecting previously deselected package netscape-base-ja-46.
Unpacking netscape-base-ja-46 (from /var/cache/apt/archives/netscape-base-ja-46_1.0_all.deb) ...
Selecting previously deselected package navigator-base-46.
Unpacking navigator-base-46 (from /var/cache/apt/archives/navigator-base-46_4.6-1_i386.deb) ...
Selecting previously deselected package navigator-base-ja-46.
Unpacking navigator-base-ja-46 (from /var/cache/apt/archives/navigator-base-ja-46_1.0_all.deb) ...
Selecting previously deselected package navigator-smotif-46.
Unpacking navigator-smotif-46 (from /var/cache/apt/archives/navigator-smotif-46_4.6-1_i386.deb) ...
Selecting previously deselected package navigator-smotif-ja-46.
Unpacking navigator-smotif-ja-46 (from /var/cache/apt/archives/navigator-smotif-ja-46_1.0_all.deb) ...
etting up netscape-base-46 (4.6-1) ...
Setting up netscape-base-ja-46 (1.0) ...
Setting up navigator-base-46 (4.6-1) ...
Setting up navigator-base-ja-46 (1.0) ...
Setting up navigator-smotif-46 (4.6-1) ...
Checking available versions of navigator, updating links in /etc/alternatives ...
(You may modify the symlinks there yourself if desired - see `man ln'.)
Updating navigator (/usr/X11R6/bin/navigator) to point to /usr/lib/netscape/46/navigator/navigator-smotif.
Checking available versions of netscape, updating links in /etc/alternatives ...
(You may modify the symlinks there yourself if desired - see `man ln'.)
Updating netscape (/usr/X11R6/bin/netscape) to point to /usr/lib/netscape/46/navigator/navigator-smotif.

Setting up navigator-smotif-ja-46 (1.0) ...
Checking available versions of jnetscape, updating links in /etc/alternatives ...
(You may modify the symlinks there yourself if desired - see `man ln'.)
Updating jnetscape (/usr/X11R6/bin/jnetscape) to point to /usr/lib/netscape/46/navigator-ja/navigator-ja-smotif.
Checking available versions of jnavigator, updating links in /etc/alternatives ...
(You may modify the symlinks there yourself if desired - see `man ln'.)
Updating jnavigator (/usr/X11R6/bin/jnavigator) to point to /usr/lib/netscape/46/navigator-ja/navigator-ja-smotif.

pciutils

07/10/1999, lspci を使ってみたくなって pciutils をいれる. apt-get install pci-utils でおわりだけど. うまくうごいた.

BIOS: ESC-F2

system component upgrade

kernel
pcmcia-cs

Devices

IrDA
USB
IEEE 1394

Links