要在Ubuntu上使用TigerVNC调整分辨率,您可以按照以下步骤操作:
sudo apt update
sudo apt install tigervnc-standalone-server tigervnc-common
vncpasswd
vncserver -localhost no -geometry 1280x720 -depth 24
-localhost no
选项允许从任何地址连接到VNC服务器,而不仅仅是localhost。/etc/systemd/system/vncserver@:1.service
文件,在[Service]
部分添加Environment
参数来设置分辨率:[Service]
Environment=DISPLAY=:1
Environment=XKL_XMODMAP_DISABLE=1
sudo systemctl daemon-reload
sudo systemctl restart vncserver@:1
请注意,具体的命令和步骤可能会因Ubuntu版本和VNC服务器的配置有所不同。如果遇到问题,请参考相关文档或寻求社区帮助。