您现在的位置是:网站首页>列表内容
Centos纯命令行文本界面下如何安装桌面?_RedHat/Centos_操作系统_
2024-02-27 14:41:08 205人已围观
简介 Centos纯命令行文本界面下如何安装桌面?_RedHat/Centos_操作系统_
一.配置yum本地安装源:
su - root mkdir /mnt/cdrom mount -t iso9660 /dev/sr0 /mnt/cdrom cd /etc/yum.repos.d
查看目录是否有.repo后缀文件,没有则创建一个.repo文件,文件名随意。
vi local.repo [LOCAL] name=local baseurl=file:///mnt/cdrom enable=1 gpgcheck=0
保存退出
yum clean all
二. 安装默认系统桌面(适于之前安装系统时未选中桌面安装)
1.安装桌面包
yum groupinstall “X Window System” yum groupinstall “Desktop”
2.启动桌面
init 5
3.更改启动模式
vi /etc/inittab # System initialization is started by /etc/init/rcS.conf # # Individual runlevels are started by /etc/init/rc.conf # # Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf # # Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf, # with configuration in /etc/sysconfig/init. # # For information on how to write upstart event handlers, or how # upstart works, see init(5), init(8), and initctl(8). # # Default runlevel. The runlevels used are: # 0 - halt (Do NOT set initdefault to this) # 1 - Single user mode # 2 - Multiuser, without NFS (The same as 3, if you do not have networking) # 3 - Full multiuser mode # 4 - unused # 5 - X11 # 6 - reboot (Do NOT set initdefault to this) #
id:3:initdefault:
将上面红字部分的 3改成5 3为命令行界面 5为X window图形界面
4.安装桌面右键终端:
yum install nautilus-open-terminal
点击排行
- 去吧皮卡丘六星宠物综合实力详细分析_手机游戏_游戏攻略_
- 全民水浒金榜题名第20期答案 全民水浒金榜题名答案推荐_手机游戏_游戏攻略_
- 天天酷跑10月15日开启首充双倍送钻活动 充值即可获得额外福利介绍_手机游戏_游戏攻略_
- 天天飞车火力大乱斗模式技能升级方法详解_手机游戏_游戏攻略_
- 小学生联盟手游上架ios 开服活动介绍_手机游戏_游戏攻略_
- 主公莫慌孙策特性技能及实用分析_手机游戏_游戏攻略_
- 英雄之剑大剑士PVE刷图与PVP竞技场加点攻略分享_手机游戏_游戏攻略_
- 全民小镇10.17-20日登录奖励 小巴哥/流火幸运蛋上线介绍_手机游戏_游戏攻略_
- 太极熊猫符文系统详解 符文选择搭配攻略_手机游戏_游戏攻略_
本栏推荐
-
去吧皮卡丘六星宠物综合实力详细分析_手机游戏_游戏攻略_
-
全民水浒金榜题名第20期答案 全民水浒金榜题名答案推荐_手机游戏_游戏攻略_
-
天天酷跑10月15日开启首充双倍送钻活动 充值即可获得额外福利介绍_手机游戏_游戏攻略_
-
天天飞车火力大乱斗模式技能升级方法详解_手机游戏_游戏攻略_
-
小学生联盟手游上架ios 开服活动介绍_手机游戏_游戏攻略_
-
主公莫慌孙策特性技能及实用分析_手机游戏_游戏攻略_
-
英雄之剑大剑士PVE刷图与PVP竞技场加点攻略分享_手机游戏_游戏攻略_
-
全民小镇10.17-20日登录奖励 小巴哥/流火幸运蛋上线介绍_手机游戏_游戏攻略_
-
太极熊猫符文系统详解 符文选择搭配攻略_手机游戏_游戏攻略_