[deepin exploration] 按照论坛大佬的流程安装vnc,远程一直失败。求解答。。
Tofloor
poster avatar
159******51
deepin
2025-12-29 15:24
Author

目前在本地测试5900端口监听是正常的。 但是远端测试5900端口时,测试端口未打开。

image.png

本机查看端口5900开放,没问题。远端的ssh 的22端口是没问题的。
image.png

Reply Favorite View the author
All Replies
zijinyise
deepin
2025-12-29 16:43
#1

防火墙放开端口了吗

Reply View the author
咿呀
deepin beta test group
2025-12-29 17:27
#2
It has been deleted!
咿呀
deepin beta test group
2025-12-29 17:39
#3

我用的这个教程,你可以试试 https://cloud.tencent.com/developer/article/1626123
远程的时候:ip地址:5901
image.png

Reply View the author
大多时候吃素
deepin
2025-12-29 18:06
#4
咿呀

我用的这个教程,你可以试试 https://cloud.tencent.com/developer/article/1626123
远程的时候:ip地址:5901
image.png

推荐用这个,

Reply View the author
159******51
deepin
2025-12-30 08:58
#5
zijinyise

防火墙放开端口了吗

这个deepin25 默认是没开防火墙的吧?

Reply View the author
159******51
deepin
2025-12-30 08:58
#6
大多时候吃素

推荐用这个,

好的,我来试一下。

Reply View the author
忘记、过去
deepin
2025-12-30 19:40
#7
  1. -auth guess 可能会有问题,如果是 deepin 的默认显示服务器,直接改成 -auth /run/lightdm/root/:0 就行
  2. 截图里写了 -rfbauth /etc/x11vnc.pwd,需要启动服务前先执行 sudo x11vnc -storepasswd /etc/x11vnc.pwd 创建密码才行
  3. 建议加 -loop 参数

给个我自己的 x11vnc.service 文件作 参考,里面的 -rfbpath 路径一定要按你自己的写
(也可以从服务器版上抄,服务器版系统安装 x11vnc 就自带一份 systemd 服务,开箱即用)

[Unit]
Description=start x11vnc (Remote access)
Wants=network-online.target
After=display-manager.service network.target network-online.target syslog.target

[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth /run/lightdm/root/:0 -capslock -desktop deepin-amd64 -display :0 -forever -oa /var/log/x11vnc.log -repeat -rfbauth /etc/x11vnc/passwd -rfbport 5900 -shared -xkb
ExecStop=/usr/bin/kill -int ${MAINPID}
Restart=on-failure

[Install]
WantedBy=graphical.target
Reply View the author