<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>Sohail Riaz, Linux and Open Source Blog</title>
	
	<link>http://www.sohailriaz.com</link>
	<description>Sohail Riaz, Linux and Open Source Blog</description>
	<lastBuildDate>Fri, 26 Apr 2013 12:30:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/sohailriaz" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="sohailriaz" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">sohailriaz</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Node Health Check Script in Cluster</title>
		<link>http://www.sohailriaz.com/node-health-check-script-in-cluster/</link>
		<comments>http://www.sohailriaz.com/node-health-check-script-in-cluster/#comments</comments>
		<pubDate>Fri, 26 Apr 2013 12:12:53 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[Clusters]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming / Scripting]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=470</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/node-health-check-script-in-cluster/"><img src="http://www.sohailriaz.com/wp-content/uploads/2013/04/cluster-150x150.jpg" title="" alt="" /></a>
Node health (hardware/software) is very critical in cluster environment. Whether you run a lot of web servers in load balancer or having compute node in High Performance Computing setup, each node is critical which is been used for any type of work. It has to be healthy to run processes we need to run. This ]]></description>
				<content:encoded><![CDATA[<p>Node health (hardware/software) is very critical in cluster environment. Whether you run a lot of web servers in load balancer or having compute node in High Performance Computing setup, each node is critical which is been used for any type of work. It has to be healthy to run processes we need to run. This script created to check node health before using as a compute node or any service in load balancer. If all checks run fine then node will be mark good and will available to run in production.<span id="more-470"></span></p>
<h3>1. License</h3>
<p>GPL. You can add/edit/delete script to fit your need. Please do share your edit to enhance the script.</p>
<h3>2. Functions</h3>
<p>Script is created using functions. Every check is based on function, so to perform any check or not is depends on whether you call the function or not. Just make to call function or not in the Main Section of the script and it will run as per your need. Even you can add/edit/delete as per your need to make changes in script.</p>
<h3>3. Checks</h3>
<p>Following checks are made as per my need.</p>
<ul>
<li><span style="line-height: 13px;">Loadavg</span></li>
<li>Memory / Swap</li>
<li>CPU</li>
<li>Ethernet Speed</li>
<li>Infiniband</li>
<li>NFS Mounts</li>
<li>NIS Server</li>
<li>MCELog (Machine Check Event, hardware error reporting)</li>
</ul>
<p>You can create your own checks and add to the script for enhance checking.</p>
<h3>4. Script</h3>
<p>Here it is</p><pre class="crayon-plain-tag">#!/bin/bash
#
# Script: Node Health Script 
# Created By: Sohail Riaz (sohaileo@gmail.com) www.sohailriaz.com
# Created On: 9th April 2013
# Detail: To Check Single Node Health. 
# HowTo Run: chmod +x nodecheck.sh; ./nodecheck.sh
# Checks: loadavg, memory, cpu, ehternet, infiniband, infiniband ipath test, cpu test, nfs mounts, nis, mcelog
# Functions: You can load/unload any function you need to run or not to run.
# License: GPL
#

## LoadAvg Function
loadavg() {
LoadAvg=`uptime | awk -F "load average:" '{print $2}' | cut -f 1 -d,`
echo "LoadAvg = $LoadAvg" &gt;&gt; $Report
}

## Memory Function
memory() {
TOTAL_MEM=`grep "MemTotal:" /proc/meminfo | awk '{msum+=($2/1024)/1024} END {printf "%.0f",msum}'`
FREE_MEM=`grep "MemFree:" /proc/meminfo | awk '{mfree+=($2/1024)/1024} END {printf "%.0f",mfree}'`
TOTAL_SWAP=`grep "SwapTotal:" /proc/meminfo | awk '{ssum+=($2/1024)/1024} END {printf "%.0f",ssum}'`
FREE_SWAP=`grep "SwapFree:" /proc/meminfo | awk '{sfree+=($2/1024)/1024} END {printf "%.0f",sfree}'`

echo "TotalMemory = $TOTAL_MEM GB ($FREE_MEM GB Free)" &gt;&gt; $Report
echo "TotalSwap = $TOTAL_SWAP GB ($FREE_SWAP GB Free)" &gt;&gt; $Report
}

## CPU Function
cpu() {
PROCESSOR=`grep processor /proc/cpuinfo | wc -l`
CPU_MODEL=`grep "model name" /proc/cpuinfo | head -n 1 | awk '{print $7 " " $8 " " $9}'`

echo "Processors = $PROCESSOR" &gt;&gt; $Report
echo "ProcessorModel = $CPU_MODEL" &gt;&gt; $Report
}

## Ethernet Function (eth1 for me, you can edit for yours)
ethernet() {
ETHER_SPEED=`ethtool eth1 | grep "Speed:" | awk '{print $2}'`

echo "EthernetSpeed = $ETHER_SPEED" &gt;&gt; $Report
}

## IB Function
ib() {
IB_STATE=`cat /sys/class/infiniband/*/ports/1/state | awk -F ":" '{print $2}'`
IB_PHYS_STATE=`cat /sys/class/infiniband/*/ports/1/phys_state | awk -F ":" '{print $2}'`
IB_RATE=`cat /sys/class/infiniband/*/ports/1/rate`

echo "IB_STATE = $IB_STATE" &gt;&gt; $Report
echo "IBLink = $IB_PHYS_STATE" &gt;&gt; $Report
echo "IBRate = $IB_RATE" &gt;&gt; $Report
}

## IB Test Function
ibtest() {
IB_TEST=`ipath_pkt_test -B | awk -F ":" '{print $2}'`
echo "IPathTest = $IB_TEST" &gt;&gt; $Report
}

## NFS Mounts Function
nfs() {
NFS_MOUNTS=`mount -t nfs,panfs,gpfs | wc -l`

echo "NFS_MOUNTS = $NFS_MOUNTS" &gt;&gt; $Report
}

## NIS Function
nis() {
NIS_TEST=`ypwhich`

echo "NIS_SERVER = $NIS_TEST" &gt;&gt; $Report
}

## MCELog Test Function
mcelog() {
MCELog=`if [ -s /var/log/mcelog ]; then echo "Check MCELog"; else echo "No MCELog"; fi`

echo "MCE Log = $MCELog" &gt;&gt; $Report
}

### MAIN SCRIPT

## Get Node Name
Hostname=`hostname -s`
touch ./$Hostname-checks.txt
Report=./$Hostname-checks.txt
echo " " &gt; $Report
echo "Node = ${Hostname}" &gt;&gt; $Report
echo "----------------" &gt;&gt; $Report

## Get Cluster Name
Cluster=`echo $Hostname | cut -c1-4`

## Call Function
loadavg
memory
cpu
ethernet
ib
ibtest
nfs
nis
mcelog

## Generate Report
echo " " &gt;&gt; $Report
cat $Report</pre><p>or press to download.     <a href="http://www.sohailriaz.com/downloads/nodecheck.sh" class="tmnf-sc-button  custom" style="background:orange;border-color:orange"><span class="tmnf-">Download Script</span></a></p>
<p>To run the script run following command.</p><pre class="crayon-plain-tag">chmod +x nodecheck.sh
./nodecheck.sh</pre><p></p>
<h3> 5. Enhancement</h3>
<p>You can add/edit/delete any function inside script to meet your need but do share your edits to let us improve the script for maximum checks.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=470&amp;ts=1369240745" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/node-health-check-script-in-cluster/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Enable NTFS Support in CentOS 6.3</title>
		<link>http://www.sohailriaz.com/how-to-enable-ntfs-support-in-centos-6-3/</link>
		<comments>http://www.sohailriaz.com/how-to-enable-ntfs-support-in-centos-6-3/#comments</comments>
		<pubDate>Sun, 20 Jan 2013 17:40:58 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=378</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/how-to-enable-ntfs-support-in-centos-6-3/"><img src="http://www.sohailriaz.com/wp-content/uploads/2013/01/ntfs-781-2-150x150.png" title="" alt="" /></a>
In this how to I will describe how to enable NTFS support in CentOS 6.3. By default CentOS 6.x doesnt comes with NTFS support to mount NTFS partition either on hard disk or usb drives. Fedora provies EPEL repository for Red Hat Enterprise Linux. EPEL (Extra Packages for Enterprise Linux) is a volunteer-based community effort ]]></description>
				<content:encoded><![CDATA[<p>In this how to I will describe how to enable NTFS support in CentOS 6.3. By default CentOS 6.x doesnt comes with NTFS support to mount NTFS partition either on hard disk or usb drives. Fedora provies EPEL repository for Red Hat Enterprise Linux. EPEL (Extra Packages for Enterprise Linux) is a volunteer-based community effort from the Fedora project to create a repository of high-quality add-on packages that complement the Fedora-based Red Hat Enterprise Linux (RHEL) and its compatible spinoffs, such as CentOS and Scientific Linux. NTFS drivers ntfs-3g is available through EPEL repository. <span id="more-378"></span></p>
<h3><span style="font-size: 1.17em;">1) Preparation</span></h3>
<p>Enable EPEL repository using following command.</p><pre class="crayon-plain-tag">rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm</pre><p></p>
<h3><span style="font-size: 1.17em;">2) Install NTFS Drivers.</span></h3>
<p></p><pre class="crayon-plain-tag">yum -y install ntfs-3g</pre><p>The above command will install ntfs-3g package which bring NTFS support to your CentOS 6.3 installation. Just plug in your ntfs usb drives or use mount command to enable ntfs hard drive partitions.</p>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=378&amp;ts=1369240745" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/how-to-enable-ntfs-support-in-centos-6-3/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How To Install ATI Radeon Drivers in Fedora 18</title>
		<link>http://www.sohailriaz.com/how-to-install-ati-radeon-drivers-in-fedora-18/</link>
		<comments>http://www.sohailriaz.com/how-to-install-ati-radeon-drivers-in-fedora-18/#comments</comments>
		<pubDate>Sun, 20 Jan 2013 06:49:03 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=372</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/how-to-install-ati-radeon-drivers-in-fedora-18/"><img src="" title="" alt="" /></a>
