Linux 紧密的VNC服务器和Gucamole

Linux 紧密的VNC服务器和Gucamole,linux,ubuntu,vnc,vnc-server,tightvnc,Linux,Ubuntu,Vnc,Vnc Server,Tightvnc,我有一个VM,在其中我使用以下链接安装了VNC服务器(TightVNC): 它已成功安装,我可以看到端口5901正在运行 /etc/tigervnc$ netstat -tulpn (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) Active Internet connections (only

我有一个VM,在其中我使用以下链接安装了VNC服务器(TightVNC):

它已成功安装,我可以看到端口5901正在运行

/etc/tigervnc$ netstat -tulpn
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 127.0.0.1:5901          0.0.0.0:*               LISTEN      16460/Xtigervnc     
tcp        0      0 127.0.0.1:5902          0.0.0.0:*               LISTEN      16183/Xtigervnc     
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      -                   
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -                   
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      -                   
tcp6       0      0 ::1:5901                :::*                    LISTEN      16460/Xtigervnc     
tcp6       0      0 ::1:5902                :::*                    LISTEN      16183/Xtigervnc     
tcp6       0      0 :::22                   :::*                    LISTEN      -                   
tcp6       0      0 ::1:631                 :::*                    LISTEN      -                   
udp        0      0 0.0.0.0:36618           0.0.0.0:*                           -                   
udp    29184      0 127.0.0.53:53           0.0.0.0:*                           -                   
udp        0      0 0.0.0.0:68              0.0.0.0:*                           -                   
udp        0      0 0.0.0.0:631             0.0.0.0:*                           -                   
udp     7680      0 0.0.0.0:5353            0.0.0.0:*                           -                   
udp6       0      0 :::37372                :::*                                -                   
udp6   20736      0 :::5353                 :::*  
现在,从我的本地机器上,我尝试从VM(根据链接)将端口绑定到我的本地机器上

在本地机器中,我可以看到端口绑定到5901

/etc/guacamole$ fuser 5901/tcp
5901/tcp:            22049
<>现在,当我尝试使用127.0.0.1:5901的VNC连接时,它会对VM的密码进行提示,只显示空白页。

有人能帮我吗

谢谢,
Hari

编辑~/.vnc/xstartup文件,如下所示:

#!/bin/sh

startxfce4 &
我也有同样的问题,这就解决了

作为参考,我从这里得到:

您还可以尝试终止并重新启动VNC服务器

kill$(pgrep Xvnc) vncserver

您正在尝试将VNC从本地计算机连接到本地计算机吗?我假设只是为了测试正确吗

如果您没有被拒绝,至少它应该与服务对话。

是关于编程的问题,而不是关于使用或配置Linux及其应用程序的问题。或者更适合回答这样的问题。
#!/bin/sh

startxfce4 &