Ubuntu16.04安装x11VNC远程桌面

1. 安装x11vnc

sudo apt-get install x11vnc

2. 设置密码

x11vnc -storepasswd

3. 修改配置文件

sudu vim /lib/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 /home/<USERNAME>/.vnc/passwd -rfbport 5900 -shared

[Install]
WantedBy=multi-user.target

4.启动服务

sudo systemctl daemon-reload
sudo systemctl enable x11vnc.service
sudo systemctl start x11vnc.service
©️2020 CSDN 皮肤主题: 精致技术 设计师:CSDN官方博客 返回首页