在Debian下使用TigerVNC時遇到黑屏問題,可以嘗試以下幾種方法來解決:
vim /etc/sysconfig/vncservers
。VNCSERVERS "1:root"
VNCSERVERARGS[1]="-geometry 800x600"
這表示VNC以桌面1運行,可以啟動root的桌面??梢蕴砑悠渌挠脩?,例如:VNCSERVERS "1:root,2:user1,3:user2"
chmod 777 /root/.vnc/xstartup
。sudo apt install ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal
sudo systemctl restart vncserver@:1.service
/root/.vnc/localhost.localdomain:1.log
,以確定具體的錯誤信息。通過以上步驟,您應該能夠解決Debian上TigerVNC的黑屏問題。如果問題仍然存在,建議查看系統日志文件以獲取更多詳細信息,或者嘗試重新安裝TigerVNC服務器。