赞
踩
yum 源使用是阿里的:https://developer.aliyun.com/mirror/
- rm -rf /etc/yum.repos.d/*
- curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
-
首先安装桌面环境,这里安装 GNOME。
yum groupinstall "GNOME Desktop" "Graphical Administration Tools"
关于桌面环境相关命令
- # 从命令行切换到桌面环境
- startx
-
- # 获取当前启动模式
- systemctl get-default
-
- # 修改启动模式为图形化
- systemctl set-default graphical.target
-
- # 修改启动模式为命令行
- systemctl set-default multi-user.target
默认启动桌面环境后以 root 用户自动登录
- # 修改配置文件
- vi /etc/gdm/custom.conf
-
-
- # 增加如下配置
- [daemon]
- AutomaticLoginEnable=True
- AutomaticLogin=root
- # Windows 远程登录需要安装 Xrdp,需要 epel 源
- wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
- yum install -y xrdp
-
- # Xrdp 会调用 VNC,
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。