要在Ubuntu上使用VNC并兼容不同分辨率,您可以按照以下步骤操作:
sudo apt update
sudo apt install tigervnc-standalone-server tigervnc-common
vncpasswd
vncserver -localhost no -geometry 1280x720 -depth 24
-localhost no
选项允许从任何地址连接到VNC服务器,而不仅仅是localhost。cd /opt
sudo git clone https://github.com/novnc/noVNC.git
./utils/novnc_proxy --vnc localhost:5901
sudo apt-get install websockify
http://服务器IP地址:6080/vnc.html
通过以上步骤,您可以在Ubuntu上设置VNC服务器以兼容不同的分辨率,并通过网页访问实现远程桌面连接。