Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
经验:安装x11vnc的正确方法
Apps Section
3677
views ·
2
replies ·
To
floor
Go
billdp
deepin
2020-04-18 03:41
Author
本帖最后由 billdp 于 2020-4-17 19:45 编辑
一、安装x11vnc1 sudo apt install x11vnc
二、配置vnc
1、x11vnc -storepasswd xxxxxx //设置连接密码为xxxxxx(密码加密以后保存在~/.vnc/passwd文件中)
2、将密码文件复制到/etc目录:
sudo cp ~/.vnc/passwd /etc/x11vnc.pass
3、创建vnc服务
sudo vi /etc/systemd/system/x11vnc.service
内容如下:
[Unit]
Description="x11vnc"
Requires=display-manager.service
After=display-manager.service
[Service]
ExecStart=/usr/bin/x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth guess -rfbauth /etc/x11vnc.pass
ExecStop=/usr/bin/killall x11vnc
Restart=on-failure
Restart-sec=2
[Install]
WantedBy=multi-user.target
4、加入自动启动
sudo systemctl enable x11vnc
5、重启
6、现在可以用你的vnc客户端试着连接一下了。
参考文章:
https://wiki.wh-redirect.deepin.cn/mediawiki/index.php?title=%E9%85%8D%E7%BD%AEx11vnc
https://www.jianshu.com/p/d21e7ab67d3f
Reply
Like 0
Favorite
View the author
All Replies
清汤白菜郭先生
deepin
2020-04-18 08:49
#1
可行,感谢。解决了很久未解的问题。
Reply
Like 0
View the author
huayuprophet
deepin
2021-09-03 02:42
#2
谢谢,终于解决了
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
WiFi Drivers
Popular Events
More
一、安装x11vnc1 sudo apt install x11vnc
二、配置vnc
1、x11vnc -storepasswd xxxxxx //设置连接密码为xxxxxx(密码加密以后保存在~/.vnc/passwd文件中)
2、将密码文件复制到/etc目录:
sudo cp ~/.vnc/passwd /etc/x11vnc.pass
3、创建vnc服务
4、加入自动启动 sudo systemctl enable x11vnc
5、重启
6、现在可以用你的vnc客户端试着连接一下了。
参考文章:
https://wiki.wh-redirect.deepin.cn/mediawiki/index.php?title=%E9%85%8D%E7%BD%AEx11vnchttps://www.jianshu.com/p/d21e7ab67d3f