欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

如何在Windows上通过RDP远程连接Deepin系统

最编程 2024-07-25 13:32:22
...

之前写过一篇deepin安装easyConnect并利用rdesktop远程登录windows,这次再补一篇windows远程deepin桌面的方法。

deepin版本是截止目前最新的15.11,可以安装xrdp和x11vnc来使用windows可以远程连接。

首先开启ssh

sudo apt-get install openssh-server
#开启服务
sudo systemctl start sshd

安装x11vnc

sudo apt install x11vnc
#配置访问密码
zhaohy@zhaohy-PC:~$ x11vnc -storepasswd 
Enter VNC password: 
Verify password:    
Write password to /home/zhaohy/.vnc/passwd?  [y]/n y
Password written to: /home/zhaohy/.vnc/passwd
zhaohy@zhaohy-PC:~$ sudo cp /home/zhaohy/.vnc/passwd /etc/x11vnc.pass
zhaohy@zhaohy-PC:~$ 

配置开机启动

zhaohy@zhaohy-PC:~$ sudo vim  /lib/systemd/system/x11vnc.service

写入以下内容:

[Unit]
Description=Start x11vnc at startup.
After=multi-user.target
[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -forever -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared
[Install]
WantedBy=multi-user.target

上面设置的vnc密码和端口要记住

设置开机启动

sudo systemctl enable x11vnc.service

重启电脑,服务会自动启动,至此x11vnc配置完毕

安装xrdp

sudo apt install xrdp
#查看是否启动
sudo systemctl status xrdp
#设置开机启动
sudo systemctl enable xrdp

使用Windows 远程桌面远程deepin
用windows远程桌面程序输入ip地址


深度截图_选择区域_20200406140755.png
深度截图_选择区域_20200406140800.png
深度截图_选择区域_20200406140831.png

登录xrdp的时候选择vnc-any,ip和密码要再输入一次,这里的密码是前面配置的x11vnc的密码,端口也是x11vnc的端口,点击ok就可以成功远程deepin了


深度截图_选择区域_20200406141206.png

参考:https://blog.****.net/yidichaxiang/article/details/100577570

推荐阅读