Dalam satu kesempatan saya mencoba menginstalasi CentOS 5.3 dan ternyata sudah beberapa kali instalasi tetap saja X Win tidak mau terinstal. Akhirnya X Win diinstalasi secara manul saja.
Cek Paket Yum yang berhubungan dengan X Windows.
[root@lab008 ~]# yum --disablerepo=\* --enablerepo=local grouplist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Group Process
Loading mirror speeds from cached hostfile
Installed Groups:
Administration Tools
Authoring and Publishing
DNS Name Server
Dialup Networking Support
Editors
GNOME Desktop Environment
GNOME Software Development
Games and Entertainment
Graphical Internet
Graphics
Java
Mail Server
Network Servers
Office/Productivity
Printing Support
Server Configuration Tools
Sound and Video
System Tools
Text-based Internet
Web Server
X Software Development
X Window System
Available Groups:
Base
Cluster Storage
Clustering
Development Libraries
Development Tools
Emacs
Engineering and Scientific
FTP Server
Java Development
KDE (K Desktop Environment)
KDE Software Development
Legacy Network Server
Legacy Software Development
Legacy Software Support
MySQL Database
News Server
OpenFabrics Enterprise Distribution
PostgreSQL Database
Ruby
Virtualization
Windows File Server
Done
[root@lab008 ~]#
Karena kebetulan X Windows sudah terinstall, maka tidak terlihat di kelompok "Available Groups". Anggap saja ada X Win belum terinstall. Untuk itu perlu di-install :
- X Windows System
- X Software Development
- GNOME Desktop Environment
- GNOME Software Development
[root@lab008 ~]# yum --disablerepo=\* --enablerepo=local groupinstall "X Windows System"
[root@lab008 ~]# yum --disablerepo=\* --enablerepo=local groupinstall "X Software Development"
[root@lab008 ~]# yum --disablerepo=\* --enablerepo=local groupinstall "GNOME Desktop Environment"
[root@lab008 ~]# yum --disablerepo=\* --enablerepo=local groupinstall "GNOME Software Development"
Setelah terinstall, lakukan setup
[root@lab008 ~]# setup
Ikuti peunjuk di layar.
Menjalankan X Windows :
[root@lab008 ~]# startx
Lain-lain :
Untuk menghapus group, misal grup "GNOME Software Development" :
[root@lab008 ~]# yum --disablerepo=\* --enablerepo=local groupremove "GNOME Software Development"
Isi setting repo yang digunakan :
[root@lab008 ~]# more /etc/yum.repos.d/CentOS-Media.repo
# CentOS-Media.repo
#
# This repo is used to mount the default locations for a CDROM / DVD on
# CentOS-5. You can use this repo and yum to install items directly off the
# DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
# yum --enablerepo=c5-media [command]
#
# or for ONLY the media repo, do this:
#
# yum --disablerepo=\* --enablerepo=c5-media [command]
#[c5-media]
#name=CentOS-$releasever - Media
#baseurl=file:///media/CentOS/
# file:///media/cdrom/
# file:///media/cdrecorder/
#gpgcheck=1
#enabled=0
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
[local]
name=CentOS-$releaser - Media
baseurl=http://192.168.30.101/repo
gpgcheck=0
enabled=0
gpgkey=file:///etc/pki/rpm-gpp/RPM-GPG-KEY-CentOS-5
[root@lab008 ~]#
No comments:
Post a Comment