CentOS 下 VNC 卡顿通常是网络、桌面环境、VNC 配置或系统资源导致的。下面按「最常见 → 进阶」给你一套排查和解决思路。
很多卡顿是因为用了 GNOME / KDE。
✅ 推荐:
yum groupinstall "Xfce" -y
vim ~/.vnc/xstartup
改为:
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
exec startxfce4
然后重启 VNC:
vncserver -kill :1
vncserver :1
连接时使用参数(TigerVNC / RealVNC):
1280x720例如:
vncviewer IP:1 -Depth 16 -QualityLevel 5
编辑:
vim /etc/systemd/system/vncserver@.service
或手动启动:
vncserver :1 -geometry 1280x720 -depth 16 -localhost no
如果是 GNOME:
gsettings set org.gnome.desktop.interface enable-animations false
XFCE:
ping 服务器IP
如果延迟 > 50ms,VNC 会明显卡。
✅ 建议:
ssh -L 5901:localhost:5901 user@server
然后本地连 localhost:5901
systemctl disable bluetooth
systemctl disable cups
释放 CPU / 内存。
比默认 VNC 更流畅
非图形操作最稳
yum install xrdp -y
systemctl start xrdp
Windows 远程桌面通常比 VNC 流畅
如果你愿意,可以告诉我:
我可以直接给你一套可复制的配置。