FrontPage  ページ一覧  検索  更新履歴  RSS  ログイン

gdmをログイン画面に使用したVNCサーバの設定

inetdを利用したVNCサーバの起動

/etc/servicesに以下の記述を追加

vnc-800x600x8           5950/tcp
vnc-800x600x16          5951/tcp
vnc-1024x768x8          5952/tcp
vnc-1024x768x16         5953/tcp

/etc/inetd.confに以下の記述を追加

vnc-800x600x8   stream  tcp     nowait  nobody  /usr/bin/Xvnc \
 Xvnc -inetd -query localhost -once -geometry 800x600 \
 -depth 8 -cc 3 -SecurityTypes None
vnc-800x600x16  stream  tcp     nowait  nobody  /usr/bin/Xvnc \
 Xvnc -inetd -query localhost -once -geometry 800x600 \
 -depth 16 -SecurityTypes None
vnc-1024x768x8  stream  tcp     nowait  nobody  /usr/bin/Xvnc \
 Xvnc -inetd -query localhost -once -geometry 1024x768 \
 -depth 8 -cc 3 -SecurityTypes None
vnc-1024x768x16 stream  tcp     nowait  nobody  /usr/bin/Xvnc \
 Xvnc -inetd -query localhost -once -geometry 1024x768 \
 -depth 16 -SecurityTypes None

xinetdの場合はこんな感じで/etc/xinetd.d/vncを作成

service vnc-1024x768x16
{
        disable = no
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/bin/Xvnc
        server_args     = -inetd -query localhost -once -geometry 1024x768 -depth 16 -SecurityTypes None
        log_on_failure  += USERID
}

XDMCPの有効化

/etc/X11/gdm/gdm.confを編集してXDMCPを有効に

[xdmcp]
#Enable=false
Enable=true

以下の記述でGreeterの見栄えが良くなる

[daemon]
#RemoteGreeter=/usr/bin/gdmlogin
RemoteGreeter=/usr/bin/gdmgreeter

使用方法

vnc-800x600x16を利用するには以下のコマンドで行なう。

$ vncviewer vnchost:51

直接ポート番号を指定する場合は以下の通り。

$ vncviewer vnchost::5951

Xを起動しないでgdmだけ起動

runlevel 5 でマシンを起動させると、gdmが動作するがXも起動してしまう。サーバによってはXは必要ないが、gdmだけをXDMCPサーバとして動作させたいという場合もあるだろう。そういった場合では、以下のオプションでgdmを実行する。

# gdm --no-console
更新日時:2005/06/08 19:32:18
キーワード:
参照:[FrontPage]