In this how to I will describe how to install ATI Radeon Drivers in Fedora 18. Fedora 18 fresh out and ATI latest driver version 13.1 dont support it. I also checked the older version i.e 12.8 and 12.6 but all of them unable to install on Fedora 18. In future they will provide right ]]></description>
				<content:encoded><![CDATA[<p>In this how to I will describe how to install ATI Radeon Drivers in Fedora 18. Fedora 18 fresh out and ATI latest driver version 13.1 dont support it. I also checked the older version i.e 12.8 and 12.6 but all of them unable to install on Fedora 18. In future they will provide right drivers for Fedora 18 but for now you can install akmod-catalyst beta driver from rpmfusion repository.<span id="more-372"></span></p>
<h3>1) Preparation.</h3>
<p>After installing from Live image to hard driver, first update your kernel and then install Development Tools group to provide all necessary tools for your system.</p><pre class="crayon-plain-tag">yum -y update kernel
yum -y groupinstall "Development Tools"</pre><p>We will require rpmfusion for driver installation so enable rpmfusion repository for Fedora 18 using following command.</p><pre class="crayon-plain-tag">rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-18.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-18.noarch.rpm</pre><p><span style="font-size: 1.17em;">2) Installation.</span></p>
<p>Install ATI driver using rpmfusion repository.</p><pre class="crayon-plain-tag">yum -y install akmod-catalyst</pre><p>The above command will install akmod-catalyst with all dependencies require for it to run. After this you need to run following command to create new initial ram filesystem with updated ATI beta drivers.</p><pre class="crayon-plain-tag">new-kernel-pkg --kernel-args=nomodeset --mkinitrd --dracut --update $(rpm -q --queryformat="%{version}-%{release}.%{arch}\n" kernel | tail -n 1)</pre><p>Reconfigure xorg using aticonfig to use ATI drivers.</p><pre class="crayon-plain-tag">aticonfig --initial -f</pre><p>you are all set, just reboot and enjoying your new Fedora 18 running ATI Graphics Driver. Dont be amaze by seeing AMD Testing use only at right bottom of your screen. Its a beta driver and soon ATI will update there drivers for Fedora 18</p>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=372&amp;ts=1369240745" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/how-to-install-ati-radeon-drivers-in-fedora-18/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>How To Fix Kernel (3.7.2-201) version.h file in Fedora 18</title>
		<link>http://www.sohailriaz.com/how-to-fix-kernel-3-7-2-201-version-h-file-in-fedora-18/</link>
		<comments>http://www.sohailriaz.com/how-to-fix-kernel-3-7-2-201-version-h-file-in-fedora-18/#comments</comments>
		<pubDate>Sun, 20 Jan 2013 06:31:37 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=368</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/how-to-fix-kernel-3-7-2-201-version-h-file-in-fedora-18/"><img src="http://www.sohailriaz.com/wp-content/uploads/2013/01/fedora-1920-150x150.jpg" title="" alt="" /></a>
