windows使用rdp远程连接deepin桌面

windows RDP远程连接 linux桌面,使用CentOS,Ubuntu,Deepin 桌面版本,原理都一样。

首先开启ssh


sudo apt-get install openssh-server

#然后开启服务

sudo systemctl start sshd

然后安装VNC Server,在之前https://blog.csdn.net/yidichaxiang/article/details/100533237,测试Ubuntu 18.04 开启 VNC Server 中,已经测试了不同形式,这里就简单直接的安装x11vnc

deepin@deepin-PC:~$ sudo apt install x11vnc

配置访问密码


deepin@deepin-PC:~$ x11vnc -storepasswd 
Enter VNC password: 
Verify password:    
Write password to /home/deepin/.vnc/passwd?  [y]/n y
Password written to: /home/deepin/.vnc/passwd
deepin@deepin-PC:~$ sudo cp /home/deepin/.vnc/passwd /etc/x11vnc.pass
deepin@deepin-PC:~$

配置开机启动

deepin@deepin-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 -auth guess -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared
[Install]
WantedBy=multi-user.target

设置开机启动


deepin@deepin-PC:~$ sudo systemctl enable x11vnc.service 
Created symlink /etc/systemd/system/multi-user.target.wants/x11vnc.service → /lib/systemd/system/x11vnc.service.
deepin@deepin-PC:~$

重启电脑,测试开机启动 VNC Server

至此VNC Server 配置成功。安装 xrdp



deepin@deepin-PC:~$ sudo apt install xrdp 
 
deepin@deepin-PC:~$ sudo systemctl status xrdp
● xrdp.service - xrdp daemon
   Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2019-09-06 13:48:34 CST; 24s ago
     Docs: man:xrdp(8)
 
deepin@deepin-PC:~$ sudo systemctl enable xrdp
Synchronizing state of xrdp.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable xrdp
deepin@deepin-PC:~$

使用Windows 远程桌面远程deepin

这里需要特别注意的是 选择VNC-any协议,IP地址需要再输入一次,端口是vncServer的端口和密码,这里xrdp只是做了协议转发

至此 Windows 通过远程桌面访问 deepin已经配置完成了,现在可以通过rdp和vnc都能访问到deepin,多个连接时就是共享桌面,操作是可以相互影响和可见的。

9 条回复

  1. 百约不得姐说道:

    为啥我又来,因为这里百看不厌!

  2. 吊炸天说道:

    大神!受我一拜!

  3. kitty23说道:

    第一次看,感觉还挺新鲜!

  4. 藏金网说道:

    学习了,我认真看看!

  5. 948说道:

    炎热夏天,闲来无事,拜读博客,消暑解闷!

  6. 藏金网说道:

    生活不止眼前的苟且,还有博客和远方的田野!

  7. 爱就爱啦说道:

    从百度点进来的,学习学习,呵呵!

  8. 闺房独自乐说道:

    炎热的夏天,看到这样的博客瞬间清凉了许多!

  9. 罗拉电影网说道:

    到你的博客走一趟,如同阳光洒在我脸上,心里暖洋洋!

发表评论

邮箱地址不会被公开。