盡管Linux管理員可能不需要圖形用戶界面,但從Microsoft Windows轉(zhuǎn)過(guò)來(lái)的用戶需要。為此,Linux需要一個(gè)GUI,讓Microsoft Windows用戶更習(xí)慣。
Red Hat Linux提供了GNOME,即GNU網(wǎng)絡(luò)對(duì)象模型環(huán)境。 GNOME不僅提供高性能GUI,而且提供辦公組件之類的高性能軟件,Microsoft用戶要為此支付幾百美元。當(dāng)然,Linux也沒(méi)有許可證費(fèi)。這使許多公司與政府開(kāi)始將 Microsoft Windows換成Linux。
GNOME提供了GUI界面、控制小程序和幾個(gè)重要應(yīng)用程序。其中許多組件:可以替換只有Microsoft Windows中才運(yùn)行的昂貴的第三方應(yīng)用程序。本章簡(jiǎn)要介紹GNOME桌面。
此外,紅帽子的GNOME版本可以使用KDE應(yīng)用程序與實(shí)用程序,許多KDE工具可以直接從GNOME主菜單按鈕訪問(wèn)。
圖形化桌面環(huán)境提供給用戶3種主要工具來(lái)使用系統(tǒng)上的應(yīng)用程序,即面板圖標(biāo)、桌面圖標(biāo)和菜單系統(tǒng)。
橫貫桌面底部的長(zhǎng)條叫做面板(panel),面板是圖形化界面的核心部分。面板上包含了應(yīng)用程序啟動(dòng)器、用于通知警告圖標(biāo)的通知區(qū)域,以及叫做小程序(applet)的小型應(yīng)用程序。他們?cè)试S用戶控制音量、切換工作區(qū)并顯示系統(tǒng)狀態(tài)。
標(biāo)準(zhǔn)GNOME桌面具有當(dāng)今所有GUI操作系統(tǒng)特性,包括面板、主菜單按鈕和圖標(biāo)??梢愿鶕?jù)需要定制每個(gè)組件,甚至可以對(duì)GNOME安裝配置標(biāo)準(zhǔn)界面??梢酝ㄟ^(guò)GNOME控制中心控制和定制GNOME的外觀。首次在Red Hat Linux中啟動(dòng)GUI時(shí),可以看到桌面。
基本GNOME界面很簡(jiǎn)單,如圖所示,可以導(dǎo)航到主目錄(用戶名的主目錄),Start Here按鈕可以打開(kāi)小程序、實(shí)用程序和應(yīng)用程序,還有一個(gè)Trash文件夾。這三者都使用Nautilus,這是個(gè)“Explorer”式的圖形shell,用于管理文件、GNOME配置和Linux系統(tǒng)中相關(guān)的任何GUI工具。
下面來(lái)介紹一下基本的安裝方法:
一:檢查系統(tǒng)的運(yùn)行級(jí)別以及是否安裝了桌面環(huán)境
[root@localhost ~]# runlevel
N 3
[root@localhost ~]# yum grouplist | more
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-
manager to register.
Setting up Group Process
Installed Groups:
Additional Development
Base
Console internet tools
Directory Client
E-mail server
Fonts
Graphical Administration Tools
Hardware monitoring utilities
Java Platform
Large Systems Performance
Legacy UNIX compatibility
Legacy X Window System compatibility
NFS file server
Network file system client
Networking Tools
PHP Support
Performance Tools
Perl Support
Scientific support
Security Tools
Server Platform
System Management
System administration tools
TurboGears application framework
Web Server
也可以使用下面命令驗(yàn)證是否安裝桌面環(huán)境組件
[root@localhost ~]# ps -A | egrep -i "gnome|kde|mate|cinnamon|lx|xfce|jwm"
[root@localhost ~]#
二:安裝桌面環(huán)境相關(guān)軟件組
使用yum grouplist 可以看到有Desktop、Desktop Platfrom、X Window System、Graphics Creation Tools等桌面環(huán)境有關(guān)的軟件組件可以安裝
[root@localhost ~]# yum groupinstall "Desktop" "Desktop Platform"
[root@localhost ~]# yum groupinstall "X Window System" "Graphics Creation Tools"
三:修改系統(tǒng)的啟動(dòng)級(jí)別為 5
[root@localhost ~]# vi /etc/inittab
# inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# 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:
將系統(tǒng)的啟動(dòng)級(jí)別從3修改為5,然后重啟系統(tǒng)后,重啟過(guò)后出現(xiàn)下面界面,按照提示操作即可。操作完成后重啟系統(tǒng)即OK。