vncserver 安装并重启后无法连接到 vnc

Joh*_*sen 7 vnc

我使用了这个网站上的说明:

https://www.howtoforge.com/how-to-install-vnc-server-on-ubuntu-14.04

在我的 Ubuntu 14.04 上安装 VNC 服务器。它工作得很好。我可以从 Windows 使用 VNC Viewer 5.1.1 登录。今天我做了 apt-get upgrade 并重新启动。重新启动机器后,我无法使用 VNC(连接被拒绝 10061)或在控制台上登录。syslog 显示读取 ~/.ICEauthority 有问题,所以我 chown 了,现在可以登录控制台,但 VNC 仍然给出“连接被拒绝”。

当我尝试从 shell 启动 vncviewer 时,我得到:

/home/jjen009/.vnc 的类型或访问方式错误。

jj

Wol*_*ahl 7

There is a known bug https://bugs.launchpad.net/ubuntu/+source/vnc4/+bug/1200451 This means that even a super use can't start vnc if the relevant configuration files are owned by a regular user. Check with ls -la . on the home directory e.g. in my case:

ls -la .
drwxr-xr-x  2 wf   users      4096 Nov 10 10:57 .vnc
Run Code Online (Sandbox Code Playgroud)

when I went out of super use mode i could run:

vncserver
Run Code Online (Sandbox Code Playgroud)

to get:

New 'X' desktop is capri:1

Starting applications specified in /home/wf/.vnc/xstartup
Log file is /home/wf/.vnc/capri:1.log
Run Code Online (Sandbox Code Playgroud)