使用xrdp在Windows中远程连接Linux桌面

测试环境

虚拟机软件:virtualbox,版本:6.1.14 r140239

主机:Windows 10,版本:1909(OS内部版本 18363.1082)

虚拟机:Ubuntu 18.04 LTS,桥接网卡,开启嵌套 VT-x/AMD-V,启用PAE/NX。

硬件:笔记本

参考

虚拟机开启VT-x/AMD-V

https://blog.csdn.net/holderlinzhang/article/details/104260531

 

 

一、Ubuntu server版本远程桌面

1.下载服务器版本的iso,在虚拟机中安装系统,一路默认,重启。

2.安装kde桌面:sudo apt-get install kubuntu-desktop,reboot重启

3.安装xrdp: sudo apt-get install xrdp,启动xrdp:sudo service xrdp start

4. 查看Linux虚拟机的ip:ifconfig

5.在Windows远程桌面输入Linux虚拟机的ip,登录。

参考

server中安装GUI

https://help.ubuntu.com/community/ServerGUI#Arguments_Against_a_GUI

使用xrdp和其他远程桌面的方法

https://www.makeuseof.com/tag/remote-control-linux-windows/#:~:text=To%20remote%20connect%20to%20Linux%20from%20Windows%3A%20Run,start%20using%20the%20app%20of%20your%20choice---within%20reason.

 

 

二、总结

Ubuntu server版本和desktop相比,去掉了桌面ui,预装了服务器需要的功能,例如apache、mysql、php等。考虑到以后使用Linux服务器主要是用来计算,以图形的方式远程查看计算结果,因此,除了mysql之外,别的功能暂时不需要。此外,在虚拟机上,server版本安装完桌面后,使用virtualbox的增强功能实现分辨率的更改,会出现错误:VBoxClient: Failed to get display change...因此,以后将使用Ubuntu desktop版本。

 

使用xrdp实现远程桌面的方法比较简单,但是也存在分辨率过高时桌面图标和字体太小的缺点。

 

 
posted @ 2020-10-01 13:53  划小白船  阅读(873)  评论(0)    收藏  举报