A small resolution of VNC may lead to a "confirmation key or Cancel key" cannot be clicked during graphical interface operation, and high resolution may cause the low resolution client display not to display.
Solution 1: Use the geometry parameter to adjust
[email protected] ~]# man Vncserver
Visible, the default resolution is 1024x768, we can use this parameter to adjust the resolution
I have a native screen resolution of 1366x768, so I need to adjust the resolution to 1366x768
[Email protected] ~]# Vncserver-geometry 1366x768
Using "192.168.124.161:10" to login to VNC at this time will get a 1366x768 operation window.
Workaround Two: Modify the configuration file Vncservers
[Email protected] ~]# vi/etc/sysconfig/vncservers
We can adjust the last line to read as follows:
vncserverargs[9]= "-geometry 1366x768-nolisten TCP"
After restarting Vncserver, using "192.168.124.161:9" login VNC will get a 1366x768 operation window
Summarize
Workaround 1: The operation is simple, the impact is small, because the method is to start the VNC process to provide services, but it is easy to leave too many VNC processes in the system;
Workaround 2: By adjusting the default resolution of VNC, the implementation is centralized, but there is a problem that the client cannot use because of high resolution adjustment.
Reference: http://blog.itpub.net/519536/viewspace-668621/
Modify the VNC resolution size