{"id":1964,"date":"2013-03-22T17:07:58","date_gmt":"2013-03-22T09:07:58","guid":{"rendered":"http:\/\/rmohan.com\/?p=1964"},"modified":"2013-03-22T17:59:53","modified_gmt":"2013-03-22T09:59:53","slug":"centos-minimal-install","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=1964","title":{"rendered":"CentOS Minimal Install"},"content":{"rendered":"<h1>CentOS 6<\/h1>\n<p>In this section, the GNOME desktop will be added to a new server running CentOS 6.2 (x86_64) after performing a &#8220;Minimal&#8221; install.<\/p>\n<h2>Install Desktop Packages<\/h2>\n<table>\n<tbody>\n<tr>\n<td>\n<pre><br \/># <b>yum -y groupinstall \"Desktop\" \"Desktop Platform\" \"X Window System\" \"Fonts\"<\/b><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>You can also install the following optional GUI packages.<\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<pre><br \/># <b>yum -y groupinstall \"Graphical Administration Tools\"<\/b>\r\n\r\n# <b>yum -y groupinstall \"General Purpose Desktop\"<\/b>\r\n\r\n# <b>yum -y groupinstall \"Office Suite and Productivity\"<\/b>\r\n\r\n# <b>yum -y groupinstall \"Graphics Creation Tools\"<\/b><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Finally, if you wanted to add the K Desktop Environment (KDE).<\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<pre><br \/># <b>yum -y groupinstall kde-desktop<\/b><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>When using\u00a0<tt>yum groupinstall<\/tt>, the\u00a0<tt>groupinstall<\/tt>\u00a0option only installs\u00a0<i>default<\/i>\u00a0and\u00a0<i>mandatory<\/i>\u00a0packages from the group. There are times when you also want to include\u00a0<i>optional<\/i>\u00a0packages within a group. I have not figured out (yet) how to control which package types to install (group package &#8220;policy&#8221;) from the command-line using\u00a0<tt>yum<\/tt>. The only method I know of to also include<i>optional<\/i>\u00a0packages is to edit the\u00a0<tt>\/etc\/yum.conf<\/tt>\u00a0file and add the following to the\u00a0<tt>[main]<\/tt>\u00a0section:<\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<pre><br \/>group_package_types=default mandatory <span style=\"color: #0000ff;\">optional<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The reason I mention this is because I wanted to install &#8220;Terminal emulator for the X Window System&#8221; (<tt>xterm<\/tt>) which is under the group &#8220;Legacy X Window System compatibility&#8221;.\u00a0<tt>xterm<\/tt>\u00a0happens to be an optional package and did not get installed until I added<tt>group_package_types=default mandatory optional<\/tt>\u00a0to\u00a0<tt>\/etc\/yum.conf<\/tt>.<\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<pre><br \/># <b>yum -y groupinstall \"Legacy X Window System compatibility\"<\/b><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>I did find a plug-in for\u00a0<tt>yum<\/tt>\u00a0that allows users to specify which package types within a package group should be installed when using\u00a0<tt>yum groupinstall<\/tt>.<\/p>\n<p><a href=\"http:\/\/projects.robinbowes.com\/yum-grouppackagetypes\/trac\" target=\"_blank\">http:\/\/projects.robinbowes.com\/yum-grouppackagetypes\/trac<\/a><\/p>\n<h2>Enable GNOME<\/h2>\n<p>Since the server was previously running on CLI mode, we need to change the initialization process for the machine to boot up in GUI mode.<\/p>\n<p>Open\u00a0<tt>\/etc\/inittab<\/tt>\u00a0using a text editor and change following line:<\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<pre><br \/>id:3:initdefault:<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>To:<\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<pre><br \/>id:<span style=\"color: #0000ff;\">5<\/span>:initdefault:<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>After making the change, reboot the machine.<\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<pre><br \/># <b>init 6<\/b><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Note that you can switch from GUI to CLI mode manually by using following method:<\/p>\n<blockquote>\n<p><b>GUI to CLI<\/b>:\u00a0<tt>Ctrl + Alt + F6<\/tt><br \/><b>CLI to GUI<\/b>:\u00a0<tt>Ctrl + Alt + F1<\/tt><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>CentOS 6 <\/p>\n<p>In this section, the GNOME desktop will be added to a new server running CentOS 6.2 (x86_64) after performing a &#8220;Minimal&#8221; install.<\/p>\n<p> Install Desktop Packages # yum -y groupinstall &#8220;Desktop&#8221; &#8220;Desktop Platform&#8221; &#8220;X Window System&#8221; &#8220;Fonts&#8221; <\/p>\n<p>You can also install the following optional GUI packages.<\/p>\n<p> # yum -y groupinstall &#8220;Graphical Administration Tools&#8221; # [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1964"}],"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=1964"}],"version-history":[{"count":2,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1964\/revisions"}],"predecessor-version":[{"id":1966,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1964\/revisions\/1966"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1964"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1964"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}