Skip to content

Instantly share code, notes, and snippets.

@qiaohaijun
Last active July 13, 2018 09:34
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save qiaohaijun/7d5396bd194ba56adbc8baedc62b1dd7 to your computer and use it in GitHub Desktop.
Save qiaohaijun/7d5396bd194ba56adbc8baedc62b1dd7 to your computer and use it in GitHub Desktop.

需要修改一下/etc/yum.repos.d/epel-7.repo

gpgcheck=0
enabled=1

这两项修改一下

安装服务软件

yum install xrdp -y
yum install tigervnc-server -y

安装 mate desktop

yum groupinstall "MATE Desktop" -y

配置 mate-session启动脚本

文件: /etc/xrdp/startwm.sh

cd /etc/xrdp/; mv startwm.sh startwm.sh.1

增加新的内容

#!/bin/sh
if [ -r /etc/default/locale ]; then
  . /etc/default/locale
  export LANG LANGUAGE
fi

# default (= ubuntu)
#. /etc/X11/Xsession

# unity 2d
#echo "gnome-session --session=ubuntu-2d" > ~/.xsession
#. /etc/X11/Xsession

# mate session

mate-session
exit(0)

现在可以启动了

配置xrdp 自启动

chkconfig xrdp on

启动服务

service xrdp start

ok!

@qiaohaijun
Copy link
Author

this is a great work

@qiaohaijun
Copy link
Author

最要写成一键部署的功能

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment