使用 SSH 命令行开启远程桌面的方法

使用 SSH 命令行开启远程桌面的方法

纯命令方法1

dconf write /org/gnome/desktop/remote-access/prompt-enabled false
dconf write /org/gnome/desktop/remote-access/enabled true
dconf write /org/gnome/desktop/remote-access/authentication-methods “[‘vnc’]”
dconf write /org/gnome/desktop/remote-access/vnc-password ‘“MTIzNDU2”‘ # “MTIzNDU2” 是 base64 编码的 123456

systemctl –user start vino-server

纯命令方法2

dbus-launch gsettings set org.gnome.Vino prompt-enabled false
dbus-launch gsettings set org.gnome.Vino authentication-methods “[‘vnc’]”
dbus-launch gsettings set org.gnome.Vino vnc-password $(echo -n “mypassword”|base64)

使用 SSH -X 打开控制界面

vino-preferences

设置开机启动 vino

edit the /etc/gdm3/custom.conf file making the following lines in [daemon] section look as this:

AutomaticLoginEnable=true
AutomaticLogin=yourusername

Comments

:D 一言句子获取中...

Loading...Wait a Minute!