第一步安装vnc
sudo apt update
sudo apt install vino
第二步,设置vnc服务自行启动
mkdir -p ~/.config/autostart
cp /usr/share/applications/vino-server.desktop ~/.config/autostart
第三步配置vnc服务
gsettings set org.gnome.Vino prompt-enabled false # 禁止弹窗
gsettings set org.gnome.Vino require-encryption false # 禁止加密
# 以上两个也可以在路径下自行勾选org->gnome->desktop->remote-access
gsettings set org.gnome.Vino authentication-methods "['vnc']"
gsettings set org.gnome.Vino vnc-password $(echo -n '123456'|base64) # 设置密码为123456
网友评论