#############################################
#以下是Ubuntu(Debian系列 )的命令
#############################################
echo "开始升级系统源"
sudo apt-get update
echo "开始安装环境管理器XDM"
sudo apt-get install xdm
sudo apt-get install xubuntu-desktop
echo "开始安装XRDP"
sudo apt-get install xrdp
sudo apt-get install vnc4server tightvncserver
echo "开始重启XRDP"
sudo service xrdp restart
#############################################
#以下是Centos(RedHat系列 )的命令
#############################################
echo "开始升级系统源"
yum update -y
echo "开始安装桌面软件环境"
yum groupinstall "X Window System" "GNOME Desktop" -y
systemctl set-default graphical.target
echo "开始安装XRDP"
yum install epel-release -y
yum install xrdp -y
echo "开始启动XRDP和检查端口"
systemctl start xrdp.service
netstat -antup | grep xrdp
echo "开始设置开机启动"
systemctl enable xrdp.service
echo "开始设置防火墙端口"
firewall-cmd --permanent --zone=public --add-port=3389/tcp
firewall-cmd --reload
#以下是Ubuntu(Debian系列 )的命令
#############################################
echo "开始升级系统源"
sudo apt-get update
echo "开始安装环境管理器XDM"
sudo apt-get install xdm
sudo apt-get install xubuntu-desktop
echo "开始安装XRDP"
sudo apt-get install xrdp
sudo apt-get install vnc4server tightvncserver
echo "开始重启XRDP"
sudo service xrdp restart
#############################################
#以下是Centos(RedHat系列 )的命令
#############################################
echo "开始升级系统源"
yum update -y
echo "开始安装桌面软件环境"
yum groupinstall "X Window System" "GNOME Desktop" -y
systemctl set-default graphical.target
echo "开始安装XRDP"
yum install epel-release -y
yum install xrdp -y
echo "开始启动XRDP和检查端口"
systemctl start xrdp.service
netstat -antup | grep xrdp
echo "开始设置开机启动"
systemctl enable xrdp.service
echo "开始设置防火墙端口"
firewall-cmd --permanent --zone=public --add-port=3389/tcp
firewall-cmd --reload
[责任编辑:jumbot]