<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>GrenadePod &#187; tips</title>
	<atom:link href="http://www.grenadepod.com/tag/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.grenadepod.com</link>
	<description>Dispersing the Seeds</description>
	<lastBuildDate>Mon, 22 Feb 2010 20:30:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Sorting out YUM repositories on CentOS 5.4</title>
		<link>http://www.grenadepod.com/2009/12/21/sorting-out-yum-repositories-on-centos-5-4/</link>
		<comments>http://www.grenadepod.com/2009/12/21/sorting-out-yum-repositories-on-centos-5-4/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 19:01:45 +0000</pubDate>
		<dc:creator>pulegium</dc:creator>
				<category><![CDATA[IT Technology]]></category>
		<category><![CDATA[System administration]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[system administration]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.grenadepod.com/?p=647</guid>
		<description><![CDATA[&#8230; or any other CentOS 5.X flavour for that matter. By default, freshly installed CentOS 5.X has the following Yum repositories enabled: addons CentOS-5 - Addons base CentOS-5 - Base extras CentOS-5 - Extras updates CentOS-5 - Updates These are all defined in /etc/yum.repos.d/CentOS-Base.repo configuration file. Repositories enabled by default provide you with the core [...]


Related posts:<ol><li><a href='http://www.grenadepod.com/2009/12/26/building-python-2-6-4-rpm-for-centos-5-4/' rel='bookmark' title='Permanent Link: Building python 2.6.4 RPM for CentOS 5.4'>Building python 2.6.4 RPM for CentOS 5.4</a></li>
<li><a href='http://www.grenadepod.com/2009/12/03/building-and-running-google-chrome-os-on-virtualbox/' rel='bookmark' title='Permanent Link: Building and running Google Chrome OS on VirtualBox'>Building and running Google Chrome OS on VirtualBox</a></li>
<li><a href='http://www.grenadepod.com/2009/11/23/use-ssh-to-upgrade-wordpress-plugins-automatically/' rel='bookmark' title='Permanent Link: Use SSH to upgrade WordPress plugins automatically'>Use SSH to upgrade WordPress plugins automatically</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p id="top" />&#8230; or any other CentOS 5.X flavour for that matter.</p>
<p>By default, freshly installed CentOS 5.X has the following Yum repositories enabled:</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">addons                                             CentOS-5 - Addons
base                                               CentOS-5 - Base
extras                                             CentOS-5 - Extras
updates                                            CentOS-5 - Updates</pre></div></div>

<p>These are all defined in <em>/etc/yum.repos.d/CentOS-Base.repo</em> configuration file. Repositories enabled by default provide you with the core CentOS packages and updates for them. So you must have them enabled if you want your updates to work correctly. It is also important that these repositories take precedence over other repositories that you are going to use.</p>
<p>I will show later how to use Yum priorities package, just note that these are going to be priority one repositories</p>
<h3>Enable standard CentOS repositories</h3>
<p>There are two useful repositories defined in the configuration, but not enabled:</p>
<ul>
<li><strong>CentOS Plus</strong>. Packages in this repository contains upgraded versions of the software. If you enable this repository, after applying updates/upgrades your system will no longer be of the original version you have installed. Fear not though, all packages are tested by CentOS team and will no cause any issues. So unless you have really good reason to keep you installation at the same version level I&#8217;d recommend enabling this repository.</li>
<li><strong>Contrib</strong>. Packages supplied and maintained by CentOS users. These packages are not inspected by CentOS team, but they are not attempt to replace/modify core CentOS package set, so normally this repository should not cause any issues. Beware that some packages are not following mainstream CentOS very closely. I normally don&#8217;t have this enabled.</li>
</ul>
<p>These two repositories are going to get priority two setting. If you wish to enable them, edit default <em>/etc/yum.repos.d/CentOS-Base.repo</em> Yum repository configuration file and remove (or rather comment out) &#8220;<em>enabled=0</em>&#8221; line.</p>
<h3>Install and enable EPEL repository</h3>
<p>I must mention, that in this article I&#8217;m mostly talking about CentOS installation that is used for server environment. Therefore I&#8217;m not really interested in repositories that provide packages such as DVD or other multimedia decoders and players.</p>
<p>One of the most useful repositories for your server environment is <a href="http://fedoraproject.org/wiki/EPEL" target="_blank">EPEL repository</a> &#8211; Extra Packages for Enterprise Linux. This repository is maintained by Fedora project, and every effort is made to keep this repository as least  intrusive as possible, so in theory enabling and using this repository should not break or otherwise cause issues to your CentOS installation.</p>
<p>First of all, you need to install EPEL repository configuration files:</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">[root@centos54 ~]# rpm -ihv http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
Retrieving http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
warning: /var/tmp/rpm-xfer.RT5AzP: Header V3 DSA signature: NOKEY, key ID 217521f6
Preparing...                ########################################### [100%]
   1:epel-release           ########################################### [100%]
[root@centos54 ~]#</pre></div></div>

<p>This provides you with two configuration files: base and testing. Don&#8217;t worry about testing one and leave it disabled.</p>
<p>Main configuration comes with three sections:</p>
<ul>
<li><strong>Base packages</strong>. This is enabled by default.</li>
<li><strong>Debug packages</strong>. Disabled, and no need to enable unless you want to use debug packages.</li>
<li><strong>Source packages</strong>. Disabled. Enable only if you want to be able to install source RPMs from EPEL. Useful if you want to rebuild them to your specific needs. I&#8217;d recommend to leave it disabled and enable on yum command line only when you really need to install source RPMs.</li>
</ul>
<p>These should be getting priority 3 setting.</p>
<h3>Set priorities for Yum repositories</h3>
<p>So if you enabled repositories from the previous section and installed EPEL repository configuration, here&#8217;s what you should see in you repositories list:</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">addons                             CentOS-5 - Addons
base                               CentOS-5 - Base
centosplus                         CentOS-5 - Plus
epel                               Extra Packages for Enterprise Linux 5 - i386
extras                             CentOS-5 - Extras
updates                            CentOS-5 - Updates</pre></div></div>

<p>Now I need to set priorities for each repository. Install Yum priorities package:</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;"># yum install yum-priorities</pre></div></div>

<p>Make sure new plugin is enabled:</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">[root@centos54 ~]# cat /etc/yum/pluginconf.d/priorities.conf
[main]
enabled = 1
[root@centos54 ~]#</pre></div></div>

<p>Now you can set priorities for each repository. It&#8217;s done by adding &#8220;priority=X&#8221; for each repository section in repository configuration files. Here&#8217;s what I ended up with:</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">[base]
...
priority=1
&nbsp;
[updates]
...
priority=1
&nbsp;
[addons]
...
priority=1
&nbsp;
[extras]
...
priority=1
&nbsp;
[centosplus]
...
priority=2
&nbsp;
[contrib]
...
priority=2
&nbsp;
[epel]
...
priority=3</pre></div></div>

<p>Now you should be good to do upgrades and install packages as you see fit for your system.</p>


<p>Related posts:<ol><li><a href='http://www.grenadepod.com/2009/12/26/building-python-2-6-4-rpm-for-centos-5-4/' rel='bookmark' title='Permanent Link: Building python 2.6.4 RPM for CentOS 5.4'>Building python 2.6.4 RPM for CentOS 5.4</a></li>
<li><a href='http://www.grenadepod.com/2009/12/03/building-and-running-google-chrome-os-on-virtualbox/' rel='bookmark' title='Permanent Link: Building and running Google Chrome OS on VirtualBox'>Building and running Google Chrome OS on VirtualBox</a></li>
<li><a href='http://www.grenadepod.com/2009/11/23/use-ssh-to-upgrade-wordpress-plugins-automatically/' rel='bookmark' title='Permanent Link: Use SSH to upgrade WordPress plugins automatically'>Use SSH to upgrade WordPress plugins automatically</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.grenadepod.com/2009/12/21/sorting-out-yum-repositories-on-centos-5-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing menu order</title>
		<link>http://www.grenadepod.com/2009/11/10/changing-menu-order/</link>
		<comments>http://www.grenadepod.com/2009/11/10/changing-menu-order/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 11:02:40 +0000</pubDate>
		<dc:creator>pulegium</dc:creator>
				<category><![CDATA[Publishing]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.grenadepod.com/?p=311</guid>
		<description><![CDATA[Ran into one issue while adding new menu item to the main menu. So I created &#8220;IT Technology&#8221; category, which I want to appear on the main menu. Since I&#8217;m using link categories to display these link, I just added new link. And it worked. Kind of: Yes, it did add the link, but not [...]


Related posts:<ol><li><a href='http://www.grenadepod.com/2009/11/04/top-level-menu-in-arras-theme/' rel='bookmark' title='Permanent Link: Top level menu in Arras theme'>Top level menu in Arras theme</a></li>
<li><a href='http://www.grenadepod.com/2009/11/06/essential-wordpress-plugins/' rel='bookmark' title='Permanent Link: Essential WordPress plugins'>Essential WordPress plugins</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p id="top" />Ran into one issue while adding new menu item to the main menu. So I created &#8220;IT Technology&#8221; category, which I want to appear on the main menu. Since I&#8217;m using link categories to display these link, I just added new link. And it worked. Kind of:</p>
<p><img class="aligncenter size-full wp-image-312" title="link-category-before" src="http://www.grenadepod.com/wp-content/uploads/2009/11/link-category-before.png" alt="link-category-before" width="561" height="270" /></p>
<p>Yes, it did add the link, but not where I wanted it to add. I want &#8216;About&#8217; link to be at the end of the list. Always. However it seems that there&#8217;s no way of changing the order in the link category, and the links appear based on the link IDs. So the only way to resolve this, is to change link_id of the &#8216;About&#8217; link to something big, let&#8217;s say 10&#8217;000. I&#8217;m never going to have that many links , so 10&#8217;000 sounds like a sound choice.</p>
<p>Go to your database and select all links:</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">+---------+---------------------------------------------------+
| link_id | link_url                                          |
+---------+---------------------------------------------------+
...
|       8 | http://www.grenadepod.com/category/news/          |
|       9 | http://www.grenadepod.com/about/                  |
|      10 | http://www.grenadepod.com/category/it-technology/ |
+---------+---------------------------------------------------+
10 rows in set (0.00 sec)</pre></div></div>

<p>Now change the link_id:</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">mysql&amp;gt; update wp_links set link_id=10000 where link_id=9;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1  Changed: 1  Warnings: 0
&nbsp;
mysql&amp;gt; select link_id, link_url from wp_links;
+---------+---------------------------------------------------+
| link_id | link_url                                          |
+---------+---------------------------------------------------+
...
|       8 | http://www.grenadepod.com/category/news/          |
|      10 | http://www.grenadepod.com/category/it-technology/ |
|   10000 | http://www.grenadepod.com/about/                  |
+---------+---------------------------------------------------+
&nbsp;
10 rows in set (0.00 sec)</pre></div></div>

<p>All done, all fixed and here&#8217;s how the menu looks now:</p>
<p><img class="aligncenter size-full wp-image-313" title="link-category-after" src="http://www.grenadepod.com/wp-content/uploads/2009/11/link-category-after.png" alt="link-category-after" width="546" height="271" /></p>


<p>Related posts:<ol><li><a href='http://www.grenadepod.com/2009/11/04/top-level-menu-in-arras-theme/' rel='bookmark' title='Permanent Link: Top level menu in Arras theme'>Top level menu in Arras theme</a></li>
<li><a href='http://www.grenadepod.com/2009/11/06/essential-wordpress-plugins/' rel='bookmark' title='Permanent Link: Essential WordPress plugins'>Essential WordPress plugins</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.grenadepod.com/2009/11/10/changing-menu-order/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
