[deepin exploration] deepin 23版安装局域网11vns
Tofloor
poster avatar
panda.B
deepin
2025-03-26 20:05
Author

在deepin V23安装局域网远程vnc。

使用系统终端安装vnc服务:
sudo apt-get install x11vnc -y

设置vnc密码(不要使用 sudo):
x11vnc -storepasswd

密码保存文件:
/home/<用户名>/.vnc/passwd

将密码文件拷贝到/etc目录

sudo cp /home/<<用户名>/.vnc/passwd /etc/x11vnc.passwd

创建 vnc服务:

sudo vim /etc/systemd/system/x11vnc.service

文件具体内容:

[Unit]
Description=Start x11vnc at startup
After=multi-user.target
[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc.passwd -rfbport 5900 -shared
[Install]
WantedBy=multi-user.target

每次修改了*.service,需要重新reload;主要这个配置systemd读取的,不是systemctl读取的,每次启动或者daemon-reload才会读取
sudo systemctl daemon-reload

设置启动
sudo systemctl enable x11vnc.service

查看状态:

sudo systemctl status x11vnc

感谢微信WHLUG官方群是大佬的技术 支持。

参考:

https://blog.csdn.net/qq_58286439/article/details/135423746

Reply Favorite View the author
All Replies
叮𪠽
deepin
2025-05-09 13:03
#1

只讲安装不讲怎么用?

Reply View the author
panda.B
deepin
2026-01-08 20:01
#2

在win客户端或者linux下客户端 远程相应的ip:port。用过远程应该知道

Reply View the author