在 CentOS 上提升 VNC 速度,核心思路是减少带宽占用 + 减轻编码/渲染压力。下面按“最有用 → 进阶”给你一套实操方案。
CentOS 自带的一般是 tigervnc-server,但很多人用的是旧配置。
yum install -y tigervnc-server
TigerVNC 在编码和压缩上明显更快。
~/.vnc/config 或启动命令推荐配置(速度优先):
geometry=1280x720
depth=16
localhost
SecurityTypes=None
或启动参数:
vncserver :1 -geometry 1280x720 -depth 16
✅ 说明:
depth=16:颜色深度减半,速度提升明显gsettings set org.gnome.desktop.interface enable-animations false
yum install -y xfce4
然后 VNC 用 Xfce:
echo "startxfce4" > ~/.vnc/xstartup
✅ Xfce + VNC = CentOS 远程最稳最快组合
ssh -L 5901:localhost:5901 user@centos
然后 VNC 连 localhost:5901
✅ 避免公网直连被限速
ssh -X user@centos
适合:
yum install -y xrdp
systemctl start xrdp
Windows 远程桌面直接连,体验接近本地。
| 场景 | 推荐 |
|---|---|
| 最稳最快 | Xfce + TigerVNC |
| 不想折腾 | xrdp |
| 轻量 | SSH -X |
| 公网 | SSH 隧道 + VNC |
如果你愿意,可以告诉我:
我可以直接给你一份可复制的配置文件。