I came across an issue while installing ATI Radeon Catalyst drivers on my new Fedora 18 installation. It kept failing by saying one of the required tool is missing to proceed further with installation. By looking into log file, I found that it try to access one of my install kernel 3.7.2-201 header file named ]]></description>
				<content:encoded><![CDATA[<p>I came across an issue while installing ATI Radeon Catalyst drivers on my new Fedora 18 installation. It kept failing by saying one of the required tool is missing to proceed further with installation. By looking into log file, I found that it try to access one of my install kernel 3.7.2-201 header file named version.h in /lib/modules/3.7.2-201.fc18.x86_64/build/include/linux/. Its a bug and kernel 3.7.2-201 devel rpm i.e kernel-devel-3.7.2-201.fc18.x86_64 miss installing version.h in /lib/modules/3.7.2-201.fc18.x86_64/build/include/linux/ location.<span id="more-368"></span></p>
<h3>1) Fix</h3>
<p>Additionally kernel-header of same install kernel rpm provides this file in /usr/include/linux directory. To fix the issue you need to copy the same required version.h file to /lib/modules/3.7.2-201.fc18.x86_64/build/include/linux location.</p>
<p>First check the file is of the same kernel version.</p><pre class="crayon-plain-tag">uname -r
3.7.2-201.fc18.x86_64

rpm -qa | grep `uname -r`
kernel-3.7.2-201.fc18.x86_64
kernel-devel-3.7.2-201.fc18.x86_64
kernel-headers-3.7.2-201.fc18.x86_64

rpm -qf /usr/include/linux/version.h
kernel-headers-3.7.2-201.fc18.x86_64</pre><p>After confirmation, copy the version.h to /lib/modules/3.7.2-201.fc18.x86_64/build/include/linux location.</p><pre class="crayon-plain-tag">cp -v /usr/include/linux/version.h /lib/modules/3.7.2-201.fc18.x86_64/build/include/linux</pre><p>After fixing my ATI Radeon driver installer starts working without failing for any dependencies. For a note Fedora 18 still dont have official ATI drivers and I end up installing akmod-catalyst driver available in rpmfusion repository.</p>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=368&amp;ts=1369240745" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/how-to-fix-kernel-3-7-2-201-version-h-file-in-fedora-18/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Install Shutter (Screenshot Tool) on Fedora 17</title>
		<link>http://www.sohailriaz.com/how-to-install-shutter-screenshot-tool-on-fedora-17/</link>
		<comments>http://www.sohailriaz.com/how-to-install-shutter-screenshot-tool-on-fedora-17/#comments</comments>
		<pubDate>Sat, 12 Jan 2013 17:13:25 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=360</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/how-to-install-shutter-screenshot-tool-on-fedora-17/"><img src="http://www.sohailriaz.com/wp-content/uploads/2013/01/shutter-150x150.png" title="" alt="" /></a>
In this howto I will describe how to install shutter (screenshot tool like snippingtool in windows) on Fedora 17. Shutter is a GTK+ 2.0 screenshot application written in perl. It gives a sophisticated way of capturing screenshot of your desktop or selection of it. The captured screenshot later on can be edited to fit your ]]></description>
				<content:encoded><![CDATA[<p>In this howto I will describe how to install shutter (screenshot tool like snippingtool in windows) on Fedora 17. Shutter is a GTK+ 2.0 screenshot application written in perl. It gives a sophisticated way of capturing screenshot of your desktop or selection of it. The captured screenshot later on can be edited to fit your need. You can crop, add caption, hide something personal using its beautiful GTK based GUI tool and even can capture any website screenshot using url. You just need to install shutter which comes with a heavy list of dependencies and will use up to 47M approximately of your disk space.<span id="more-360"></span></p>
<h3><span style="font-size: 1.17em;">1) Installation.</h3>
<p>You need one command to install shutter because it already available in Fedora repository.</p><pre class="crayon-plain-tag">yum -y install shutter</pre><p></p>
<h3><span style="font-size: 1.17em;">2) Running shutter.</span></h3>
<p>To run shutter either you give a command</p><pre class="crayon-plain-tag">shutter</pre><p>or you can open it from application. After opening you can use it to capture any selection area of your desktop and save as screenshot.</p>
<h3><span style="font-size: 1.17em;">2.1) Taking desktop screenshot.</h3>
<p><a href="http://www.sohailriaz.com/wp-content/uploads/2013/01/shutter.png" rel='prettyPhoto'><img class="size-medium wp-image-361 alignnone" title="shutter" alt="" src="http://www.sohailriaz.com/wp-content/uploads/2013/01/shutter-300x168.png" width="300" height="168" /></a></p>
<p>Click on the Selection Button and then it will fade out everything and let you to select any part of your desktop for screenshot. After taking screenshot it will let you to play with your screenshot and you can edit as per your need. It can give you option to export this image to your computer, ftp account, imageshack account or ubuntu one.</p>
<h3><span style="font-size: 1.17em;">2.2) Taking WebSite ScreenShot.</h3>
<p>Let using world icon to take any website screenshot using shutter. To achieve it open shutter from application and then click on the world icon and it will then ask you to put URL of the website to take screenshot.</p>
<p><a href="http://www.sohailriaz.com/wp-content/uploads/2013/01/shutter_url.png" rel='prettyPhoto'><img class="size-medium wp-image-363 alignnone" title="shutter_url" alt="" src="http://www.sohailriaz.com/wp-content/uploads/2013/01/shutter_url-300x168.png" width="300" height="168" /></a></p>
<p>Explore rest.</p>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=360&amp;ts=1369240745" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/how-to-install-shutter-screenshot-tool-on-fedora-17/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free Icon/Symbol from Open Icon Library</title>
		<link>http://www.sohailriaz.com/free-iconsymbol-from-open-icon-library/</link>
		<comments>http://www.sohailriaz.com/free-iconsymbol-from-open-icon-library/#comments</comments>
		<pubDate>Tue, 03 Apr 2012 07:41:17 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=356</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/free-iconsymbol-from-open-icon-library/"><img src=""  alt="" title="" /></a>
