Redhat78安装MATE桌面

Linux系统 0 631 chenq2942 收藏
MATE 桌面环境是 GNOME 2 的延续,这意味着它需要的资源更少,更传统。
很多用户在 CentOS7 上也用 Mate 来替代 GNOME3。
安装必要软件包
添加epel源  cat <>/etc/yum.repos.d/rhel.repo
[epel7-dvd] name=epel7-dvd baseurl=http://xxxxxxxx/redhat78/epel7 gpgcheck=0 enabled=1
EOF
yum install -y lightdm
yum groupinstall "X Window system" -y
yum groupinstall "MATE" -y
2. 配置 lightdm
vi /etc/lightdm/lightdm.conf
[Seat:*]
xserver-allow-tcp=true
xserver-command=X -listen tcp
greeter-hide-users=true              
greeter-show-manual-login=true     #允许手动登录      
[XDMCPServer]
enabled=true
port=177
3. 禁用本机防火墙和 Selinux
sed -ri /^SELINUX=/'s/(SELINUX=)./\1disabled/' /etc/selinux/config
#sed -i -e 's/^SELINUX=./SELINUX=disabled/g' /etc/selinux/config
停止防火墙
systemctl stop firewalld && systemctl disable firewalld
4. 将 Display Manager 切换为 lightdm
禁用 gdm(系统最小化安装就没这一步)
systemctl stop gdm && systemctl disable gdm
启动 lightdm
systemctl start lightdm && systemctl enable lightdm
5. 删除其他桌面描述文件(主要针对 xmanager、etx 远程设置)
cd /usr/share/xsessions/ && ls
mkdir bak && mv gnome* bak && ls
back mate.desktop
修改以上配置,windows 下通过 xmanager 连接 centos7 才能远程
6. 配置默认 target
systemctl set-default graphical.target
systemctl get-default
systemctl isolate graphical.target
windows 下通过 xmanager 连接
7.开始低延迟
yum install tuned
systemctl start tuned
systemctl enable tuned
tuned-adm profile latency-performance
tuned-adm active
验证 latency-performance 已经生效
8.重置mate桌面环境:
如果想重置Mate桌面,删除dconf文件夹即可:rm -r ~/.config/dconf


相关推荐:

网友留言:

您需要 登录账户 后才能发表评论

我要评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。
验证码