学校服务器的显示器被拔了, 重启后VNC远程桌面的分辨率只有320x200了. 因为VNC协议无法改变服务器显示输出, 故只能改变服务器的默认显示输出.
Linux Mint的图形化系统X11的配置文件在/etc/X11/xorg.conf, 在其中加入:
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 2560 1440
EndSubSection
EndSection
将上述内容中的Virtual 2560 1440替换为目标分辨率, 保存, 重启服务器即可发现显示器的输出正常了, VNC远程桌面也能正常使用.
注意: 后续使用中如果服务器连接多个显示器, 会发现除主显示器外其它显示器均不能正常使用, 此时只要删除/etc/X11/xorg.conf中上述内容, 重启后即可正常使用其余显示器.
本博客所有文章除特别声明外,均采用 CC BY-SA 3.0协议 。转载请注明出处!