优化 Ubuntu 上 VNC 的性能,可以从服务端配置、客户端设置、网络环境、桌面环境选择几个方面入手。下面按实用程度给你一套系统建议。
不同 VNC 实现性能差异很大:
✅ 推荐
❌ 不推荐
vino(GNOME 自带,延迟高)Ubuntu 默认 GNOME 很吃资源。
sudo apt install xfce4 xfce4-goodies
或
sudo apt install mate-desktop-environment
startxfce4
~/.vnc/configsession=xfce
geometry=1280x720
depth=24
localhost=no
xfconf-query -c xfwm4 -p /general/use_compositing -s false
ssh -L 5901:localhost:5901 user@ubuntu_ip
然后连接 localhost:5901
systemctl disable bluetooth
systemctl disable cups
sudo sysctl vm.swappiness=10
tmpfs /tmp tmpfs defaults,size=1G 0 0
如果 VNC 仍不满足:
如果你愿意,可以告诉我:
我可以直接给你一套针对性配置。