之前寫過一篇deepin安裝easyConnect并利用rdesktop遠(yuǎn)程登錄windows,這次再補(bǔ)一篇windows遠(yuǎn)程deepin桌面的方法漾月。
deepin版本是截止目前最新的15.11病梢,可以安裝xrdp和x11vnc來使用windows可以遠(yuǎn)程連接。
首先開啟ssh
sudo apt-get install openssh-server
#開啟服務(wù)
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:~$
配置開機(jī)啟動(dòng)
zhaohy@zhaohy-PC:~$ sudo vim /lib/systemd/system/x11vnc.service
寫入以下內(nèi)容:
[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
上面設(shè)置的vnc密碼和端口要記住
設(shè)置開機(jī)啟動(dòng)
sudo systemctl enable x11vnc.service
重啟電腦栅屏,服務(wù)會(huì)自動(dòng)啟動(dòng)飘千,至此x11vnc配置完畢
安裝xrdp
sudo apt install xrdp
#查看是否啟動(dòng)
sudo systemctl status xrdp
#設(shè)置開機(jī)啟動(dòng)
sudo systemctl enable xrdp
使用Windows 遠(yuǎn)程桌面遠(yuǎn)程deepin
用windows遠(yuǎn)程桌面程序輸入ip地址
登錄xrdp的時(shí)候選擇vnc-any堂鲜,ip和密碼要再輸入一次,這里的密碼是前面配置的x11vnc的密碼护奈,端口也是x11vnc的端口缔莲,點(diǎn)擊ok就可以成功遠(yuǎn)程deepin了
參考:https://blog.csdn.net/yidichaxiang/article/details/100577570