xinetdでVNCを起動する
xinetdでVNCを起動するるようにすることで、VNCでログイン画面を開きログイン出来るようにする
- yum install vncserver で、vncserver をインストール
- /etc/services に、下記の行を追加する
vncserver 5900/tcp
- 新たに、テキストファイル /etc/xinetd.d/vnc を作成
service vncserver { socket_type = stream port = 5900 protocol = tcp nice = 10 wait = no user = nobody server = /usr/bin/Xvnc server_args = -inetd -query localhost -once -geometry 1280x1024 -depth 16 -securitytypes=none log_on_success += DURATION USERID log_on_failure += USERID disable = no }
- /etc/gdm/custom.conf で、下記の行を追加
[xdmcp] Enable=true [security] DisallowTCP=false ← これはなくても良いかも AllowRemoteRoot=true
- service xinetd restart で、xinetdを再起動。ダメな場合、サーバを再起動