A project Open Icon Library (http://openiconlibrary.sourceforge.net/) will be very useful for the developers / designers to use icon free, modify and redistribute. I found it very helpful to community and some how everybody in this community need icons either they are web designers or application developers. A free and open Icon collection. Over 10,000 Unique ]]></description>
				<content:encoded><![CDATA[<p>A project Open Icon Library (<a href="http://openiconlibrary.sourceforge.net/" target="_blank">http://openiconlibrary.sourceforge.net/</a>) will be very useful for the developers / designers to use icon free, modify and redistribute. I found it very helpful to community and some how everybody in this community need icons either they are web designers or application developers.</p>
<blockquote><p>A free and open Icon collection. Over 10,000 Unique Icons. Free for  anyone to use on you computer, website or any other project.  The  library is not a theme.  Its a centralized source for icons to cover all  your needs.  The goal is to cover all common apps, operating systems,  mimetypes, devices, and country flags.<span id="more-356"></span></p></blockquote>
<p>The icons includes application icons, flags, devices, OS etc, full list can be viewed at http://openiconlibrary.sourceforge.net</p>
<p>You can download them as Icon Package or Webapp Package and used them as per your need.</p>
<p>There goal is to</p>
<blockquote><p>Offer a consolidated source of icons for people to custimise there desktop, as they wish, without relying of a single theme.</p></blockquote>
<p>Happy designing/developing.</p>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=356&amp;ts=1369240745" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/free-iconsymbol-from-open-icon-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Downgrade RPM Package Using YUM</title>
		<link>http://www.sohailriaz.com/how-to-downgrade-rpm-package-using-yum/</link>
		<comments>http://www.sohailriaz.com/how-to-downgrade-rpm-package-using-yum/#comments</comments>
		<pubDate>Sun, 01 Apr 2012 11:42:41 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=345</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/how-to-downgrade-rpm-package-using-yum/"><img src=""  alt="" title="" /></a>
In this howto I will describe how to Downgrade a RPM Package Using YUM. Yum came with a plugin named yum-allowdowngrade which allow you to downgrade any existing install RPM to older version. This requirement came from one of my client server that it requires to downgrade PHP version from 5.3.8 to 5.2.17. 1) Check ]]></description>
				<content:encoded><![CDATA[<p>In this howto I will describe how to Downgrade a RPM Package Using YUM. Yum came with a plugin named <strong>yum-allowdowngrade</strong> which allow you to downgrade any existing install RPM to older version. This requirement came from one of my client server that it requires to downgrade PHP version from 5.3.8 to 5.2.17.<span id="more-345"></span></p>
<h3>1) Check Already Installed RPM and Required RPM</h3>
<p>Following command will check which rpm version is installed.</p>
<blockquote><p>rpm -qa | grep php</p></blockquote>
<p>The next command will show you all available version using yum. Be noted I am using atomic repository for my PHP upgrade and downgrade. But you can do this with any rpm hence yum provide you with lower version of rpm package. How to add atomic repository kindly see my following post</p>
<p><a href="http://www.sohailriaz.com/how-to-update-php-on-servers-centosfedorarhel/" target="_blank">http://www.sohailriaz.com/how-to-update-php-on-servers-centosfedorarhel/</a></p>
<blockquote><p>yum list | grep php | grep atomic</p></blockquote>
<h3>2) Install YUM Plugin</h3>
<p>Issue following command to install yum-allowdowngrade plugin</p>
<blockquote><p>yum -y install yum-allowdowngrade</p></blockquote>
<h3>3) Downgrade RPM Install</h3>
<p>First you should be sure what rpm&#8217;s you are going to downgrade. For my list I will using already install PHP rpm package name with downgrade argument, which let yum to automatically use the lower version to install and remove the current version of PHP.</p>
<blockquote><p>yum downgrade php-dba php-soap php-ldap php-mysql php-mcrypt php-common php-cli php-gd php-odbc php-xmlrpc php-snmp  php-bcmath php-imap- php-devel php-pdo php php-pgsql php-pgsql php-mbstring php-xml</p></blockquote>
<p>The above command detect the lower version 5.2.17 at itself and give me option to downgrade the php version to 5.2.17. By giving y to start the installation, it removes the current php version, save the configuration files and install the older version of php 5.2.17. Which was than verified using following commands</p>
<blockquote><p>rpm -qa | grep php</p></blockquote>
<p>shows install php rpm with version, additionally you can use php command with version option</p>
<blockquote><p>php &#8211;version</p></blockquote>
<p>If you have any question please comment.</p>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=345&amp;ts=1369240745" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/how-to-downgrade-rpm-package-using-yum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Remove i386 RPM Package from x86_64 Install</title>
		<link>http://www.sohailriaz.com/how-to-remove-i386-rpm-package-from-x86_64-install/</link>
		<comments>http://www.sohailriaz.com/how-to-remove-i386-rpm-package-from-x86_64-install/#comments</comments>
		<pubDate>Sat, 31 Mar 2012 11:44:26 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=352</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/how-to-remove-i386-rpm-package-from-x86_64-install/"><img src=""  alt="" title="" /></a>
In this how to I will describe how to remove any i386 RPM Package from your x86_64 version of install. The operating system can be RHEL, Fedora or CentOS. Sometimes using yum we accidentally or intentionally or as requirement we install i386 rpm package on our x86_64 install of RHEL, Fedora or CentOS. This can ]]></description>
				<content:encoded><![CDATA[<p>In this how to I will describe how to remove any i386 RPM Package from your x86_64 version of install. The operating system can be RHEL, Fedora or CentOS. Sometimes using yum we accidentally or intentionally or as requirement we install i386 rpm package on our x86_64 install of RHEL, Fedora or CentOS. <span id="more-352"></span></p>
<p>This can be either library or full package itself. We came to issue of upgrading PHP while it require to upgrade MySQL server. By issueing yum upgrade command stuck with conflict with already i386 version of install. By checking we found out both i386 and x86_64 version of rpm were install of MySQL. There is option available in rpm command to remove both of them. But our requirements is to remove only i386 version of MySQL rpm.</p>
<h3>1) Get a List of i386 RPMs for MySQL</h3>
<p>If I do only</p>
<blockquote><p>rpm -qa | grep mysql</p>
<p>mysql-5.0.77-4.el5_5.4<br />
mysql-5.0.77-4.el5_5.4<br />
mysql-server-5.0.77-4.el5_5.4<br />
mysql-server-5.0.77-4.el5_5.4<br />
mysql-devel-5.0.77-4.el5_5.4<br />
mysql-devel-5.0.77-4.el5_5.4</p></blockquote>
<p>will give me both install of mysql with same name. So I will give it queryformat option to get out only i386 version of MySQL</p>
<blockquote><p>rpm -qa &#8211;queryformat=&#8217;%{n}-%{v}-%{r}.%{arch}\n&#8217; | grep &#8216;\i[3456]86$&#8217; | grep mysql</p>
<p>mysql-5.0.77-4.el5_5.4.i386<br />
mysql-server-5.0.77-4.el5_5.4.i386<br />
mysql-devel-5.0.77-4.el5_5.4.i386</p></blockquote>
<p>The above command will bring MySQL rpm of i386 version install.</p>
<h3>2) Delete the i386 rpm.</h3>
<p>Now you can issue individual command to remove the found i386 rpm files.</p>
<blockquote><p>rpm -e mysql-5.0.77-4.el5_5.4.i386<br />
rpm -e mysql-server-5.0.77-4.el5_5.4.i386<br />
rpm -e mysql-devel-5.0.77-4.el5_5.4.i386</p></blockquote>
<p>The architecture at the end will cause only i386 version of rpm to delete.</p>
<h3>3) Delete all i386 RPM Found.</h3>
<p>If you wish you can delete all i386 RPM files found on your x86_64 install of RHEL, Fedora or CentOS. You can use following command to do so.</p>
<blockquote><p>rpm -qa &#8211;queryformat=&#8217;%{n}-%{v}-%{r}.%{arch}\n&#8217; | grep &#8216;\.i[3456]86$&#8217; | xargs rpm -ev</p></blockquote>
<p>If you have any question please comment.</p>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=352&amp;ts=1369240745" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/how-to-remove-i386-rpm-package-from-x86_64-install/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Add EPEL Repository on CentOS / RHEL 6.x</title>
		<link>http://www.sohailriaz.com/how-to-add-epel-repository-on-centos-rhel-6-x/</link>
		<comments>http://www.sohailriaz.com/how-to-add-epel-repository-on-centos-rhel-6-x/#comments</comments>
		<pubDate>Sun, 26 Feb 2012 06:24:13 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=335</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/how-to-add-epel-repository-on-centos-rhel-6-x/"><img src=""  alt="" title="" /></a>
