{"id":6720,"date":"2017-05-08T16:49:50","date_gmt":"2017-05-08T08:49:50","guid":{"rendered":"http:\/\/rmohan.com\/?p=6720"},"modified":"2017-05-08T16:49:50","modified_gmt":"2017-05-08T08:49:50","slug":"centos-rhel-7-how-to-install-gui","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6720","title":{"rendered":"CentOS \/ RHEL 7 : How to Install GUI"},"content":{"rendered":"<p>For new installation of RHEL 7 ,GUI doesn\u2019t come with default installation.<br \/>\n If you do not click on the \u201cSoftware Selection\u201d link and pick \u201cserver with GUI\u201d then there will be no GUI after reboot, only \u201cBase Environment \u201d will be installed.<\/p>\n<p>To enable GUI after system installation, you can use following method.<\/p>\n<p>Installing the environment group \u201cServer with GUI\u201d<\/p>\n<p>1. Check the available environment groups :<\/p>\n<p>]# yum grouplist<br \/>\nLoaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager<br \/>\nThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.<br \/>\nThere is no installed groups file.<br \/>\nMaybe run: yum groups mark convert (see man yum)<br \/>\nAvailable Environment Groups:<br \/>\n   Minimal Install<br \/>\n   Infrastructure Server<br \/>\n   File and Print Server<br \/>\n   Basic Web Server<br \/>\n   Virtualization Host<br \/>\n   Server with GUI<br \/>\nAvailable Groups:<br \/>\n   Compatibility Libraries<br \/>\n   Console Internet Tools<br \/>\n   Development Tools<br \/>\n   Graphical Administration Tools<br \/>\n   Legacy UNIX Compatibility<br \/>\n   Scientific Support<br \/>\n   Security Tools<br \/>\n   Smart Card Support<br \/>\n   System Administration Tools<br \/>\n   System Management<br \/>\nDone<br \/>\n2. Execute the following to install the environments for GUI.<\/p>\n<p># yum groupinstall &#8220;Server with GUI&#8221;<br \/>\n&#8230;&#8230;.<br \/>\nTransaction Summary<br \/>\n====================================================<br \/>\nInstall  199 Packages (+464 Dependent packages)<br \/>\nUpgrade               (   8 Dependent packages)<\/p>\n<p>Total download size: 523 M<br \/>\nIs this ok [y\/d\/N]:<br \/>\nThe above will install the GUI in RHEL 7, which by default get installed to text mode.<\/p>\n<p>3. Enable GUI on system start up. In RHEL 7, systemd uses \u2018targets\u2019 instead of runlevels. The file \/etc\/inittab is no more used to change run levels. Issue the following command to enable the GUI on system start.<\/p>\n<p>To set a default target :<\/p>\n<p># systemctl set-default graphical.target<br \/>\nTo change the current target to graphical without reboot :<\/p>\n<p># systemctl start graphical.target<br \/>\nVerify the default target :<\/p>\n<p># systemctl get-default<br \/>\ngraphical.target<br \/>\n4. Reboot the machine to verify that it boots into GUI directly.<\/p>\n<p># systemctl reboot<br \/>\nInstalling core GNOME packages<\/p>\n<p>\u201cServer with GUI\u201d installs the default GUI which is GNOME. In case if you want to install only core GNOME packages use :<\/p>\n<p># yum groupinstall &#8216;X Window System&#8217; &#8216;GNOME&#8217;<br \/>\n&#8230;.<br \/>\nTransaction Summary<br \/>\n===========================================================<br \/>\nInstall  104 Packages (+427 Dependent packages)<br \/>\nUpgrade               (   8 Dependent packages)<\/p>\n<p>Total download size: 318 M<br \/>\nIs this ok [y\/d\/N]:y<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For new installation of RHEL 7 ,GUI doesn\u2019t come with default installation. If you do not click on the \u201cSoftware Selection\u201d link and pick \u201cserver with GUI\u201d then there will be no GUI after reboot, only \u201cBase Environment \u201d will be installed.<\/p>\n<p>To enable GUI after system installation, you can use following method.<\/p>\n<p>Installing the [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6720"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6720"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6720\/revisions"}],"predecessor-version":[{"id":6721,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6720\/revisions\/6721"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}