Centos纯命令行文本界面下如何安装桌面?

时间:2021-05-25

一.配置yum本地安装源:

su - rootmkdir /mnt/cdrommount -t iso9660 /dev/sr0 /mnt/cdromcd /etc/yum.repos.d查看目录是否有.repo后缀文件,没有则创建一个.repo文件,文件名随意。 vi local.repo [LOCAL]name=localbaseurl=file:///mnt/cdromenable=1gpgcheck=0保存退出 yum clean all二. 安装默认系统桌面(适于之前安装系统时未选中桌面安装) 1.安装桌面包 yum groupinstall “X Window System” yum groupinstall “Desktop”2.启动桌面 init 53.更改启动模式 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改成53为命令行界面5为Xwindow图形界面

4.安装桌面右键终端:

yum install nautilus-open-terminal

声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。

相关文章