In this How To we are going to add EPEL (Extra Packages for Enterprise Linux) on CentOS / RHEL 6.x. Extra Packages for Enterprise Linux (or EPEL) is a Fedora Special Interest Group that creates, maintains, and manages a high quality set of additional packages for Enterprise Linux, including, but not limited to, Red Hat ]]></description>
				<content:encoded><![CDATA[<p>In this How To we are going to add EPEL (Extra Packages for Enterprise Linux) on CentOS / RHEL 6.x. Extra Packages for Enterprise Linux (or EPEL) is a Fedora Special Interest Group that creates, maintains, and manages a high quality set of additional packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux (RHEL),CentOS and Scientific Linux (SL). <span id="more-335"></span></p>
<p><span style="color: #ff9900;"><span style="text-decoration: underline;"><strong>Video at the end to demonstrate all commands.</strong></span></span></p>
<h3>1) Installing EPEL Repository</h3>
<p>Use following command to install EPEL Repository</p>
<blockquote><p>cd /usr/src<br />
wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm<br />
rpm -ivh epel-release-6-5.noarch.rpm</p></blockquote>
<h3>2) Testing</h3>
<p>Use following command to see EPEL Repo get listed.</p>
<blockquote><p>yum repolist<br />
Plugin &#8220;refresh-packagekit&#8221; can&#8217;t be imported<br />
Loaded plugins: fastestmirror<br />
Loading mirror speeds from cached hostfile<br />
epel/metalink                                            | 6.1 kB     00:00<br />
* base: centos.mirror.lstn.net<br />
* epel: fedora-epel.mirror.lstn.net<br />
* extras: centos.mirror.lstn.net<br />
* updates: mirror.steadfast.net<br />
epel                                                     | 4.0 kB     00:00<br />
epel/primary_db                                          | 4.2 MB     00:00<br />
repo id                repo name                                          status<br />
adobe-linux-x86_64     Adobe Systems Incorporated                             2<br />
base                   CentOS-6 &#8211; Base                                    6,294<br />
<strong>epel                   Extra Packages for Enterprise Linux 6 &#8211; x86_64     7,016</strong><br />
extras                 CentOS-6 &#8211; Extras                                      4<br />
updates                CentOS-6 &#8211; Updates                                   466<br />
vz-base                vz-base                                                3<br />
vz-updates             vz-updates                                             0<br />
repolist: 13,785</p></blockquote>
<p>You can see above (bold line) about EPEL install and its now part of yum repository list. So now you can download any package listed in EPEL repository. For all list you can use following command.</p>
<blockquote><p>yum list | grep epel | less</p></blockquote>
<p><iframe width="713" height="535" src="http://www.youtube.com/embed/tY35glifZrs?feature=oembed" frameborder="0" allowfullscreen></iframe></p>
<p>If you have any question please comment.</p>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=335&amp;ts=1369240745" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/how-to-add-epel-repository-on-centos-rhel-6-x/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How To Prevent Package Update Using YUM</title>
		<link>http://www.sohailriaz.com/how-to-prevent-package-update-using-yum/</link>
		<comments>http://www.sohailriaz.com/how-to-prevent-package-update-using-yum/#comments</comments>
		<pubDate>Tue, 21 Feb 2012 17:13:01 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=328</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/how-to-prevent-package-update-using-yum/"><img src=""  alt="" title="" /></a>
