x11vnc是鏈接到真實的X會話,相比vnc4server和tightvncserver本身建立不一樣分辨率的xserver來講,畫面延時和顯示效果應該要好一些。兩種服務都試過,我的感受x11vnc要好。ubuntu
sudo apt-get install x11vnc
sudo x11vnc -storepasswd <password> /etc/x11vnc.pass
start on login-session-start script x11vnc -display :0 -auth /var/run/lightdm/root/:0 -forever -bg -o /var/log/x11vnc.log -rfbauth /etc/x11vnc.pass -shared -noxdamage -xrandr "resize" -rfbport 5900 end script
其中,/var/run/lightdm要根據實際的桌面管理器修改,gdm或者kdm。服務器
Section "Device" Identifier "Configured Video Device" EndSection Section "Monitor" Identifier "Configured Monitor" EndSection Section "Screen" Identifier "Default Screen" Monitor "Configured Monitor" Device "Configured Video Device" SubSection "Display" Depth 24 Virtual 1680 1050 EndSubSection EndSection
[吐槽] 那些要安裝xserver-xorg-video-dummy,再用gft或cvt獲取Modeline的方法都是無論用滴!session