# 安装需要的库,大概要十几分钟
sudo apt-get install xinit gdm3 ubuntu-desktop -y

#允许密码登录
sudo vi /etc/ssh/sshd_config 
# 修改PasswordAuthentication no 为 PasswordAuthentication yes

# 设置密码,必须sudo
sudo passwd ubuntu

#安装远程桌面
sudo apt-get install xfce4 xrdp xfce4-goodies -y

# 更新
echo xfce4-session > ~/.xsession
sudo cp /home/ubuntu/.xsession /etc/skel

#查看 /etc/xrdp/xrdp.ini port是多少,一般是3389
最后修改:2021 年 08 月 25 日 11 : 59 AM
如果觉得我的文章对你有用,请随意赞赏