【问题标题】:Tight VNC server and GucamoleTightvnc 服务器和鳄梨酱
【发布时间】:2019-04-19 01:29:11
【问题描述】:

我有一个虚拟机,我使用以下链接在其中安装了 VNC 服务器 (TightVNC):https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-18-04

安装成功,可以看到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 将端口绑定到我的本地(根据链接 https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-18-04

ssh -L 5901:127.0.0.1:5901 -C -N -l test 172.1.1.1

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

/etc/guacamole$ fuser 5901/tcp
5901/tcp:            22049

现在,当我尝试使用 127.0.0.1:5901 进行 VNC 连接时,它会提示输入 VM 的密码,并且只显示空白页。

有人可以帮我解决这个问题吗?

谢谢, 哈里

【问题讨论】:

标签: linux ubuntu vnc vnc-server tightvnc


【解决方案1】:

编辑您的 ~/.vnc/xstartup 文件:

#!/bin/sh

startxfce4 &

我遇到了同样的问题,这解决了它

作为参考,我从这里得到它: https://www.raspberrypi.org/forums/viewtopic.php?t=52557

【讨论】:

    【解决方案2】:

    您也可以尝试杀死并重新启动您的 VNC 服务器

    杀死 $(pgrep Xvnc) vnc服务器

    您是否正在尝试从本地机器到本地机器的 VNC?我假设只是为了测试正确?

    如果您没有收到拒绝,至少它应该与服务交谈。

    【讨论】:

      猜你喜欢
      • 2018-01-01
      • 2017-04-13
      • 2017-01-15
      • 2011-03-18
      • 2017-03-28
      • 2019-04-04
      • 2018-03-05
      • 2015-12-01
      • 2021-09-28
      相关资源
      最近更新 更多