<?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>Ahmed El Gamil &#187; UNIX/Linux</title>
	<atom:link href="http://www.blog.manhag.org/category/open-source-technologies/linux-open-source-technologies/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blog.manhag.org</link>
	<description></description>
	<lastBuildDate>Thu, 13 Oct 2011 10:54:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
<image>
<link>http://www.blog.manhag.org</link>
<url>http://www.blog.manhag.org/wp-content/mbp-favicon/favicon.ico</url>
<title>Ahmed El Gamil</title>
</image>
	<atom:link rel='hub' href='http://www.blog.manhag.org/?pushpress=hub'/>
		<item>
		<title>Redefining the “Systems Engineer”</title>
		<link>http://www.blog.manhag.org/2010/12/redefining-the-systems-engineer/</link>
		<comments>http://www.blog.manhag.org/2010/12/redefining-the-systems-engineer/#comments</comments>
		<pubDate>Thu, 09 Dec 2010 16:34:19 +0000</pubDate>
		<dc:creator>Ahmed El Gamil</dc:creator>
				<category><![CDATA[DevOps]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[UNIX/Linux]]></category>
		<category><![CDATA[DevOps Systems UNIX LinkedIn]]></category>

		<guid isPermaLink="false">http://www.blog.manhag.org/?p=567</guid>
		<description><![CDATA[I usually come across stuff on the web and just post it to my twitter account, but i was browsing the other day and came across a fantastic article by Ben Rockwood (@Benr) which he gave a title of &#8220;Devops: The Re-emergance of Systems Engineering as a Discipline&#8221;, Let&#8217;s quote some words of wisdom from [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_silver" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.blog.manhag.org%252F2010%252F12%252Fredefining-the-systems-engineer%252F%22%2C%20%22shorturl%22%3A%20%22http%3A%2F%2Fbit.ly%2Fg5LFAX%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Redefining%20the%20%E2%80%9CSystems%20Engineer%E2%80%9D%22%20%7D);"></div>
<p><a href="http://www.blog.manhag.org/wp-content/uploads/2010/12/Octopus-operator.jpg"><img class="aligncenter size-full wp-image-577" title="Octopus-operator" src="http://www.blog.manhag.org/wp-content/uploads/2010/12/Octopus-operator.jpg" alt="" width="450" height="346" /></a></p>
<p>I usually come across stuff on the web and just post it to <a href="http://www.twitter.com/ahmedelgamil" target="_blank">my twitter account</a>, but i was browsing the other day and came across a fantastic article by Ben Rockwood (<a href="http://www.twitter.com/benr" target="_blank">@Benr</a>) which he gave a title of <em>&#8220;Devops: The Re-emergance of Systems Engineering as a Discipline&#8221;, </em>Let&#8217;s quote some words of wisdom from this article:</p>
<blockquote><p>The people that I met that seems to &#8220;get&#8221; the devops culture are devs.   But not that kind&#8230; You see, they profess years in administration or  ops, but they more excited by JSON and AMQP than they are by the next  release of their favorite OS or chip architecture.  These people no  longer see computers as autonomous entities, rather they see the  protocols to link them.  They are more excited by NoSQL databases that  can house metrics than they are in the commands and interfaces they can  get them from.  Spending time learning every little feature of an OS  isn&#8217;t exciting, but optimizing inter-system communication is.</p></blockquote>
<p>That&#8217;s interestingly true !, When NoSQL was trending, i saw it on the UNIX/Sysadmins blogs more than on the developers blogs, some of us just like to follow the new/alternative to the software models we have been using in operations because we already experienced the bottle necks of performance for the old systems and kept inventing workarounds to get those systems up and running in production efficiently.</p>
<blockquote><p>What I&#8217;m driving at is that the most interesting artifact of the  &#8220;devops&#8221; movement is that its bringing a new generation of Systems  Engineers out of the closet.  They are devs in an ops world.  Not dev  for dev sake&#8230; not ops for ops sake&#8230; but rather dev for the sake of  ops.</p></blockquote>
<p>Take a look at the new tools in our market:</p>
<ul>
<li>Configuration Management -&gt; created by Sysadmins turned Developers for the sake of managing the configuration of a large amount of systems</li>
<li>Servers Orchestration/ Command &amp; Control -&gt; Also created by Ops sick of SSHing into each server and doing the same thing over and over again, therefor they created frameworks for orchestrating their servers.</li>
<li>Examples here are simply endless ! &#8230;.</li>
</ul>
<p>But making a culture change like this in a job that most of it is based around routine processes (Monitoring, Provisioning, Deploying the same stuff over and over again) is not that easy, Especially for people who entered the Systems world seeking a &#8220;stable&#8221; job, those guys must think again about their jobs, one day they may be in an &#8220;Evolve or Die&#8221; situation:</p>
<blockquote><p>As the good news of &#8220;devops&#8221; spreads it first enlightens, then brings  excitement, then dread.  If your one of those &#8220;specialists&#8221;, you can  easily feel that your now out-dated.  Consider that there is now pride  within the devops elite that CIO&#8217;s are now talking about having a  &#8220;devops strategy&#8221;.  Some even suggest a (I&#8217;m paraphrasing) &#8220;evolve or  die&#8221; scenario for operations teams.  If your a sysadmin who uses Borne  or Korn shell instead of Ruby, look out!  I don&#8217;t think that&#8217;s fair, nor  do I think its true for all.  Instead, it all makes more sense when you  see it as three camps instead of two, with a the culture over the  three&#8230; that is, applications developers (traditional &#8220;dev&#8221;), system  administrators (traditional &#8220;ops&#8221;), with a new role in the middle of  Systems Engineers that helps glue the camps together.  Some of your  Systems Engineers will emerge from the dev side, some from the ops side,  always having hidden their secret urges to do both.  And, as with any  emergent role, many will aspire to it but simply not be cut out for it.</p></blockquote>
<p>And that&#8217;s all folks ! <img src='http://www.blog.manhag.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> , I see this as a real enlightenment for the Systems Engineer, Our jobs are almost being redefined right now.</p>
<p>You can read the whole article that Ben wrote on his blog: <a href="http://www.cuddletech.com/blog/pivot/entry.php?id=1149" target="_blank"><em>Devops: The Re-emergance of Systems Engineering as a Discipline</em></a></p>

]]></content:encoded>
			<wfw:commentRss>http://www.blog.manhag.org/2010/12/redefining-the-systems-engineer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>chmod -x chmod</title>
		<link>http://www.blog.manhag.org/2010/10/chmod-x-chmod/</link>
		<comments>http://www.blog.manhag.org/2010/10/chmod-x-chmod/#comments</comments>
		<pubDate>Mon, 11 Oct 2010 19:16:11 +0000</pubDate>
		<dc:creator>Ahmed El Gamil</dc:creator>
				<category><![CDATA[Open Source Technologies]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[UNIX/Linux]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[Geeky]]></category>

		<guid isPermaLink="false">http://www.blog.manhag.org/?p=535</guid>
		<description><![CDATA[What do you think will happen if you remove the executable flag from the chmod binary itself ? chmod -x chmod]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_silver" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.blog.manhag.org%252F2010%252F10%252Fchmod-x-chmod%252F%22%2C%20%22shorturl%22%3A%20%22http%3A%2F%2Fbit.ly%2FbziQiP%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22chmod%20-x%20chmod%22%20%7D);"></div>
<p>What do you think will happen if you remove the executable flag from the chmod binary itself ? <img src='http://www.blog.manhag.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<div id="__ss_4968763" style="width: 425px;"><strong style="display: block; margin: 12px 0 4px;"><a title="chmod -x chmod" href="http://www.slideshare.net/cog/chmod-x-chmod">chmod -x chmod</a></strong></div>
<p style="text-align: center;"><object id="__sse4968763" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=chmod-forslideshare-100814060123-phpapp01&amp;stripped_title=chmod-x-chmod&amp;userName=cog" /><param name="name" value="__sse4968763" /><param name="allowfullscreen" value="true" /><embed id="__sse4968763" type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=chmod-forslideshare-100814060123-phpapp01&amp;stripped_title=chmod-x-chmod&amp;userName=cog" name="__sse4968763" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>

]]></content:encoded>
			<wfw:commentRss>http://www.blog.manhag.org/2010/10/chmod-x-chmod/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Announcing Egypt’s DevOps</title>
		<link>http://www.blog.manhag.org/2010/07/announcing-egypts-devops/</link>
		<comments>http://www.blog.manhag.org/2010/07/announcing-egypts-devops/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 19:42:10 +0000</pubDate>
		<dc:creator>Ahmed El Gamil</dc:creator>
				<category><![CDATA[Open Source Technologies]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[UNIX/Linux]]></category>
		<category><![CDATA[ConfigurationManagement]]></category>
		<category><![CDATA[DevOps]]></category>
		<category><![CDATA[Sysadmin LinkedIn]]></category>

		<guid isPermaLink="false">http://www.blog.manhag.org/?p=492</guid>
		<description><![CDATA[Assalamu Alykom Everybody, I know that this blog has almost been dead and you can only see my twitter updates laying around (seen this line before ?! well, it is the most famous line that bloggers write when they stop writing for some time, &#8212; Back to the topic chatty !! &#8211;) So i have [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_silver" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.blog.manhag.org%252F2010%252F07%252Fannouncing-egypts-devops%252F%22%2C%20%22shorturl%22%3A%20%22http%3A%2F%2Fbit.ly%2FaHAyAK%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Announcing%20Egypt%E2%80%99s%20DevOps%22%20%7D);"></div>
<p style="text-align: center;">
<p style="text-align: center;"><a href="http://www.blog.manhag.org/wp-content/uploads/2010/07/Sysadmin-voodoo.png"><img class="aligncenter size-full wp-image-500" title="Sysadmin-voodoo" src="http://www.blog.manhag.org/wp-content/uploads/2010/07/Sysadmin-voodoo.png" alt="" width="311" height="386" /></a></p>
<p>Assalamu Alykom Everybody,</p>
<p>I know that this blog has almost been dead and you can only see my twitter updates laying around (seen this line before ?! well, it is the most famous line that bloggers write when they stop writing for some time, &#8212; Back to the topic chatty !! &#8211;)</p>
<p>So i have been working in the Egyptian market for quite some time now in the field of UNIX-like/Linux Systems administration, dealt with a lot of technologies like: web operations/scalability, Infrastructure management, web farms,VoIP, Security systems and whole bunch of stuff, which gave me some idea on how do sysadmins (or systems engineers whatever you like <img src='http://www.blog.manhag.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  ) do and achieve their goals.</p>
<p>The point is, I DON&#8217;T LIKE IT, WE ARE BEING KILLED BY OUR JOBS, Systems are evolving and we are not ?! ..</p>
<p>Virtualization and Cloud Computing brought a whole lot of machines, and we still manage them using &#8220;almost&#8221; the same technologies ?! ..</p>
<p>If you are like me and have been searching for a solution for the past year or two, You will see around the internet that people are talking about &#8220;Agile Systems Administration&#8221;, &#8220;Infrastructure As Code&#8221; , &#8220;Command and Control&#8221;, &#8220;Configuration Management&#8221;, &#8220;Server Orchestration&#8221; and &#8220;DevOps&#8221;.</p>
<p>So I started asking people working on our industry, and there is almost NOBODY individually or an enterprise in Egypt that started working with those technologies, just some tiny trials and i just cannot stand the time/power we are wasting on managing our servers &#8220;Old School&#8221;. (If your Enterprise is using some of the technologies mentioned above, please tell us in the comments or mail me personally, I would love to have a chat about that.)</p>
<p>So within the next days isA, i will start doing some steps to get us out of the misery <img src='http://www.blog.manhag.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> , may be creating some collaboration channels, contacting key professionals on that topic, who knows may be even making and event/sessions about it ..</p>
<p>But first I need your trusty comments, What do you think of the technologies mentioned ? Do you see it applicable at your employer ? Did you start using it ?</p>

]]></content:encoded>
			<wfw:commentRss>http://www.blog.manhag.org/2010/07/announcing-egypts-devops/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Routing calls from Zap Trunks to SIP trunks in Asterisk</title>
		<link>http://www.blog.manhag.org/2010/03/routing-calls-from-zap-trunks-to-sip-trunks-in-asterisk/</link>
		<comments>http://www.blog.manhag.org/2010/03/routing-calls-from-zap-trunks-to-sip-trunks-in-asterisk/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 12:35:40 +0000</pubDate>
		<dc:creator>Ahmed El Gamil</dc:creator>
				<category><![CDATA[Asterisk/VoIP]]></category>
		<category><![CDATA[Open Source Technologies]]></category>
		<category><![CDATA[UNIX/Linux]]></category>
		<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[FreePBX]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[SIP]]></category>
		<category><![CDATA[Zap]]></category>

		<guid isPermaLink="false">http://www.blog.manhag.org/?p=429</guid>
		<description><![CDATA[So i had this situation where i have 2 Asterisk boxes, the 1st one of them had a PRI card and the 2nd one is just attached to the network through an ethernet card Goal: redirect all of the incoming calls on the PRI to the 2nd Asterisk box through a SIP Trunk (The 2nd [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_silver" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.blog.manhag.org%252F2010%252F03%252Frouting-calls-from-zap-trunks-to-sip-trunks-in-asterisk%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Routing%20calls%20from%20Zap%20Trunks%20to%20SIP%20trunks%20in%20Asterisk%22%20%7D);"></div>
<p>So i had this situation where i have 2 Asterisk boxes, the 1st one of them had a PRI card and the 2nd one is just attached to the network through an ethernet card</p>
<p><strong><span style="text-decoration: underline;">Goal:</span></strong> redirect all of the incoming calls on the PRI to the 2nd Asterisk box through a SIP Trunk (The 2nd box holds the IVR and all of those stuff, all of the IP phones are connecting to this one), There was no decent documentation about this out there so i am documenting this and may be someone will find it useful.</p>
<p>Here is what you should do (I am assuming you are using an Asterisk installation that uses FreePBX):</p>
<ul>
<li>Create the Zap Trunk as you normally do from the FreePBX interface: Trunks -&gt; Add Zap Trunk</li>
<li>Create a SIP trunk that points to the 2nd Asterisk box, we will use this Trunk later in the configuration: Trunks -&gt; Add SIP Trunk, scroll down to outgoing settings and add the following
<ul>
<li>Trunk name: to-2ndAsterisk</li>
<li>Peer details:</li>
</ul>
</li>
</ul>
<blockquote><p>type=peer</p>
<p>host=&lt;IP Address of 2nd Asterisk Box&gt;</p></blockquote>
<ul>
<li>Connect to the 1st Asterisk box using SSH and edit the file /etc/asterisk/dahdi-channels.conf, you will find some configuration like</li>
</ul>
<blockquote>
<div id="_mcePaste">group=0,11</div>
<div id="_mcePaste"><strong>context=from-pstn</strong></div>
<div id="_mcePaste">switchtype = euroisdn</div>
<div id="_mcePaste">signalling = pri_cpe</div>
<div id="_mcePaste">channel =&gt; 1-15,17-31</div>
<div id="_mcePaste">context = default</div>
<div id="_mcePaste">group = 63</div>
</blockquote>
<ul>
<li>So as you can see all of the incoming calls are directed to the from-pstn context, we will now edit this line to direct the calls to the from-pstn-custom context and do the rest of the magic in this context so the file should be as follows</li>
</ul>
<blockquote>
<div id="_mcePaste">group=0,11</div>
<div id="_mcePaste"><strong>context=from-pstn-custom</strong></div>
<div id="_mcePaste">switchtype = euroisdn</div>
<div id="_mcePaste">signalling = pri_cpe</div>
<div id="_mcePaste">channel =&gt; 1-15,17-31</div>
<div id="_mcePaste">context = default</div>
<div id="_mcePaste">group = 63</div>
</blockquote>
<ul>
<li>Now edit the file /etc/asterisk/extensions_custom.conf and add the following at the end of the file</li>
</ul>
<blockquote><p>[from-pstn-custom]<br />
exten =&gt; _.,1,Dial(SIP/to-2ndAsterisk/${EXTEN:2},20,rt)</p></blockquote>
<p>So what this does is that it matches all of the calls (_.) then redirect them through the SIP trunk to the 2nd Asterisk box</p>
<ul>
<li>And the last step is to allow calls coming from the 1st Box to the 2nd Box, you should do IP-based authentication on the 2nd box by editing /etc/asterisk/sip_custom.conf and add the following</li>
</ul>
<blockquote><p>[1stAsterisk]<br />
type=peer<br />
canreinvite=no<br />
host=&lt;IP Address of 1st Asterisk Box&gt;<br />
context=from-pstn<br />
nat=no<br />
dtmfmode=rfc2833<br />
disallow=all<br />
allow=ulaw<br />
insecure=port<br />
qualify=yes</p></blockquote>
<p>Of course you can now create any inbound routes on the 2nd Asterisk Box to match your needs.</p>
<p>I hope this works for you, and if you need any assistance please don&#8217;t hesitate to ask me in the comments</p>
<p>Thanks for listening <img src='http://www.blog.manhag.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

]]></content:encoded>
			<wfw:commentRss>http://www.blog.manhag.org/2010/03/routing-calls-from-zap-trunks-to-sip-trunks-in-asterisk/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing Adobe Air under Fedora 12</title>
		<link>http://www.blog.manhag.org/2010/03/installing-adobe-air-under-fedora-12/</link>
		<comments>http://www.blog.manhag.org/2010/03/installing-adobe-air-under-fedora-12/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 18:57:10 +0000</pubDate>
		<dc:creator>Ahmed El Gamil</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[UNIX/Linux]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[YUM]]></category>

		<guid isPermaLink="false">http://www.blog.manhag.org/?p=422</guid>
		<description><![CDATA[After having some problems trying to install Adobe Air under my Fedora 12 installation, here is the what you should do to get it up and running: Install the following packages usign YUM yum install gtk2-devel rpm-devel xterm Solve the certificates issue using the command for c in /etc/opt/Adobe/certificates/crypt/*.0; do aucm -n $(basename $c) -t [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_silver" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.blog.manhag.org%252F2010%252F03%252Finstalling-adobe-air-under-fedora-12%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Installing%20Adobe%20Air%20under%20Fedora%2012%22%20%7D);"></div>
<p>After having some problems trying to install Adobe Air under my Fedora 12 installation, here is the what you should do to get it up and running:</p>
<ul>
<li>Install the following packages usign YUM</li>
</ul>
<blockquote><p>yum install gtk2-devel rpm-devel xterm</p></blockquote>
<ul>
<li>Solve the certificates issue using the command</li>
</ul>
<blockquote><p>for c in /etc/opt/Adobe/certificates/crypt/*.0; do aucm -n $(basename $c) -t true; done</p></blockquote>
<ul>
<li>Now you can navigate to where you download the binary and then do the following</li>
</ul>
<blockquote><p>chmod +x AdobeAIRInstaller.bin</p>
<p>./AdobeAIRInstaller.bin</p></blockquote>
<p>BTW, this was under a 32-bit installation.</p>
<p>Hope this solves the problem.</p>

]]></content:encoded>
			<wfw:commentRss>http://www.blog.manhag.org/2010/03/installing-adobe-air-under-fedora-12/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>A picture is worth a thousand words.. Uptime</title>
		<link>http://www.blog.manhag.org/2009/10/a-picture-is-worth-a-thousand-words-uptime/</link>
		<comments>http://www.blog.manhag.org/2009/10/a-picture-is-worth-a-thousand-words-uptime/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 12:39:27 +0000</pubDate>
		<dc:creator>Ahmed El Gamil</dc:creator>
				<category><![CDATA[/dev/random]]></category>
		<category><![CDATA[UNIX/Linux]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[manhag.org]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[uptime]]></category>

		<guid isPermaLink="false">http://www.blog.manhag.org/?p=402</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_silver" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.blog.manhag.org%252F2009%252F10%252Fa-picture-is-worth-a-thousand-words-uptime%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22A%20picture%20is%20worth%20a%20thousand%20words..%20Uptime%22%20%7D);"></div>
<p><img class="aligncenter size-full wp-image-403" title="Screenshot" src="http://www.blog.manhag.org/wp-content/uploads/2009/10/Screenshot.png" alt="Screenshot" width="507" height="64" /></p>

]]></content:encoded>
			<wfw:commentRss>http://www.blog.manhag.org/2009/10/a-picture-is-worth-a-thousand-words-uptime/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Virtualization &#8230;</title>
		<link>http://www.blog.manhag.org/2009/04/virtualization/</link>
		<comments>http://www.blog.manhag.org/2009/04/virtualization/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 17:23:16 +0000</pubDate>
		<dc:creator>Ahmed El Gamil</dc:creator>
				<category><![CDATA[UNIX/Linux]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://www.blog.manhag.org/?p=344</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_silver" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.blog.manhag.org%252F2009%252F04%252Fvirtualization%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Virtualization%20...%22%20%7D);"></div>
<p style="text-align: center;"><a href="http://blog.manhag.org/wp-content/uploads/2009/04/virtualization1.png"><img class="aligncenter size-large wp-image-343" title="virtualization1" src="http://www.blog.manhag.org/wp-content/uploads/2009/04/virtualization1-1024x640.png" alt="virtualization1" width="1024" height="640" /></a></p>

]]></content:encoded>
			<wfw:commentRss>http://www.blog.manhag.org/2009/04/virtualization/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Auto-completion in Ruby IRB</title>
		<link>http://www.blog.manhag.org/2009/02/auto-completion-in-ruby-irb/</link>
		<comments>http://www.blog.manhag.org/2009/02/auto-completion-in-ruby-irb/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 03:32:16 +0000</pubDate>
		<dc:creator>Ahmed El Gamil</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[UNIX/Linux]]></category>
		<category><![CDATA[.irbrc]]></category>
		<category><![CDATA[auto-completion]]></category>

		<guid isPermaLink="false">http://www.blog.manhag.org/?p=317</guid>
		<description><![CDATA[الحمد لله و كفى وصلاة و سلاماً على عباده الذين اصطفى ثم أما بعد.. فبينما أقوم بتجربة لغة البرمجة Ruby كلغة بديلة لل Bash Scripting للقيام ببعض أعمال اداره نظم التشغيل (System Administration) (والتى تبين لى انها قوية جداً فى هذا المجال و يبدو أنى سأستخدمها من الان فصاعداً), اذ تعرضت لل Interactive Ruby او [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_silver" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.blog.manhag.org%252F2009%252F02%252Fauto-completion-in-ruby-irb%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Auto-completion%20in%20Ruby%20IRB%22%20%7D);"></div>
<p style="text-align: center;" dir="rtl">الحمد لله و كفى وصلاة و سلاماً على عباده الذين اصطفى ثم أما بعد..</p>
<p style="text-align: right;" dir="rtl">فبينما أقوم بتجربة لغة البرمجة <a href="http://ruby-lang.org/" target="_blank">Ruby</a> كلغة بديلة لل Bash Scripting للقيام ببعض أعمال اداره نظم التشغيل (System Administration) (والتى تبين لى انها قوية جداً فى هذا المجال و يبدو أنى سأستخدمها من الان فصاعداً), اذ تعرضت لل Interactive Ruby او ما يسمى أختصاراً  Irb و هو عبارة عن نوع من ال Shells و لكنه للتعامل مع لغة Ruby نفسها لتجربة بعض الطرق البرمجية قبل استخدامها فعلياً فى برامجك..</p>
<p style="text-align: right;" dir="rtl">المشكلة التى قابلتنى هى انى وجدت Irb لا يقوم بعملية الاكمال التلقائى (Auto completion) لل Class &amp; Methods و هذا شىء صعب للغاية على مدمن Shells مثلى !  <img src='http://www.blog.manhag.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
<p style="text-align: right;" dir="rtl">و بعد البحث عن الموضوع مع العملاق <a href="http://www.google.com" target="_blank">جوجل</a> وجدت انه يجب عليك ان تقوم بضبط بعض الخواص فى ملف ال Configuration الخاص ب Irb و الذى يوجد فى مجلد ال Home بأسم <strong>irbrc.</strong> حتى يكون الملف كالاتى</p>
<blockquote>
<pre><strong>IRB.conf[:AUTO_INDENT] = true
IRB.conf[:USE_READLINE] = true
IRB.conf[:LOAD_MODULES] = []  unless IRB.conf.key?(:LOAD_MODULES)
unless IRB.conf[:LOAD_MODULES].include?('irb/completion')
  IRB.conf[:LOAD_MODULES] &lt;&lt; 'irb/completion'
end</strong></pre>
</blockquote>
<p style="text-align: right;" dir="rtl">و هكذا ترى النتيجة بعد الانتهاء من هذا التعديل البسيط  <img src='http://www.blog.manhag.org/wp-includes/images/smilies/icon_cool.gif' alt='8-)' class='wp-smiley' /> </p>
<p style="text-align: right;" dir="rtl"><img class="aligncenter size-full wp-image-320" title="irb" src="http://www.blog.manhag.org/wp-content/uploads/2009/02/irb.png" alt="irb" width="665" height="245" /></p>
<p style="text-align: center;" dir="rtl">سبحانك الله و بحمدك..أشهد ان لا اله إلا أنت..أستغفرك و أتوب إليك</p>

]]></content:encoded>
			<wfw:commentRss>http://www.blog.manhag.org/2009/02/auto-completion-in-ruby-irb/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Pidgin may eat your password !</title>
		<link>http://www.blog.manhag.org/2008/12/pidgin-may-eat-your-password/</link>
		<comments>http://www.blog.manhag.org/2008/12/pidgin-may-eat-your-password/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 18:41:09 +0000</pubDate>
		<dc:creator>Ahmed El Gamil</dc:creator>
				<category><![CDATA[Hacking/Security]]></category>
		<category><![CDATA[UNIX/Linux]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[pidgin]]></category>
		<category><![CDATA[purple]]></category>

		<guid isPermaLink="false">http://www.blog.manhag.org/?p=275</guid>
		<description><![CDATA[الحمد لله و كفى و صلاة و سلاماً على عباده الذين اصطفى EDIT: Added the solution at the end of the post So i have been navigating through my home directory and i found a hidden directory (which starts with a dot .) and i found a directory called .purple..Hmm, i don&#8217;t remember installing an [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_silver" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.blog.manhag.org%252F2008%252F12%252Fpidgin-may-eat-your-password%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Pidgin%20may%20eat%20your%20password%20%21%22%20%7D);"></div>
<p style="text-align: center;">الحمد لله و كفى و صلاة و سلاماً على عباده الذين اصطفى</p>
<p style="text-align: center;"><img class="aligncenter size-thumbnail wp-image-277" title="logopidgin" src="http://www.blog.manhag.org/wp-content/uploads/2008/12/logopidgin-107x150.png" alt="logopidgin" width="86" height="120" /></p>
<p style="text-align: left;"><strong>EDIT:</strong> <span style="text-decoration: underline;">Added the solution at the end of the post</span></p>
<p style="text-align: left;">So i have been navigating through my home directory and i found a hidden directory (which starts with a dot .) and i found a directory called <strong>.purple</strong>..Hmm, i don&#8217;t remember installing an application called purple.. <img src='http://www.blog.manhag.org/wp-includes/images/smilies/icon_surprised.gif' alt=':-o' class='wp-smiley' /> </p>
<p style="text-align: left;">So after some searching i found that the <strong>.purple</strong> directory contains some files related to <a href="http://www.pidgin.im/" target="_blank">pidgin</a> The universal Instant messaging client..okay this sounds reasonable now..the <span style="color: #800080;">pidgin color</span> is purple  <img src='http://www.blog.manhag.org/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' /> </p>
<p style="text-align: left;">okay..before you read any further in this topic please open a terminal in your Linux distro and execute the following command:</p>
<blockquote>
<p style="text-align: left;">cat ~/.purple/acc* | grep &#8220;ord&gt;&#8221;</p>
</blockquote>
<p style="text-align: left;">YES, the output you have seen from this command is REAL !!  <img src='http://www.blog.manhag.org/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' />  ..It is your IM passwords <img src='http://www.blog.manhag.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> <span id="more-275"></span></p>
<p style="text-align: left;">I used some bash tricks to hide what the command really do..but here is what it will really do</p>
<blockquote>
<p style="text-align: left;">cat ~/.purple/accounts.xml | grep password</p>
</blockquote>
<p style="text-align: left;">and if you are using window$, you will find it in C:Documents and Settings%USERNAME%Application Data.purpleaccounts.xml</p>
<p style="text-align: left;">What are we having here ? , well pidgin is not saving the passwords in encrypted format, it is saving them in clear text !</p>
<p style="text-align: left;">So beware.. don&#8217;t save your password on pidgin when using a shared machine with someone else  <img src='http://www.blog.manhag.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
<p style="text-align: center;"><strong>Solution</strong></p>
<p style="text-align: left;">First of all, lets see why did the pidgin team decided not to encrypt the passwords, actually they talked about lots of issue, but to summarize, Here is a quote from their <a href="http://developer.pidgin.im/wiki/PlainTextPasswords" target="_blank">wiki</a>:</p>
<blockquote>
<p style="text-align: left;">Instant messaging is not very secure, and it&#8217;s kind of pointless to spend a lot of time adding protections onto the fairly strong file protections of UNIX (our native platform) when the protocols themselves aren&#8217;t all that secure</p>
</blockquote>
<p style="text-align: left;"><span style="text-decoration: underline;">Edit</span>: Kamasheto added the following quote in the comments, thanks kama <img src='http://www.blog.manhag.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: left;">
<blockquote cite="http://developer.pidgin.im/wiki/PlainTextPasswords"><p>“But other programs don’t store my password in plain text!”</p>
<p>That’s true. But few of them store it in a way that’s any safer. A Google search for im passwords shows a bunch of hits for getting the passwords out of other IM clients just as easily as Pidgin.</p></blockquote>
<p style="text-align: left;">so they advice you to use key rings that comes with your desktop environment (GNOME and KDE have key rings), there is a project discussing this issue <a href="http://developer.pidgin.im/wiki/GSoC2008/MasterPassword" target="_blank">here</a></p>
<p style="text-align: left;">Another solution is use a master password mechanism, like that one implemented in firefox, you can use this feature in pidgin by install the <a href="http://dooglus.rincevent.net/gaim/" target="_blank">Password Encryption plugin</a></p>
<p style="text-align: left;">Hope this tips will solve the problem isA</p>
<p style="text-align: center;">سبحانك اللهم و بحمدك..أشهد ان لا إله إلا أنت..أستغفرك و أتوب إليك</p>

]]></content:encoded>
			<wfw:commentRss>http://www.blog.manhag.org/2008/12/pidgin-may-eat-your-password/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Working with SubVersion..Part 1</title>
		<link>http://www.blog.manhag.org/2008/11/subversion-1/</link>
		<comments>http://www.blog.manhag.org/2008/11/subversion-1/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 13:34:12 +0000</pubDate>
		<dc:creator>Ahmed El Gamil</dc:creator>
				<category><![CDATA[Open Source Technologies]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[UNIX/Linux]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[xp-dev.com]]></category>

		<guid isPermaLink="false">http://www.blog.manhag.org/?p=233</guid>
		<description><![CDATA[So i have been working with a small personal coding project the last days, and i noticed that i will be distributing the code among several directories and files and i also need to go forward and backward in the code revisions, so i decided to get started with Subversion - The version control system. [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_silver" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.blog.manhag.org%252F2008%252F11%252Fsubversion-1%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Working%20with%20SubVersion..Part%201%22%20%7D);"></div>
<p style="text-align: center;"><a href="http://www.blog.manhag.org/wp-content/uploads/2008/11/subversion_logo-200x173.png"><img class="size-full wp-image-238 alignnone" title="subversion_logo-200x173" src="http://www.blog.manhag.org/wp-content/uploads/2008/11/subversion_logo-200x173.png" alt="" width="200" height="173" /></a></p>
<p style="text-align: left;">So i have been working with a small personal coding project the last days, and i noticed that i will be distributing the code among several directories and files and i also need to go forward and backward in the code revisions, so i decided to get started with <a href="http://en.wikipedia.org/wiki/Subversion_(software)" target="_blank">Subversion</a> - The <a href="http://en.wikipedia.org/wiki/Version_control_system" target="_blank">version control system</a>.</p>
<p style="text-align: left;">I had some problems at first, then things started to get really good after some searching for information here and there, so here is a simple tutorial that will get you up with subversion in no time isA</p>
<h3 style="text-align: left;"><strong>First of all, What is Version control ?</strong></h3>
<blockquote style="text-align: left;"><p><strong>Revision control</strong> (also known as <strong>version control (system) (VCS)</strong>, <strong>source control</strong> or <strong>(source) code management (SCM)</strong>) is the management of multiple revisions of the same unit of information</p>
<p>Changes to these documents are usually identified by incrementing an associated number or letter code, termed the &#8220;revision number&#8221;, &#8220;revision level&#8221;, or simply &#8220;revision&#8221; and associated historically with the person making the change</p></blockquote>
<p style="text-align: left;">So how does this apply to coding and source code, well, when you are working with lots of code some times you need to know how did the code look like at a specific time or specific &#8220;version&#8221;.<span id="more-233"></span></p>
<p style="text-align: left;">also when there is more than one person collabarating to the same project, you need to know who changed that specific piece of code, when he did he changed it and if he commented on the change so you can know about his work</p>
<p style="text-align: left;">Here is a nice video on youtube than explains the issue in a very simple scenario <img src='http://www.blog.manhag.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: left;"><span class="youtube">
<object width="425" height="355">
<param name="movie" value="http://www.youtube.com/v/8wYiabh2hpM?color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;loop=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;rel=1" />
<param name="allowFullScreen" value="true" />
<embed wmode="opaque" src="http://www.youtube.com/v/8wYiabh2hpM?color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;loop=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;rel=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="355"></embed>
<param name="wmode" value="opaque" />
</object>
</span><p><a href="http://www.youtube.com/watch?v=8wYiabh2hpM"><img src="http://img.youtube.com/vi/8wYiabh2hpM/default.jpg" width="130" height="97" border=0></a></p><p><a href="http://www.youtube.com/watch?v=8wYiabh2hpM">www.youtube.com/watch?v=8wYiabh2hpM</a></p></p>
<h3 style="text-align: left;"><strong>Cool, What is Subversion ?</strong></h3>
<blockquote style="text-align: left;"><p><strong>Subversion</strong> (<strong>SVN</strong>) is a <a title="Revision control" href="http://en.wikipedia.org/wiki/Revision_control" target="_blank">version control</a> system initiated in 2000 by <a title="CollabNet" href="http://en.wikipedia.org/wiki/CollabNet" target="_blank">CollabNet</a> Inc. It is used to maintain current and historical versions of files such as <a title="Source code" href="http://en.wikipedia.org/wiki/Source_code" target="_blank">source code</a>, web pages, and documentation. Its goal is to be a mostly-compatible successor to the widely used <a title="Concurrent Versions System" href="http://en.wikipedia.org/wiki/Concurrent_Versions_System">Concurrent Versions System</a> (CVS).</p></blockquote>
<p style="text-align: left;">SVN is an Open source software and it is currently replacing the <a href="http://en.wikipedia.org/wiki/Concurrent_Versions_System" target="_blank">CVS</a></p>
<h3 style="text-align: left;"><strong>What are the ingredients that i need to start working with SubVersion ?</strong></h3>
<h4 style="text-align: left;">The Server</h4>
<p style="text-align: left;">First, you need a SVN Server (SVN works on server/client architecture), which basically contains some kind of a database that holds information about the different &#8220;revisions&#8221; of your code</p>
<p style="text-align: left;">we will skip setting up the server part as we will be using a hosted service on a remote server (note that you can actually build one on your local machine).</p>
<p style="text-align: left;">I have searched for a lot of online services and i think the best one that fitted my needs is <a href="http://www.xp-dev.com" target="_blank">XP-Dev.com</a></p>
<p style="text-align: left;">Go register an account there, and after logging in create a SubVersion repo from the <a href="http://www.xp-dev.com/subversion/" target="_blank">&#8220;subversion&#8221; tab</a></p>
<p style="text-align: left;">after you create the repo, you will get the following URLs</p>
<blockquote>
<p style="text-align: left;">https://svn.xp-dev.com/svn/repo_name/ (SSL)<br />
http://svn.xp-dev.com/svn/repo_name/ (No SSL)</p></blockquote>
<p style="text-align: left;">So these are the URLs that you can use to access the files in the repo and also use with SVN client</p>
<h4 style="text-align: left;">The Client</h4>
<p style="text-align: left;">The client is used to connect to the SVN server, at our case we will be using the svn command under UNIX/Linux based systems, if you want a GUI you can use <a href="http://rapidsvn.tigris.org/" target="_blank">RapidSVN</a> under Linux and <a href="http://tortoisesvn.tigris.org/" target="_blank">TorsieSVN</a> under windows</p>
<p style="text-align: left;">We will be discussing the Client in the next Post isA <img src='http://www.blog.manhag.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p style="text-align: left;">Please share your comments on the materials presented here , may be we will put it in the <a href="http://www.cat-hackers.com/wiki" target="_blank">Hackers Wiki</a> if it is good enough</p>
<p style="text-align: center;">سبحانك اللهم و بحمدك..أشهد ان لا اله الا أنت..أستغفرك و أتوب إليك</p>

]]></content:encoded>
			<wfw:commentRss>http://www.blog.manhag.org/2008/11/subversion-1/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

