使用 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
- Post Title: 使用 SSH 命令行开启远程桌面的方法
- Post Author: Geng Yuchao
- Post Link: https://github.com/gengyuchao/gengyuchao.github.io/2022/04/04/Ubuntu系统/命令行开启远程桌面/
- Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
1.Linux 系统内核升级后 vmware 出现的问题及解决
2.Ubuntu 上快速实现 TTS 的一种方法
3.Linux 系统蓝牙命令
4.Chrome 浏览器超链接变色问题
5.Ubuntu常用软件
6.Ubuntu常用软件