<?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>Abbas &#124; Bassu &#187; photoblog</title>
	<atom:link href="http://bashukhan.com/tag/photoblog/feed/" rel="self" type="application/rss+xml" />
	<link>http://bashukhan.com</link>
	<description>Life&#039;s having zeros and ones all over</description>
	<lastBuildDate>Thu, 29 Jul 2010 13:00:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Messy Mesh</title>
		<link>http://bashukhan.com/messy-mesh/</link>
		<comments>http://bashukhan.com/messy-mesh/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 07:24:07 +0000</pubDate>
		<dc:creator>Abbas</dc:creator>
				<category><![CDATA[Geekism]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[mess of cables]]></category>
		<category><![CDATA[photoblog]]></category>

		<guid isPermaLink="false">http://bashukhan.com/?p=178</guid>
		<description><![CDATA[Just a teaser of being messy I can literally pinpoint each cable for where its going and what it does]]></description>
			<content:encoded><![CDATA[<p>Just a teaser of being messy <img src='http://bashukhan.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  I can literally pinpoint each cable for where its going and what it does <img src='http://bashukhan.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p style="text-align: center;"><a href="http://bashukhan.com/wp-content/uploads/2010/04/mess.jpg" rel="lightbox[178]"><img class="size-medium wp-image-177  aligncenter" title="mess" src="http://bashukhan.com/wp-content/uploads/2010/04/mess-300x225.jpg" alt="" width="300" height="225" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://bashukhan.com/messy-mesh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More Raid tidbits &#8211; Monitoring all raid events and changing default email template</title>
		<link>http://bashukhan.com/more-raid-tidbits-monitoring-all-raid-events-and-changing-default-email-template/</link>
		<comments>http://bashukhan.com/more-raid-tidbits-monitoring-all-raid-events-and-changing-default-email-template/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 19:27:41 +0000</pubDate>
		<dc:creator>Abbas</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[check all raid events]]></category>
		<category><![CDATA[customize default raid mdadm email template]]></category>
		<category><![CDATA[mdadm monitor warning level events]]></category>
		<category><![CDATA[monitor all raid events linux]]></category>
		<category><![CDATA[photoblog]]></category>

		<guid isPermaLink="false">http://bashukhan.com/?p=157</guid>
		<description><![CDATA[A geek really knows the importance of his or her data and backups that just avoids pulling the hair off! When one of my hard drives on a server just died after having a well served 6000+ hours of life span, I found myself really lucky as other array component of RAID1 came to the [...]]]></description>
			<content:encoded><![CDATA[<p>A geek really knows the importance of his or her data and backups that just avoids pulling the hair off! When one of my hard drives on a server just died after having a well served 6000+ hours of life span, I found myself really lucky as other array component of RAID1 came to the rescue. Reason was a perhaps a short circuit which could have cost me the biggest loss of my data ever, I had in my life, so a blazing smile was well deserved. Electric power is one of the infinite things that doesn&#8217;t work here like it always (oh, its a long story &#8211; I should tell some of it sometime later)!</p>
<p>I got an email from mdmonitor telling me about DegradedArray event. So, when I was rebuilding the array, I noticed I got no alerts about rebuild process or  array status updates which I really wanted to investigate. Till that time, I wasn&#8217;t event knowing that &#8216;mdadm &#8211;monitor&#8217; only sends you the critical updates. So, I pulled up man pages and saw these are critical events:</p>
<ul>
<li>DeviceDisappeared</li>
<li> Fail</li>
<li> FailSpare</li>
<li> DegradedArray</li>
</ul>
<p>Rest of the events are not reported at all! Also, that RHEL5&#8242;s mdadm package has pre-compiled template of email that mdadm sends upon occurrence of a critical event which I wanted to change from as well cause it looks pretty immature:</p>
<pre class="brush: bash;">
This is an automatically generated mail message from mdadm running on HOSTNAME
A DegradedArray event had been detected on md device /dev/md1.
Faithfully yours, etc.

P.S. The /proc/mdstat file currently contains the following:
bla bla bla
</pre>
<p>Seriously, it says &#8220;faithfully&#8221;&#8230; wth? Lol. We know that all machines are faithful to a human unless they&#8217;re not broken or gay! <img src='http://bashukhan.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  It definitely needed to be changed. Checking /etc/init.d/mdmonitor at least gave an idea that its not something changeable but it uses default template when MAILADDR is specified while it doesn&#8217;t when PROGRAM parameter is used in /etc/mdadm.conf by passing on RAID array as arguments to the script which is used, instead.</p>
<p>I did this then.</p>
<pre class="brush: bash;">

# mdadm --detail --scan &gt;&gt; /etc/mdadm.conf

# echo &quot;PROGRAM /etc/raidalerter&quot; &gt;&gt; /etc/mdadm.conf
# sed -e '1i\DEVICE partitions' -i  /etc/mdadm.conf
# cat /etc/raidalerter    (create this file with below script)

#!/bin/bash
echo -e &quot;Likely an unfavourable or a bad thing just happened to your RAID. Even if its recovering, it was a bad thing which caused this! \n\n\n&quot; $(cat -A /proc/mdstat | sed 's/\$/\\n/g') | mail -s &quot;$1 on $2 $3 at $HOSTNAME&quot; some-mail-address@example.com

# chmod +x /etc/raidalerter
# service mdmonitor restart
</pre>
<p>Provided that you&#8217;ve an MTA working fine, mails would be delivered upon any of RAID incidents to the maximum verbosity possible. I don&#8217;t think that any of the hardware raids does so?!<br />
I then tested it on a small array to make sure that alerts are deliverable.</p>
<pre class="brush: bash;">

# mdadm /dev/md0 -f /dev/sdb1 -r /dev/sdb1
mdadm: set /dev/sdb1 faulty in /dev/md0
mdadm: hot removed /dev/sdb1
# mdadm /dev/md0 -a /dev/sdb1
mdadm: re-added /dev/sdb1
</pre>
<p><a href="http://bashukhan.com/wp-content/uploads/2010/03/Mdmonitor-Report-all-mdadm-monitor-events-.png" rel="lightbox[157]"><img class="aligncenter size-full wp-image-165" title="Mdmonitor - Report all mdadm monitor events" src="http://bashukhan.com/wp-content/uploads/2010/03/Mdmonitor-Report-all-mdadm-monitor-events-.png" alt="" width="693" height="292" /></a></p>
<p><strong>Preview: </strong></p>
<p>Subject: RebuildFinished on /dev/md0 at ToughGuy<br />
Likely an unfavorable or a bad thing just happened to your RAID. Even if its recovering, it was a bad thing which caused this!   Personalities :</p>
<p>[raid1]<br />
md1 : active<br />
raid1 sdb3[1] sda3[0]<br />
724555520 blocks [2/2] [UU]<br />
md0 : active<br />
raid1 sdb1[1] sda1[0]<br />
4008064 blocks [2/2] [UU]<br />
unused devices: &lt;none&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://bashukhan.com/more-raid-tidbits-monitoring-all-raid-events-and-changing-default-email-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arabian Beer Goggles</title>
		<link>http://bashukhan.com/arabian-beer-goggles/</link>
		<comments>http://bashukhan.com/arabian-beer-goggles/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 15:58:34 +0000</pubDate>
		<dc:creator>Abbas</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Baribcan a good name]]></category>
		<category><![CDATA[photoblog]]></category>

		<guid isPermaLink="false">http://bashukhan.com/?p=148</guid>
		<description><![CDATA[Lol, just kidding. Its about a new beer I&#8217;ve &#8216;discovered&#8217; after being in search for an alternative to Arabian Moose Beer for a long time since it had gone missing speaking of scarcity of brewery brands no more than few available here, at the place I live! Its called Barbican and keeps some history with [...]]]></description>
			<content:encoded><![CDATA[<p>Lol, just kidding. Its about a new beer I&#8217;ve &#8216;discovered&#8217; after being in search for an alternative to Arabian Moose Beer for a long time since  it had gone missing speaking of scarcity of brewery brands no more than few available here, at the place I live!<br />
Its called <a href="http://www.aujan.com/web/" target="_blank">Barbican</a> and keeps some history with it!</p>
<p>Its pretty awesome and a friend of mine just made it more awesome. She said, &#8220;<span style="color: #00ff00;"><strong>Barbi Can!</strong></span>&#8220;.<br />
Lol, what a name!</p>
<p><a href="http://bashukhan.com/wp-content/uploads/2010/03/Barbican.jpg" rel="lightbox[148]"><img class="aligncenter size-medium wp-image-149" title="Barbican" src="http://bashukhan.com/wp-content/uploads/2010/03/Barbican-300x225.jpg" alt="" width="300" height="225" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://bashukhan.com/arabian-beer-goggles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Expanding the C: drive (system boot partition)</title>
		<link>http://bashukhan.com/expanding-the-c-drive-system-boot-partition/</link>
		<comments>http://bashukhan.com/expanding-the-c-drive-system-boot-partition/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 14:39:20 +0000</pubDate>
		<dc:creator>Abbas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[enlarge system partition]]></category>
		<category><![CDATA[expand boot parition in xenserver windows vm]]></category>
		<category><![CDATA[expanding c; drive]]></category>
		<category><![CDATA[photoblog]]></category>
		<category><![CDATA[windows diskpart]]></category>

		<guid isPermaLink="false">http://bashukhan.com/?p=130</guid>
		<description><![CDATA[So, I ran out of space on system partition in one of my primary xen virtual machines. Yea, things like this happen quite often when I literally underestimate myself. Unlike Linux, in this case there&#8217;s no power of init which lets you expand an LVM or move a system partition to new disk even without [...]]]></description>
			<content:encoded><![CDATA[<p>So, I ran out of space on system partition in one of my primary xen virtual machines. Yea, things like this happen quite often when I literally underestimate myself. Unlike Linux, in this case there&#8217;s no power of init which lets you expand an LVM or move a system partition to new disk even without going through any reboots. I guess Microsoft realised that its an important option Windows should have so they provided in Windows Server 2008 and Windows 7 under Disk Management with an on the fly ability to either shrink or expand a system volume. But still its a painful risky process in XP or Server 2003. I&#8217;m familiar with third party softwares that help in resizing the partitions including GParted but like always I like to follow vendor supported methodologies on production machines. And it was &#8216;diskpart&#8217; here. Booting the system from a Server 2008 / Vista DVD&#8217;s recovery tools or from WinPE, you can use diskpart. But first things first &#8211; there are three requirements you must have before going ahead.</p>
<ol>
<li>Free space should exist contiguous right after the system partition</li>
<li>That free space partition must be of &#8216;primary&#8217; type and must not be a logical partition.</li>
<li>It should also be in &#8216;unallocated&#8217; or deleted form without an existence of a &#8216;drive&#8217; on it.</li>
</ol>
<p>I had 10Gig C: and D: drive on a 20Gig of a disk. Added 10 more from XenCenter totalling into 30. As I needed a primary unallocated partition after C: drive so I had to use robocopy to backup the D: drive&#8217;s data into a network samba share, format and then split it into one primary and one extended partition.</p>
<p style="text-align: left;"><a href="http://bashukhan.com/wp-content/uploads/2010/03/Expanding-C-Drive.png" rel="lightbox[130]"><img class="size-medium wp-image-131    aligncenter" title="Expanding-C-Drive" src="http://bashukhan.com/wp-content/uploads/2010/03/Expanding-C-Drive-300x278.png" alt="" width="300" height="278" /></a></p>
<p style="text-align: left; padding-left: 120px; font-size: x-small;">Legends:</p>
<p style="padding-left: 120px; text-align: left; font-size: x-small;">Red = Total system drive space before and after the expand<br />
Blue = Total free space on disk before and after expand<br />
Green = Commands issued.</p>
<p style="text-align: center; font-size: x-small;">
]]></content:encoded>
			<wfw:commentRss>http://bashukhan.com/expanding-the-c-drive-system-boot-partition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Total Rsync Progress</title>
		<link>http://bashukhan.com/total-rsync-progress/</link>
		<comments>http://bashukhan.com/total-rsync-progress/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 14:13:30 +0000</pubDate>
		<dc:creator>Abbas</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[live rsync stats]]></category>
		<category><![CDATA[measure total progress of rsync]]></category>
		<category><![CDATA[overall rsync progress]]></category>
		<category><![CDATA[photoblog]]></category>

		<guid isPermaLink="false">http://bashukhan.com/?p=113</guid>
		<description><![CDATA[If you use rsync frequently, you might be aware of the fact that rsync doesn&#8217;t show overall or total transfer statistics when you&#8217;re syncing directories recursively. Even options like &#8216;&#8211;progress&#8217;, &#8216;&#8211;stats&#8217; and &#8216;-vv&#8217; won&#8217;t do that. I was searching for that, was about to write a script to run in dry-run mode and measure an [...]]]></description>
			<content:encoded><![CDATA[<p>If you use rsync frequently, you might be aware of the fact that rsync doesn&#8217;t show overall or total transfer statistics when you&#8217;re syncing directories recursively. Even options like &#8216;&#8211;progress&#8217;, &#8216;&#8211;stats&#8217; and &#8216;-vv&#8217; won&#8217;t do that. I was searching for that, was about to write a script to run in dry-run mode and measure an overall rsync progress but found a patch <a href="https://bugzilla.samba.org/attachment.cgi?id=3390" target="_blank">here</a> written by Graeme Humphries. This patch later was incorporated into latest dev version 3.1dev downloadable here at<a href="http://samba.anu.edu.au/ftp/rsync/dev/nightly/" target="_blank"> http://samba.anu.edu.au/ftp/rsync/dev/nightly/</a> with an option invokable by &#8216;&#8211;info=progress2&#8242;.</p>
<blockquote><p>Excerpts from the man pages:</p>
<pre class="brush: bash;">
There is also a --info=progress2 option that outputs statistics based on the whole transfer, rather than individual files.  Use this flag without outputting a filename (e.g. avoid -v or specify --info=name0 if you want to see how the transfer is doing without scrolling the screen with a lot of names.  (You don't need to specify the --progress option in order to use --info=progress2.)
 </pre>
</blockquote>
<p>So, I downloaded, compiled and installed this dev version and guess what now, there&#8217;s no creepy scrolls in shell console filling up the screen with individual file progress.<br />
Yea, I know Red Hat and CentOS are slow in updating their packages repository but lets hope when this build is final, Dag&#8217;s repo may have an rpm for it.</p>
<p><a href="http://bashukhan.com/wp-content/uploads/2009/12/rsync3.png" rel="lightbox[113]"><img class="aligncenter size-medium wp-image-115" title="rsync3" src="http://bashukhan.com/wp-content/uploads/2009/12/rsync3-300x144.png" alt="" width="300" height="144" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://bashukhan.com/total-rsync-progress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easiest way to create selfsigned certificates</title>
		<link>http://bashukhan.com/easiest-way-to-create-selfsigned-certificates/</link>
		<comments>http://bashukhan.com/easiest-way-to-create-selfsigned-certificates/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 06:22:23 +0000</pubDate>
		<dc:creator>Abbas</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[easiest way to create selfsigned certificates]]></category>
		<category><![CDATA[photoblog]]></category>

		<guid isPermaLink="false">http://bashukhan.com/?p=107</guid>
		<description><![CDATA[For Linux its going to be with tool &#8216;genkey&#8217; &#8211; a part of crypto-utils package available in Red Hat distros. # genkey servername And for Windows, easiest way to do is with SelfSSL available in IIS 6.x Resource Tools.]]></description>
			<content:encoded><![CDATA[<p>For Linux its going to be with tool &#8216;genkey&#8217; &#8211; a part of crypto-utils package available in Red Hat distros.</p>
<pre class="brush: bash;">
# genkey servername
</pre>
<p>And for Windows, easiest way to do is with SelfSSL available in IIS 6.x Resource Tools.</p>
<p><a href="http://bashukhan.com/wp-content/uploads/2009/12/genkey1.png" rel="lightbox[107]"><img class="aligncenter size-medium wp-image-108" title="Genkey - crypto-utils" src="http://bashukhan.com/wp-content/uploads/2009/12/genkey1-300x149.png" alt="" width="300" height="149" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://bashukhan.com/easiest-way-to-create-selfsigned-certificates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASCII Art in Linux</title>
		<link>http://bashukhan.com/ascii-art-in-linux/</link>
		<comments>http://bashukhan.com/ascii-art-in-linux/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 20:03:21 +0000</pubDate>
		<dc:creator>Abbas</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[asci art in linux]]></category>
		<category><![CDATA[convert text into ascii art tool]]></category>
		<category><![CDATA[figlet]]></category>
		<category><![CDATA[linux_logo]]></category>
		<category><![CDATA[photoblog]]></category>

		<guid isPermaLink="false">http://bashukhan.com/?p=95</guid>
		<description><![CDATA[I&#8217;m fond of two ascii art tools in Linux. - linux_logo - figlet Both of these are available in RPMForge/Dag&#8217;s repository. Second one, figlet draws the ascii art for any text that is input. It has a lot of font options available (see man for figlet and figlist).]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m fond of two ascii art tools in Linux.</p>
<p>- linux_logo<br />
- figlet</p>
<p>Both of these are available in RPMForge/Dag&#8217;s repository. Second one, figlet draws the ascii art for any text that is input. It has a lot of font options available (see man for figlet and figlist).</p>
<p style="text-align: center;"><a href="http://bashukhan.com/wp-content/uploads/2009/12/ascii-art.png" rel="lightbox[95]"><img class="aligncenter size-medium wp-image-100" title="ascii-art" src="http://bashukhan.com/wp-content/uploads/2009/12/ascii-art-300x197.png" alt="" width="300" height="197" /></a></p>
<p style="text-align: center;">
]]></content:encoded>
			<wfw:commentRss>http://bashukhan.com/ascii-art-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing HPLIP 3.9.10 on CentOS 5.4 for newer printers (HP LaserJet M1120 MFP)</title>
		<link>http://bashukhan.com/installing-hplip-3-9-10-on-centos-5-4-for-newer-printers-hp-laserjet-m1120-mfp/</link>
		<comments>http://bashukhan.com/installing-hplip-3-9-10-on-centos-5-4-for-newer-printers-hp-laserjet-m1120-mfp/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 13:34:41 +0000</pubDate>
		<dc:creator>Abbas</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS hplip drivers with scanner support]]></category>
		<category><![CDATA[fixing hplip dependency errors]]></category>
		<category><![CDATA[HP LaserJet M1120]]></category>
		<category><![CDATA[HP LaserJet M1120 Red Hat]]></category>
		<category><![CDATA[install hplip on CentOS 5]]></category>
		<category><![CDATA[latest hplip 3.9 on CentOS 5.5]]></category>
		<category><![CDATA[photoblog]]></category>

		<guid isPermaLink="false">http://bashukhan.com/?p=84</guid>
		<description><![CDATA[CentOS 5&#8242;s base repository has an older version of HPLIP, something about &#8217;1.6.7&#8242; or so which of course is not adequate to get newer HP printers specially the LaserJet series, to get to work. Now the natural way to have this installed, you may think is to compile it from source &#8211; if you&#8217;re thinking [...]]]></description>
			<content:encoded><![CDATA[<p>CentOS 5&#8242;s base repository has an older version of HPLIP, something about &#8217;1.6.7&#8242; or so which of course is not adequate to get newer HP printers specially the LaserJet series, to get to work. Now the natural way to have this installed, you may think is to compile it from <em><strong><a title="HPLIP installation from source" href="http://hplipopensource.com/hplip-web/install/manual/distros/centos.html" target="_blank">source</a></strong></em> &#8211; if you&#8217;re thinking that then no, that won&#8217;t help out! Even after fulfilling all of the required dependencies. I got about almost 14 errors when running hp-check utility after compiling, got&#8217;em reduced to 10 but no far lesser than that if you know what I mean.</p>
<pre class="brush: bash;">
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
error: Could not access file: No such file or directory
error: 10 errors and/or warnings.
-----------
| SUMMARY |
-----------
Please refer to the installation instructions at:

http://hplip.sourceforge.net/install/index.html
</pre>
<p>Pretty insane though, many of these dependencies were already installed. I would assume that this would be the reason why hplip is not under active development for CentOS and why its not current under CentOS as I saw quite a few HP&#8217;s devs and techs saying a big &#8220;no&#8221; to this community based distribution when people complained on their Launchpad about these compilation errors. Plus, the relative hplip installation issues I found on CentOS&#8217; forum.</p>
<p>After being in disappointed (oops wth) situation, I tried running the RHEL5&#8242;s rpm (can be downloaded from hplip&#8217;s site) on it after removing the source installed version, but it too gave the dependency errors which I hoped I would resolve and I did later on.</p>
<p><em><strong>Installing&#8230;&#8230;</strong></em></p>
<pre class="brush: bash;">
# rpm -ivh /Raid/hplip-3.9.10_rhel-5.0.i386.rpm
Preparing...                ########################################### [100%]
 file /usr/bin/hpijs from install of hplipfull-3.9.10-0.i386 conflicts with file from package hpijs-1.6.7-4.1.el5.4.i386
 file /usr/lib/libhpip.so.0.0.1 from install of hplipfull-3.9.10-0.i386 conflicts with file from package hpijs-1.6.7-4.1.el5.4.i386
 file /usr/lib/sane/libsane-hpaio.so.1.0.0 from install of hplipfull-3.9.10-0.i386 conflicts with file from package libsane-hpaio-1.6.7-4.1.el5.4.i386
</pre>
<p><em><strong>So, I decided to remove problematic hpijs</strong></em></p>
<pre class="brush: bash;">

 Package                 Arch       Version          Repository        Size

Removing:
 hpijs                   i386       1:1.6.7-4.1.el5.4  installed         588 k
Removing for dependencies:
 libsane-hpaio           i386       1.6.7-4.1.el5.4  installed          94 k
 sane-backends           i386       1.0.18-5.el5     installed         3.1 M
 sane-backends-devel     i386       1.0.18-5.el5     installed          27 k
 sane-backends-libs      i386       1.0.18-5.el5     installed         5.2 M
 xsane                   i386       0.991-5.el5      installed         4.5 M

Transaction Summary
Install      0 Package(s)
Update       0 Package(s)
Remove       6 Package(s)
</pre>
<p><em><strong>But realised soon that it also removed libsane sub-dependency as well.</strong></em></p>
<pre class="brush: bash;">
# rpm -ivh /Raid/hplip-3.9.10_rhel-5.0.i386.rpm
error: Failed dependencies:
 libsane.so.1 is needed by hplipfull-3.9.10-0.i386
 </pre>
<p><em><strong>Because installing sane would also install hpijs and other conflicting stuff as well so the solution here was to remove problematic packages without &#8216;removing&#8217; any dependencies needed.</strong></em></p>
<pre class="brush: bash;">
[root@ToughGuy ~]# rpm -ivh /Raid/hplip-3.9.10_rhel-5.0.i386.rpm
Preparing...                ########################################### [100%]
 file /usr/bin/hpijs from install of hplipfull-3.9.10-0.i386 conflicts with file from package hpijs-1.6.7-4.1.el5.4.i386
 file /usr/lib/libhpip.so.0.0.1 from install of hplipfull-3.9.10-0.i386 conflicts with file from package hpijs-1.6.7-4.1.el5.4.i386
 file /usr/lib/sane/libsane-hpaio.so.1.0.0 from install of hplipfull-3.9.10-0.i386 conflicts with file from package libsane-hpaio-1.6.7-4.1.el5.4.i386
#
# rpm -ev --nodeps libsane-hpaio
# rpm -ivh /Raid/hplip-3.9.10_rhel-5.0.i386.rpm
Preparing...                ########################################### [100%]
 file /usr/bin/hpijs from install of hplipfull-3.9.10-0.i386 conflicts with file from package hpijs-1.6.7-4.1.el5.4.i386
 file /usr/lib/libhpip.so.0.0.1 from install of hplipfull-3.9.10-0.i386 conflicts with file from package hpijs-1.6.7-4.1.el5.4.i386
#
# rpm -ev --nodeps hpijs
#
# rpm -ivh /Raid/hplip-3.9.10_rhel-5.0.i386.rpm
Preparing...                ########################################### [100%]
 1:hplipfull              ########################################### [100%]
#
</pre>
<p><em><strong>Concluding the overall steps:</strong></em></p>
<pre class="brush: bash;">
# yum install cups cups-devel ghostscript* PyQt xsane -y
# Download and install hplip-3.9.10_rhel-5.0.i386.rpm from http://hplipopensource.com/hplip-web/install_wizard/index.html choosing RHEL5.
# rpm -ev --nodeps libsane-hpaio
# rpm -ev --nodeps hpijs
# rpm -ivh hplip-3.9.10_rhel-5.0.i386.rpm
# Reboot the system if you're lucky enough, you'll see no errors
# reboot
# system-config-printer
</pre>
<p>And configure the printer now as usual. Just out of curiosity, this was my XenServer where I installed it (yea I know it would sound funny) and I got scanner (LaserJet M1120 is dual scanner and printer) working fine as well with xsane. Check it out <img src='http://bashukhan.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<div id="attachment_85" class="wp-caption aligncenter" style="width: 310px"><a href="http://bashukhan.com/wp-content/uploads/2009/12/Scan_test.png" rel="lightbox[84]"><img class="size-medium wp-image-85" title="Scan Test HP LaserJet M1120 MFP" src="http://bashukhan.com/wp-content/uploads/2009/12/Scan_test-300x293.png" alt="" width="300" height="293" /></a><p class="wp-caption-text">Scan Test HP LaserJet M1120 MFP</p></div>
<p><strong><span style="color: #000000;">NOTE: </span></strong><span style="color: #000000;">If this post helped you out or provided you with ways of troubleshooting, feel free to say a little thanks <img src='http://bashukhan.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </span></p>
]]></content:encoded>
			<wfw:commentRss>http://bashukhan.com/installing-hplip-3-9-10-on-centos-5-4-for-newer-printers-hp-laserjet-m1120-mfp/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Cats in an international airport!</title>
		<link>http://bashukhan.com/cats-in-an-international-airport/</link>
		<comments>http://bashukhan.com/cats-in-an-international-airport/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 06:55:10 +0000</pubDate>
		<dc:creator>Abbas</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[cats zia intl airport]]></category>
		<category><![CDATA[dhaka]]></category>
		<category><![CDATA[photoblog]]></category>

		<guid isPermaLink="false">http://bashukhan.com/cats-in-an-international-airport/</guid>
		<description><![CDATA[Just came across this snap in my cell&#8217;s pic gallery which I took at Zia Intl. Airport. Funny!]]></description>
			<content:encoded><![CDATA[<p>Just came across this snap in my cell&#8217;s pic gallery which I took at Zia Intl. Airport. Funny! <img src='http://bashukhan.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p style="text-align: center;"><img class="aligncenter size-large wp-image-78" title="cats_in_airport" src="http://bashukhan.com/wp-content/uploads/2009/12/cats_in_airport-1024x768.jpg" alt="cats_in_airport" width="1024" height="768" /></p>
]]></content:encoded>
			<wfw:commentRss>http://bashukhan.com/cats-in-an-international-airport/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Error 0x800706d5 upon adding a host to NLB Cluster on Windows</title>
		<link>http://bashukhan.com/error-0x800706d5-upon-adding-a-host-to-nlb-cluster-on-windows/</link>
		<comments>http://bashukhan.com/error-0x800706d5-upon-adding-a-host-to-nlb-cluster-on-windows/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 23:33:21 +0000</pubDate>
		<dc:creator>Abbas</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[adding host]]></category>
		<category><![CDATA[Error 0x800706d5]]></category>
		<category><![CDATA[NLB]]></category>
		<category><![CDATA[nlbmgr wizard]]></category>
		<category><![CDATA[photoblog]]></category>

		<guid isPermaLink="false">http://bashukhan.com/?p=47</guid>
		<description><![CDATA[Is this error freaking you out upon adding a new or second host to your existing set of clusters in Windows Network Load Balance Manager? Well, it always does somehow depending upon the dns and the way of addition being followed To fix, make sure: 1. The host you&#8217;re adding, your DNS server can resolve [...]]]></description>
			<content:encoded><![CDATA[<p>Is this error freaking you out upon adding a new or second host to your existing set of clusters in Windows Network Load Balance Manager? Well, it always does somehow depending upon the dns and the way of addition being followed <img src='http://bashukhan.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<div id="attachment_48" class="wp-caption aligncenter" style="width: 472px"><img class="size-full wp-image-48" title="0x800706d5" src="http://bashukhan.com/wp-content/uploads/2009/12/screenshot1.png" alt="0x800706d5 NLB Error" width="462" height="429" /><p class="wp-caption-text">0x800706d5 NLB Error</p></div>
<p>To fix, make sure:</p>
<p>1. The host you&#8217;re adding, your DNS server can resolve its FQDN/Computer name or you&#8217;ve a proper entry of it setup in Windows hosts file. This also means that a proper DNS suffix is setup if its a FQDN under Computer name properties.</p>
<p>2. And you&#8217;re logging in to this dialog box using full computername i.e. &#8220;computername/administrator&#8221; instead of merely using computername.</p>
<p>OR</p>
<p>Just in case if you prefer to do things manually like I usually do then this would have already set you free from catchy Windows wizards <img src='http://bashukhan.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://bashukhan.com/error-0x800706d5-upon-adding-a-host-to-nlb-cluster-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
