用teamviewer或anydesk连接远程debian机器时,即使在局网内也会卡成屎。原因未明,哈哈哈哈
原因
据说是xwindow没有启动,但没有启动为何又能连得上,只是很卡。算了,不懂也不深究,只说解决方法
解决方法
14.04 - Add Fake Display when No Monitor is Plugged In - Ask Ubuntu
Found a way to do it without requiring a dummy plug: Ubuntu Headless VNC VESA 800x600 Resolution Fix ~ Andy Hawkins @ June 12, 2011
Basically install a dummy driver:
sudo apt-get install xserver-xorg-video-dummy
Then write it in the /usr/share/X11/xorg.conf.d/xorg.conf (or possibly /etc/X11/xorg.conf) file (create one, if it does not exist):Section “Device”
Identifier “Configured Video Device”
Driver “dummy”
EndSectionSection “Monitor”
Identifier “Configured Monitor”
HorizSync 31.5-48.5
VertRefresh 50-70
EndSectionSection “Screen”
Identifier “Default Screen”
Monitor “Configured Monitor”
Device “Configured Video Device”
DefaultDepth 24
SubSection “Display”
Depth 24
Modes “1024x800”
EndSubSection
EndSection
还是翻译成中文吧,就是:
装一个虚拟显示器燕驱动
-
apt安装驱动
sudo apt-get install xserver-xorg-video-dummy
-
配置虚拟显示器
将以下配置写入配置文件,/usr/share/X11/xorg.conf.d/xorg.conf
或/etc/X11/xorg.conf
在下试的
/etc/X11/xorg.conf
,可以正常使用配置文件如下:
Section "Device" Identifier "Configured Video Device" Driver "dummy" EndSection Section "Monitor" Identifier "Configured Monitor" HorizSync 31.5-48.5 VertRefresh 50-70 EndSection Section "Screen" Identifier "Default Screen" Monitor "Configured Monitor" Device "Configured Video Device" DefaultDepth 24 SubSection "Display" Depth 24 Modes "1024x800" EndSubSection EndSection
-
是啥子意思呢,看不懂。。。哈哈哈哈
-
重启系统
如果正常,那么再次用teamviewer连接,就不会卡了