阅读量:551
以下是Debian下TigerVNC故障排查指南:
服务无法启动
- 检查是否安装,用
sudo apt install tigervnc-standalone-server tigervnc-common安装。 - 查看服务状态,用
sudo systemctl status vncserver@:端口号.service,若未运行则手动启动。 - 检查配置文件
/etc/systemd/system/vncserver@:端口号.service,确保User和Group设置正确。
连接失败
- 确认客户端使用的IP和端口正确,端口通常是5900加显示号。
- 检查防火墙,用
sudo ufw allow 端口号/tcp开放端口。 - 查看监听端口,用
netstat -lntp | grep Xvnc。
认证问题
- 用
vncpasswd正确设置密码。
图形显示异常
- 检查
~/.vnc/xstartup文件是否存在且有执行权限,内容是否正确。
性能问题
- 网络不佳时,降低分辨率或禁用图形加速,在配置文件中添加相关参数。