最小限のCentoOSインストールを行った場合は、いつでもグループパッケージの一部としてグラフィカルユーザーインターフェイスをインストールできます。まず、システムで利用可能なすべてのパッケージグループを一覧表示します。
# yum group list Loaded plugins: fastestmirror There is no installed groups file. Maybe run: yum groups mark convert (see man yum) Loading mirror speeds from cached hostfile * base: centos.mirror.crucial.com.au * extras: centos.mirror.crucial.com.au * updates: centos.mirror.crucial.com.au Available environment groups: Minimal Install Compute Node Infrastructure Server File and Print Server Basic Web Server Virtualization Host Server with GUI GNOME Desktop KDE Plasma Workspaces Development and Creative Workstation Available Groups: Compatibility Libraries Console Internet Tools Development Tools Graphical Administration Tools Legacy UNIX Compatibility Scientific Support Security Tools Smart Card Support System Administration Tools System Management Done
ここから、インストールするパッケージグループを選択できます。この例では、Server with GUI
に関心があります。 またはGNOME Desktop
。両方のServer with GUI
の違い およびGNOME Desktop
パッケージグループは、Server with GUI
です。 GNOME GUIに沿って、いくつかの追加のサーバーパッケージもインストールします。各パッケージグループの実行に関する詳細情報を取得します:
# yum groupinfo "Server with GUI" AND # yum groupinfo "GNOME Desktop"
決定に応じて、選択したパッケージグループをインストールします。例:
# yum groupinstall 'GNOME Desktop'
上記のコマンドは、GnomeデスクトップGUIに必要なすべての必要なパッケージをインストールします。インストールが完了したら、残っている最後のステップは、システムターゲットまたはランレベルをランレベル3
から変更することです。 ランレベル5
。これにより、GNOMEGUIを直接起動できるようになります。
# systemctl enable graphical.target --force rm '/etc/systemd/system/default.target' ln -s '/usr/lib/systemd/system/graphical.target' '/etc/systemd/system/default.target'
CentoOSシステムを再起動する準備が整いました:
# reboot
これで、CentOSがデフォルトでGNOMEGUIで起動するはずです。