xinetd経由でグラフィカルログインのVNCで日本語入力

コンソールと同じようにVNCを使いたい

    VNCはxinetd経由で
    VNC認証はしないでXDMCP接続で
    日本語も入力したい

前提

    Gnome Desktop Environment、X Window System、Japanese Support

    # yum groupinstall "Gnome Desktop Environment" "X WIndow System" "Japanese Support"

 

    # vi /etc/inittab

    id:5:initdefault:

インストール

     # yum -y install xinetd vnc vnc-server

 もしvncserver構築済みの場合はvncserverを止めて~/.vncを消しておく

    # service vncserver stop

    # cd

    # rm -rf .vnc

    # chkconfig vncserver off

xinetd経由のサービス設定

    # vi /etc/services

    以下を追加

    vnc 5900/tcp   #VNC

 
起動ファイル

    # vi /etc/xinetd.d/vnc

    service vnc
    {
    disable = no
    socket_type = stream
    wait = no
    user = nobody
    instance = 3
    server = /usr/bin/Xvnc
    server_args = -inetd -query localhost -once -geometry 1024x768 -depth 16 -SecurityTypes None
    only_from = 192.168.24.0/24 127.0.0.1
    log_on_success  += DURATION
    log_on_failure  += HOST
    }
    

XDMCPを許可

    # vi /etc/gdm/custom.conf

 

    [security]
    AllowRemoteRoot=false

    [xdmcp]
    Enable=true

    [greeter]
    IncludeAll=false
    

設定反映

    # /etc/rc.d/init.d/xinetd restart

    # reboot

 VNCクライアントからの接続
vnc-client.png

 






















接続画面
vncconnection.png




















日本語入力
日本語を入力するには、[ctrl]+[space]でSCIMAnthyを起動する

scim.png