Linux Mint 16 PetraでVNC接続に”x11vnc”と”xinetd”を使う方法。

# apt-get install x11vnc xinetd
# exit
$ x11vnc -storepasswd(パスワードをセットする)
# su
# vi /etc/xinetd.d/x11vnc

service x11vnc
{
port = 5900
type = UNLISTED
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/bin/x11vnc
server_args = -inetd -o /var/log/x11vnc.log -display :0 -auth /var/lib/mdm/:0.Xauth -rfbauth /home/USERDIR/.vnc/passwd -forever
disable = no
}

# vi /etc/services

x11vnc          5900/tcp                        # VNC server(最下行に付け足す)

# /etc/init.d/xinetd restart