Install Remote Desktop (xRDP) 桌面环境 for Ubuntu Server 18.04

方法1:

小内存VPS快速安装LXDE桌面环境 (以下命令适用于 Debian Ubuntu)



完整安装:

apt-get update -y

apt-get install lxde -y

apt-get install xrdp -y

精简安装

apt-get update -y

apt-get install xorg -y

apt-get install lxde-core -y

apt-get install xrdp -y

接下来打开你家电脑的Windows远程桌面连接工具,输入VPS的ip,按下回车,就OK啦~

方法2:


sudo passwd ubuntu


sudo apt-get autoremove ubuntu-desktop

# 卸载原始桌面

sudo apt-get update

# 更新以下软件源列表(只是将/etc/apt/sources.list里面软件源更新为最新,软件并没有升级) # 升级软件的命令是 sudo apt-get upgrade # 关于update和upgrade的区别参考博文: # 该步骤耗时2分钟左右,根据网络不通可能时间会更长一点


sudo apt-get install ubuntu-desktop

# 重新下载安装桌面,由于网络下载较慢,该步骤耗时较长,大约花费30分钟左右

 

sudo apt-get install xrdp
sudo systemctl enable xrdp
sudo systemctl restart xrdp

Install the xfce environment:

sudo apt-get install xfce4 xfce4-terminal

 

Open RDP port to be able to connect remotely:

sudo ufw allow 3389/tcp

 

Reboot the xRDP server for the changes to take effect:

sudo /etc/init.d/xrdp restart


 

发表评论

您的电子邮箱地址不会被公开。 必填项已用 * 标注

Scroll to Top