#topicpath ---- //ここにコンテンツを記述します。 *VNCのインストール [#c516c56f] http://www.realvnc.com/download.html よりダウンロード(2003/06現在の最新版は3.3.7です) *VNCの起動、停止 [#x11dcf52] **起動 [#h4cb85cf] [xxxxxx@localhost xxxxxx]$ vncserver :1 (1はディスプレイNo. port番号は580nになる) You will require a password to access your desktops. Password: Verify: New 'X' desktop is localhost.localdomain:1 Creating default startup script /home/xxxxxx/.vnc/xstartup Starting applications specified in /home/xxxxxx/.vnc/xstartup Log file is /home/xxxxxx/.vnc/localhost.localdomain:1.log **停止 [#x8e9a8e2] vncserver -kill :1 (1はディスプレイNo) *VNCをサービス起動する。 [#yeb86d8c] ***/etc/xinetd.d/vnc の作成 [#m4f2d9a6] 内容: service vnc { disable = no flags = REUSE socket_type = stream wait = no user = xxxxxx <- サービスを起動するUNIXのユーザID server = /usr/bin/Xvnc server_args = -inetd -query 192.168.10.3 -once -geometry 1024x768 -depth 16 log_on_success += DURATION USERID log_on_failure += USERID } ここで server_args = -inetd -query 192.168.10.3 -once -geometry 1024x768 -depth 16 の 192.168.10.3 はVNCServerを起動するノードです。 ***/etc/servicesの編集 [#c187c79b] /etc/services に vnc 5901/tcp を追加(vncは/etc/xinetd.d/vncのファイル名) <-これ重要! ***/etc/X11/gdm/gdm.conf の編集 [#v246dcc4] [xdmcp] Enable=true (↑GUI(ログイン)からできる。) これだけではだめな場合 [security] KillInitClients=false とした。 最後に再起動すればOK! ***xinetdの再起動 [#abd85ee0] /sbin/service xinetd restart ***Fedora7では [#u95339c5] Fedora7ではもとから入ってるVNCをxinetd経由でそのまま使いました。Fedora7では /etc/X11/gdm/gdm.conf ではなく、 /etc/gdm/custom.conf の編集が必要でした。 /etc/gdm/custom.conf に [daemon] GtkModulesList= AddGtkModules=false RemoteGreeter=/usr/libexec/gdmgreeter [security] AllowRemoteRoot=true [xdmcp] Enable=true などを追加しないとダメみたいです。 あ、そもそもFedora7にはデフォルトでxinetdが入らないので yum install xinetd しておきます。 http://shirata.ddo.jp/papa/blog/2007/05/fedora7vnc.html **関連リンク [#o300c53e] http://www.atmarkit.co.jp/flinux/rensai/linuxtips/877fc5devncserver.html ---- この記事は #vote(おもしろかった[7],そうでもない[1]) -VNC4.0からは http://www.atmarkit.co.jp/bbs/phpBB/viewtopic.php?forum=10&topic=15774 をやらないとダメみたい。。。。 -- [[きの]] &new{2004-11-04 (木) 19:18:41}; -server_args に --PasswordFile=/etc/vnc_passwd を追加 -- [[きの]] &new{2005-06-16 16:35:28 (木)}; - vncpasswd /etc/vnc_passwd を実行 -- [[きの]] &new{2005-06-16 16:35:43 (木)}; - chmod 644 /etc/vnc_passwd -- [[きの]] &new{2005-06-16 16:42:16 (木)}; -Fedora Core5でやったところ /etc/X11/gdm/gdm.confがない。。とりあえず、GUIのログイン設定画面で、リモートログインを無効から有効へ、あとセキュリティをTCP接続の禁止をOFFにしました。 -- [[きの]] &new{2006-04-02 12:14:29 (日)}; -新しく作ったサーバでどうしてもVNCが動かねー。半日調べて、ランレベルを3にしているからだとわかりました。テキストモードにしておくと、ダメなんですねえ。 -- [[きの]] &new{2006-05-10 22:14:12 (水)}; #topicpath SIZE(10){現在のアクセス:&counter;}