我是靠谱客的博主 哭泣店员,这篇文章主要介绍Centos纯命令行文本界面下如何安装桌面?,现在分享给大家,希望可以做个参考。

一.配置yum本地安装源:

复制代码
1
2
3
4
su - root mkdir /mnt/cdrom mount -t iso9660 /dev/sr0 /mnt/cdrom cd /etc/yum.repos.d
查看目录是否有.repo后缀文件,没有则创建一个.repo文件,文件名随意。
复制代码
1
2
3
4
5
6
7
vi local.repo [LOCAL] name=local baseurl=file:///mnt/cdrom enable=1 gpgcheck=0
保存退出
复制代码
1
yum clean all
二. 安装默认系统桌面(适于之前安装系统时未选中桌面安装)
1.安装桌面包
复制代码
1
2
yum groupinstall “X Window System” yum groupinstall “Desktop”
2.启动桌面
复制代码
1
init 5
3.更改启动模式
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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.安装桌面右键终端: 

复制代码
1
yum install nautilus-open-terminal

最后

以上就是哭泣店员最近收集整理的关于Centos纯命令行文本界面下如何安装桌面?的全部内容,更多相关Centos纯命令行文本界面下如何安装桌面内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(184)

评论列表共有 0 条评论

立即
投稿
返回
顶部