大家好,又见面了,我是你们的朋友全栈君。
以Centos 6.5 为例演示一下如何安装桌面环境。
一、首先查看系统的运行级别以及是否安装了桌面环境
1、使用命令 runlevel 查看当前系统运行级别 ,如图所示
2、使用命令 yum grouplist | more 查看是否安装了桌面环境的组件,如图所示
二、再次从上面分析的结果看到,当前运行级别是3,而且也没有安装桌面环境的软件。
然后我们使用命令查看一下桌面有哪些桌面环境的软件,然后装显示出来的软件组件就可以了。例如:
[root@localhost ~]#
[root@localhost ~]# yum grouplist | more 查看系统已装组件和未装组件
Loaded plugins: fastestmirror
Setting up Group Process
Loading mirror speeds from cached hostfile
* base: mirrors.usc.edu
* extras:centos.mirror.ndchost.com
* updates: mirror-centos.hostingswift.com
Installed Groups:
E-mail server
Security Tools
Storage Availability Tools
iSCSI Storage Client
Available Groups:
Additional Development
Backup Client Backup Server
Base CIFS file server
Client management tools
Compatibility libraries
Console internet tools
Debugging Tools
Desktop
Desktop Debugging and Performance Tools
Desktop Platform
Desktop Platform Development
Development tools
Dial-up Networking Support
Directory Client
Directory Server
Eclipse
Emacs
FCoE Storage Client
FTP server
Fonts
General Purpose Desktop
Graphical Administration Tools
Graphics Creation Tools
Hardware monitoring utilities
High Availability
High Availability Management
Identity Management Server
Infiniband Support
Input Methods
Internet Applications
Internet Browser
Java Platform
KDE Desktop
Large Systems Performance
Legacy UNIX compatibility
Legacy X Window System compatibility
Load Balancer
Mainframe Access
Messaging Client Support
MySQL Database client
MySQL Database server
NFS file server
Network Infrastructure Server
Network Storage Server
Network file system client
Networking Tools
Office Suite and Productivity
PHP Support
Performance Tools
Perl Support PostgreSQL
Database client
PostgreSQL Database server
Print Server
Printing client
Remote Desktop Clients
Resilient Storage
Ruby Support
SNMP Support
Scientific support
Server Platform
Server Platform Development
Smart card support
System Management
System administration tools
TeX support Technical Writing
TurboGears application framework
Virtualization
Virtualization Client
Virtualization Platform
Virtualization Tools
Web Server
Web Servlet Engine
Web-Based Enterprise Management
X Window System
Available Language Groups:
Catalan Support [ca]
Chhattisgarhi Support [hne]
Chichewa Support [ny]
Chinese Support [zh]
Coptic Support [cop]
Croatian Support [hr]
Czech Support [cs]
Danish Support [da]
Dutch Support [nl]
English (UK) Support [en_GB]
Esperanto Support [eo]
Telugu Support [te]
Tetum Support [tet]
Zulu Support [zu]
Done
===========================================
从上面的软件组信息,挑选与桌面环境有关的软件组,然后安装即可,我下面选择的软件组与输入法还有字体等桌面环境需要用到的供大家参考一下。
安装桌面组件
yum groupinstall -y “Desktop” “Desktop Platform” “Desktop Platform Development” “Fonts” “General Purpose Desktop” “Graphical Administration Tools” “Graphics Creation Tools” “Input Methods” “X Window System” “Chinese Support [zh]” “Internet Browser”
后面的是安装软件过程,需要等等一阵时间。
三、安装好了桌面环境的软件,然后再修改一下系统的启动级别 为 5
编辑/etc/inittab文件,修改启级别为5,如下图,然后重新启动就可以进入桌面环境了。因为我这是远程环境的,只是运用了命令行,可以使用VNC进行桌面环境的远程。
将 id:3:initdefault: 改为 id:5:initdefault:
四、重启的过程中,设置一下桌面环境的几个参数就可以正常进入登陆界面了,谢谢。
# reboot
http://help.92cloud.com/linux/668.html
操作系统:【CentOS 6.4 x64】
安装GNOME 和 KDE图形界面,CentOS 5.x 和 CentOS 6.x 的关键命令不一样,其他的都一致。
安装GNOME图形界面(CentOS 6.x)
操作系统:【CentOS 6.4 x64】
命令: vi /etc/inittab
系统启动,默认进入文字界面(默认为3);我们要让系统自动进入图形界面(数字5),所以把3改为5。
vi操作:
注1:Putty默认无法传输图形界面,只有在“控制台”或者使用“Xmanager”,才能看到图形界面
注2:CentOS 6.0之后的版本GNOME包改为Desktop , 所以命令是【 yum groupinstall “Desktop” -y 】;
注3:CentOS 6.0之前的版本的命令是【yum groupinstall “GNOME Desktop Environment” -y】
安装KDE图形界面(CentOS 6.x)
操作系统:【CentOS 6.4 x64】
如果是要安装KDE桌面环境,而不是Gnome桌面,则使用以下命令
#yum groupinstall ‘KDE (K Desktop Environment)’ -y
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/142897.html原文链接:https://javaforall.cn