これまでのメッセージを抜粋しながらまとめていきます。
奥井さんの環境は次の通り
・カメラサーバーはRedHat9 xf4vncを導入しており XFree86.0.logでモジュールvnc(単一のデスクトップ共有モジュール)のロードが
確認されている。
・viewer側のPCはvine2.6r1 tightVNCのvncviewer
カメラサーバーのXを立ち上げた状態でvine2.6r1から
tightVNCのvncviewerでカメラサーバに接続すると以下の通りとなる。
On Sun, 26 Oct 2003 01:23:37 +0900
Okui wrote:
$ vncviewer 192.168.1.2:0
> VNC server supports protocol version 3.130 (viewer 3.3)
> No authentication needed
> Desktop name "alpha's x11 desktop (etower:0)"
> Connected to VNC server, using protocol version 3.3
> VNC server default format:
> 24 bits per pixel.
> Least significant byte first in each pixel.
> True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
> Using default colormap which is TrueColor. Pixel format:
> 32 bits per pixel.
> Least significant byte first in each pixel.
> True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
> Using shared memory PutImage
> vncviewer: read: Connection reset by peer
> ShmCleanup called
これに対して私の接続ログは以下の通り。
$ vncviewer 192.168.0.xxx
VNC server supports protocol version 3.130 (viewer 3.3)
No authentication needed
Desktop name "parsley's x11 desktop (hoge:0)"
Connected to VNC server, using protocol version 3.3
VNC server default format:
32 bits per pixel.
Least significant byte first in each pixel.
True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
Using default colormap which is TrueColor. Pixel format:
16 bits per pixel.
Least significant byte first in each pixel.
True colour: max red 31 green 63 blue 31, shift red 11 green 5 blue 0
Using shared memory PutImage
接続を切ると以下の行が追加されます。
ShmCleanup called
ここで違いは
> vncviewer: read: Connection reset by peer
vncviewerは同等のもの(peer)によるコネクションリセットを読み取った。
マサさんもおっしゃってますが、
vine2.6rc1にtightVNCのvncviewer以外のviewerがはいっているかもしれません。
以下のように確認してみましょう。
$ rpm -qa | grep vnc
次にvine2.6rc1のtightVNCのvncviewerからカメラサーバーに接続したとき
カメラサーバーのXFree86.0.logのログを比較します。
(xf4vncはXFree86のモジュールなのでログはXFree86.0.logにでます。)
奥井さんのXFree86.0.logのログ
>Got connection from client 192.168.1.21
>Protocol version 3.3
>Pixel format for client 192.168.1.21:
> 32 bpp, depth 24, little endian
> true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
>rfbSetTranslateFunction' server bits per pixel not 8,16 or 32
>Client 192.168.1.21 gone
>Statistics
> framebuffer updates 0, rectangles 0, bytes 0
私のXFree86.0.logのログは
(II) 26/10/2003 23:39:07
(II) 26/10/2003 23:39:07 Got connection from client 192.168.0.yyy
(II) 26/10/2003 23:39:07 Protocol version 3.3
(II) 26/10/2003 23:39:07 Pixel format for client 192.168.0.yyy:
(II) 26/10/2003 23:39:07 16 bpp, depth 16, little endian
(II) 26/10/2003 23:39:07 true colour: max r 31 g 63 b 31, shift r 11 g 5 b 0
(II) 26/10/2003 23:39:07 Using copyrect encoding for client 192.168.0.yyy
(II) 26/10/2003 23:39:07 Using tight encoding for client 192.168.0.yyy
(II) 26/10/2003 23:39:07 Using compression level 1 for client 192.168.0.yyy
(II) 26/10/2003 23:39:07 Using image quality level 6 for client 192.168.0.yyy
(II) 26/10/2003 23:39:07 Enabling X-style cursor updates for client 192.168.0.yyy
(II) 26/10/2003 23:39:07 Enabling cursor position updates for client 192.168.0.yyy
(II) 26/10/2003 23:39:07 Enabling LastRect protocol extension for client 192.168.0.yyy
もりぐちさんの言うように以下の行が怪しそうです。
>rfbSetTranslateFunction' server bits per pixel not 8,16 or 32
奥井さんのカメラサーバーは
> VNC server default format:
> 24 bits per pixel.
vine2.6r1からtightVNCのvncviewerで使おうとしているのは
> Using default colormap which is TrueColor. Pixel format:
> 32 bits per pixel.
カメラサーバーのビデオチップが 32 bits per pixel をサポートしてなかったら
vine2.6r1からtightVNCのvncviewerの要求に答えられないのじゃないかと思います。
とりあえずvncviewerの起動時のオプションで8bitを指定して試すと良いと思います。
$ vncviewer -bgr 192.168.1.2:0
もし表示できたら、vine2.6r1の/etc/X11/XF86Config-4のScreenセクションを
変更したら良いと思います。
先ずはバックアップ
# mv /etc/X11/XF86Config-4 /etc/X11/XF86Config-4.org
# cp /etc/X11/XF86Config-4.org /etc/X11/XF86Config-4
XF86Config-4の編集は自分の環境に合わせてするしかないので
以下はほんの参考程度に考えて下さい。
==================================================================
Section "Screen"
......
Subsection "Display"
Depth 8
Modes "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
EndSection
========================================================================