In this howto we will discuss how to prevent any package to be update using yum even its update is available. Sometimes we require to stick with current version of any installed rpm package and does not need to update. But whenever you execute yum command, it will search for available update for the current ]]></description>
				<content:encoded><![CDATA[<p>In this howto we will discuss how to prevent any package to be update using yum even its update is available. Sometimes we require to stick with current version of any installed rpm package and does not need to update. But whenever you execute yum command, it will search for available update for the current package install. Even if any package which is part of dependencies of installing rpm package will get update using yum.<span id="more-328"></span></p>
<p>This can be prevent by using yum plugin yum-versionlock.</p>
<h3>1) Install yum-versionlock</h3>
<blockquote><p>yum install yum-versionlock</p></blockquote>
<p>Above command will install versionlock plugin to work with.</p>
<h3>2) Configure yum-versionlock</h3>
<p>We have one package installed named gnupg and has update available.</p>
<blockquote><p>yum update gnupg<br />
Loaded plugins: langpacks, presto, refresh-packagekit, versionlock<br />
Setting up Update Process<br />
Resolving Dependencies<br />
&#8211;&gt; Running transaction check<br />
&#8212;&gt; Package gnupg.x86_64 0:1.4.11-3.fc15 will be updated<br />
&#8212;&gt; Package gnupg.x86_64 0:1.4.12-1.fc16 will be an update<br />
&#8211;&gt; Finished Dependency Resolution</p>
<p>Dependencies Resolved</p>
<p>================================================================================<br />
Package        Arch            Version                  Repository        Size<br />
================================================================================<br />
Updating:<br />
gnupg          x86_64          1.4.12-1.fc16            updates          1.3 M</p>
<p>Transaction Summary<br />
================================================================================<br />
Upgrade       1 Package</p>
<p>Total download size: 1.3 M<br />
Is this ok [y/N]: N</p></blockquote>
<p>Now we will configure yum-versionlock to prevent this package to be update next time. All packages name goes into /etc/yum/pluginconf.d/versionlock.list with format you get from rpm -qa</p>
<blockquote><p>rpm -qa | grep gnupg<br />
gnupg-1.4.11-3.fc15.x86_64</p></blockquote>
<p>either write the package name as above in the file or redirect the output.</p>
<blockquote><p>rpm -qa | grep gnupg &gt;&gt; /etc/yum/pluginconf.d/versionlock.list</p></blockquote>
<blockquote><p>cat /etc/yum/pluginconf.d/versionlock.list<br />
gnupg-1.4.11-3.fc15.x86_64</p></blockquote>
<p>Now again try to update the same package.</p>
<blockquote><p>yum update gnupg<br />
Loaded plugins: langpacks, presto, refresh-packagekit, versionlock<br />
Setting up Update Process<br />
No Packages marked for Update</p></blockquote>
<p>You can see it exclude this package for update. If you have any question please comment.</p>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=328&amp;ts=1369240745" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/how-to-prevent-package-update-using-yum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
