2010年4月20日 星期二

Ubuntu的VNC Server(x11vnc)

因為螢幕送修,想要用Notebook遠端登入我的桌機,
本來測試的是VNC,但是不太會弄,
後來google搜尋到x11vnc,看起來蠻容易的,
就試裝了一下還蠻快地


1.安裝x11vnc
sudo apt-get install x11vnc

2.安裝xinetd
sudo apt-get install xinetd

3.將x11vnc加入xinetd
sudo gedit /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/gdm/:0.Xauth -many -bg
disable = no
}
--------------------------------------------

4.restart xinetd

sudo /etc/init.d/xinetd start

就完成了

1 則留言:

  1. 請問x11vnc 甚麼參數可以暫時停用對方的滑鼠與鍵盤功能嗎?

    回覆刪除