RHEL7单独安装图形X11

RHEL7 默认是最小化安装(Minimal Install),没有图形界面,
我们应该选择Server with GUI。若已错过此步骤,我们采用以下方式补充安装GUI界面。

# yum group list

Available Environment Groups:
   Minimal Install
   Compute Node
   Infrastructure Server
   File and Print Server
   Basic Web Server
   Virtualization Host
   Server with GUI
   GNOME Desktop
   KDE Plasma Workspaces
   Development and Creative Workstation
Available Groups:
   Compatibility Libraries
   Console Internet Tools
   Development Tools
   Graphical Administration Tools
   Legacy UNIX Compatibility
   Scientific Support
   Security Tools
   Smart Card Support
   System Administration Tools
   System Management

# yum -y groupinstall "Server with GUI"

启动X11图形界面

# startx

修改默认运行级别/目标

# ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target   //图形模式
# ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target   //图形模式

使用systemctl来切换

# systemctl -f enable multi-user.target   //文字模式
# systemctl -f enable graphical.target   //图形模式

 

转载于:https://www.cnblogs.com/edward2013/p/5082653.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值