<?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>AmirWatad.com &#187; Linux</title>
	<atom:link href="http://www.amirwatad.com/blog/archives/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.amirwatad.com/blog</link>
	<description>Remember the name ;)</description>
	<lastBuildDate>Wed, 22 Sep 2010 22:04:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Move Gnome Panel To The Second Monitor &#8211; Ubuntu</title>
		<link>http://www.amirwatad.com/blog/archives/2010/08/24/move-gnome-panel-to-the-second-monitor-ubuntu/</link>
		<comments>http://www.amirwatad.com/blog/archives/2010/08/24/move-gnome-panel-to-the-second-monitor-ubuntu/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 23:47:15 +0000</pubDate>
		<dc:creator>Amir Watad</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.amirwatad.com/blog/?p=600</guid>
		<description><![CDATA[Say you have two monitors set up as &#8220;extended desktop&#8221;, and you want to move the gnome-panel from one monitor to the other monitor. Here is how to do it in Ubuntu (Tested on Ubuntu 10.04): 1. Right click the panel, choose &#8220;properties&#8221;. 2. In &#8220;General&#8221; tab, uncheck &#8220;expand&#8221;. 3. Drag the panel from its [...]<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2010/08/24/move-gnome-panel-to-the-second-monitor-ubuntu/">Move Gnome Panel To The Second Monitor &#8211; Ubuntu</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Say you have two monitors set up as &#8220;extended desktop&#8221;, and you want to move the gnome-panel from one monitor to the other monitor.</p>
<p>Here is how to do it in Ubuntu (Tested on Ubuntu 10.04):</p>
<p>1. Right click the panel, choose &#8220;properties&#8221;.</p>
<p>2. In &#8220;General&#8221; tab, uncheck &#8220;expand&#8221;.</p>
<p>3. Drag the panel from its left or right edge to the other monitor.</p>
<p>4. Right click the panel, choose &#8220;properties&#8221;, in &#8220;General&#8221; tab recheck &#8220;expand&#8221;.</p>
<p>You&#8217;re done. Have fun <img src='http://www.amirwatad.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' title="Move Gnome Panel To The Second Monitor   Ubuntu" /> </p>
<p>Found the tip <a title="Move Gnome Panel To The Second Monitor" href="http://chrisjean.com/2009/11/03/move-gnome-panels-to-a-different-monitor-in-ubuntu/" target="_blank">here</a>.</p>
<p>Update:</p>
<p>An easier way, is just to hold &#8220;Alt&#8221; key, and drag the panel from one monitor to the other. No need to play with the &#8220;expand&#8221; setting. <img src='http://www.amirwatad.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' title="Move Gnome Panel To The Second Monitor   Ubuntu" /> </p>
<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2010/08/24/move-gnome-panel-to-the-second-monitor-ubuntu/">Move Gnome Panel To The Second Monitor &#8211; Ubuntu</a></p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=Move+Gnome+Panel+To+The+Second+Monitor+%E2%80%93+Ubuntu+http://bit.ly/boqc2z" title="Post to Twitter"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" style="margin:0;" title="Move Gnome Panel To The Second Monitor   Ubuntu" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.amirwatad.com/blog/archives/2010/08/24/move-gnome-panel-to-the-second-monitor-ubuntu/&amp;title=Move+Gnome+Panel+To+The+Second+Monitor+%E2%80%93+Ubuntu" title="Post to Delicious"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" style="margin:0 0 0 2px;" title="Move Gnome Panel To The Second Monitor   Ubuntu" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.amirwatad.com/blog/archives/2010/08/24/move-gnome-panel-to-the-second-monitor-ubuntu/&amp;title=Move+Gnome+Panel+To+The+Second+Monitor+%E2%80%93+Ubuntu" title="Post to Digg"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-digg-big3.png" alt="Post to Digg" style="margin:0 0 0 2px;" title="Move Gnome Panel To The Second Monitor   Ubuntu" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.amirwatad.com/blog/archives/2010/08/24/move-gnome-panel-to-the-second-monitor-ubuntu/&amp;t=Move+Gnome+Panel+To+The+Second+Monitor+%E2%80%93+Ubuntu" title="Post to Facebook"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big3.png" alt="Post to Facebook" style="margin:0 0 0 2px;" title="Move Gnome Panel To The Second Monitor   Ubuntu" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://www.amirwatad.com/blog/archives/2010/08/24/move-gnome-panel-to-the-second-monitor-ubuntu/&amp;title=Move+Gnome+Panel+To+The+Second+Monitor+%E2%80%93+Ubuntu" title="Post to Reddit"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big3.png" alt="Post to Reddit" style="margin:0 0 0 2px;" title="Move Gnome Panel To The Second Monitor   Ubuntu" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://www.amirwatad.com/blog/archives/2010/08/24/move-gnome-panel-to-the-second-monitor-ubuntu/&amp;title=Move+Gnome+Panel+To+The+Second+Monitor+%E2%80%93+Ubuntu" title="Post to StumbleUpon"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-su-big3.png" alt="Post to StumbleUpon" style="margin:0 0 0 2px;" title="Move Gnome Panel To The Second Monitor   Ubuntu" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.amirwatad.com/blog/archives/2010/08/24/move-gnome-panel-to-the-second-monitor-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Colorize Make, GCC and Diff&#8217;s Output</title>
		<link>http://www.amirwatad.com/blog/archives/2010/07/17/colorize-make-gcc-and-diffs-output/</link>
		<comments>http://www.amirwatad.com/blog/archives/2010/07/17/colorize-make-gcc-and-diffs-output/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 16:12:52 +0000</pubDate>
		<dc:creator>Amir Watad</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux debug programming]]></category>

		<guid isPermaLink="false">http://www.amirwatad.com/blog/?p=585</guid>
		<description><![CDATA[Generally, output is more readable when it has colors to allow you distinguish between warnings, errors and progress logs. Using colormake, colorgcc and colordiff, you can have the output of make, gcc, diff (respectively) coloured. To install in Ubuntu: sudo apt-get install colorgcc colormake colordiff You might want to use aliases to override the normal [...]<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2010/07/17/colorize-make-gcc-and-diffs-output/">Colorize Make, GCC and Diff&#8217;s Output</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Generally, output is more readable when it has colors to allow you distinguish between warnings, errors and progress logs.</p>
<p>Using colormake, colorgcc and colordiff, you can have the output of make, gcc, diff (respectively) coloured.</p>
<p>To install in Ubuntu:</p>
<blockquote><p>sudo apt-get install colorgcc colormake colordiff</p></blockquote>
<p>You might want to use aliases to override the normal make/gcc/diff commands.</p>
<p>Original tip from <a title="commandlinefu tip" href="http://www.commandlinefu.com/commands/view/2884/colorize-make-gcc-and-diff-output" target="_blank">here</a>.</p>
<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2010/07/17/colorize-make-gcc-and-diffs-output/">Colorize Make, GCC and Diff&#8217;s Output</a></p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=Colorize+Make%2C+GCC+and+Diff%E2%80%99s+Output+http://bit.ly/9xeeiD" title="Post to Twitter"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" style="margin:0;" title="Colorize Make, GCC and Diffs Output" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.amirwatad.com/blog/archives/2010/07/17/colorize-make-gcc-and-diffs-output/&amp;title=Colorize+Make%2C+GCC+and+Diff%E2%80%99s+Output" title="Post to Delicious"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" style="margin:0 0 0 2px;" title="Colorize Make, GCC and Diffs Output" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.amirwatad.com/blog/archives/2010/07/17/colorize-make-gcc-and-diffs-output/&amp;title=Colorize+Make%2C+GCC+and+Diff%E2%80%99s+Output" title="Post to Digg"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-digg-big3.png" alt="Post to Digg" style="margin:0 0 0 2px;" title="Colorize Make, GCC and Diffs Output" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.amirwatad.com/blog/archives/2010/07/17/colorize-make-gcc-and-diffs-output/&amp;t=Colorize+Make%2C+GCC+and+Diff%E2%80%99s+Output" title="Post to Facebook"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big3.png" alt="Post to Facebook" style="margin:0 0 0 2px;" title="Colorize Make, GCC and Diffs Output" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://www.amirwatad.com/blog/archives/2010/07/17/colorize-make-gcc-and-diffs-output/&amp;title=Colorize+Make%2C+GCC+and+Diff%E2%80%99s+Output" title="Post to Reddit"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big3.png" alt="Post to Reddit" style="margin:0 0 0 2px;" title="Colorize Make, GCC and Diffs Output" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://www.amirwatad.com/blog/archives/2010/07/17/colorize-make-gcc-and-diffs-output/&amp;title=Colorize+Make%2C+GCC+and+Diff%E2%80%99s+Output" title="Post to StumbleUpon"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-su-big3.png" alt="Post to StumbleUpon" style="margin:0 0 0 2px;" title="Colorize Make, GCC and Diffs Output" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.amirwatad.com/blog/archives/2010/07/17/colorize-make-gcc-and-diffs-output/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Send Self Reminders To Your Email From The Command Line</title>
		<link>http://www.amirwatad.com/blog/archives/2009/03/21/send-self-reminders-to-your-email-from-the-command-line/</link>
		<comments>http://www.amirwatad.com/blog/archives/2009/03/21/send-self-reminders-to-your-email-from-the-command-line/#comments</comments>
		<pubDate>Sat, 21 Mar 2009 11:37:59 +0000</pubDate>
		<dc:creator>Amir Watad</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Command Line Interface]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Productivity]]></category>

		<guid isPermaLink="false">http://www.amirwatad.com/blog/?p=399</guid>
		<description><![CDATA[The following will allow you to send self reminders/TODO items to your Email at a specific time. For example, if you want to remind yourself to submit an assignment at 15:20, you&#8217;ll be able to run this command to do it: tdr &#8220;submit assignment&#8221; 15:20 This will send an Email to you, with the subject: [...]<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/03/21/send-self-reminders-to-your-email-from-the-command-line/">Send Self Reminders To Your Email From The Command Line</a></p>
]]></description>
			<content:encoded><![CDATA[<p>The following will allow you to send self reminders/TODO items to your Email at a specific time.</p>
<p>For example, if you want to remind yourself to submit an assignment at 15:20, you&#8217;ll be able to run this command to do it:</p>
<blockquote><p>tdr &#8220;submit assignment&#8221; 15:20</p>
</blockquote>
<p>This will send an Email to you, with the subject: [TODO] submit assignment. Email will be sent at 15:20.</p>
<p>To be able to do this, you migh need to configure your mail command (see <a title="Configure Mail" href="http://www.amirwatad.com/blog/archives/2009/03/21/send-email-from-the-command-line-using-gmail-account/" target="_blank">my post about this</a>).</p>
<p>Then, add this function to your ~/.bashrc file (or any file sources in bashrc):</p>
<p><span id="more-399"></span></p>
<blockquote><p>function tdr {echo &#8220;mail -s \&#8221;[TODO] $1\&#8221; your.mail@domain.com &lt; /dev/null&#8221; | at &#8220;$2&#8243; 2&gt; /dev/null;}</p>
</blockquote>
<p>tdr stands for: TODO reminders. Of course you can choose any other name for the function.</p>
<p>No execute this:</p>
<blockquote><p>source ~/.bashrc</p>
</blockquote>
<p>That&#8217;s it, now you can try it:</p>
<blockquote><p>tdr &#8220;Testing&#8221; 15:30</p>
</blockquote>
<p>The [TODO] label in the subject is added to let you easily use Gmail filters to apply a specific label to your TODO items.</p>
<p>Based on <a title="Tips4Linux" href="http://tips4linux.com/set-e-mail-reminders-from-the-linux-command-line/" target="_blank">a tip at Tips4Linux</a></p>
<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/03/21/send-self-reminders-to-your-email-from-the-command-line/">Send Self Reminders To Your Email From The Command Line</a></p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=Send+Self+Reminders+To+Your+Email+From+The+Command+Line+http://bit.ly/VhOK" title="Post to Twitter"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" style="margin:0;" title="Send Self Reminders To Your Email From The Command Line" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.amirwatad.com/blog/archives/2009/03/21/send-self-reminders-to-your-email-from-the-command-line/&amp;title=Send+Self+Reminders+To+Your+Email+From+The+Command+Line" title="Post to Delicious"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" style="margin:0 0 0 2px;" title="Send Self Reminders To Your Email From The Command Line" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.amirwatad.com/blog/archives/2009/03/21/send-self-reminders-to-your-email-from-the-command-line/&amp;title=Send+Self+Reminders+To+Your+Email+From+The+Command+Line" title="Post to Digg"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-digg-big3.png" alt="Post to Digg" style="margin:0 0 0 2px;" title="Send Self Reminders To Your Email From The Command Line" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.amirwatad.com/blog/archives/2009/03/21/send-self-reminders-to-your-email-from-the-command-line/&amp;t=Send+Self+Reminders+To+Your+Email+From+The+Command+Line" title="Post to Facebook"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big3.png" alt="Post to Facebook" style="margin:0 0 0 2px;" title="Send Self Reminders To Your Email From The Command Line" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://www.amirwatad.com/blog/archives/2009/03/21/send-self-reminders-to-your-email-from-the-command-line/&amp;title=Send+Self+Reminders+To+Your+Email+From+The+Command+Line" title="Post to Reddit"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big3.png" alt="Post to Reddit" style="margin:0 0 0 2px;" title="Send Self Reminders To Your Email From The Command Line" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://www.amirwatad.com/blog/archives/2009/03/21/send-self-reminders-to-your-email-from-the-command-line/&amp;title=Send+Self+Reminders+To+Your+Email+From+The+Command+Line" title="Post to StumbleUpon"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-su-big3.png" alt="Post to StumbleUpon" style="margin:0 0 0 2px;" title="Send Self Reminders To Your Email From The Command Line" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.amirwatad.com/blog/archives/2009/03/21/send-self-reminders-to-your-email-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mount ISO Images From the Command Line</title>
		<link>http://www.amirwatad.com/blog/archives/2009/03/21/mount-iso-images-from-the-command-line/</link>
		<comments>http://www.amirwatad.com/blog/archives/2009/03/21/mount-iso-images-from-the-command-line/#comments</comments>
		<pubDate>Sat, 21 Mar 2009 00:01:39 +0000</pubDate>
		<dc:creator>Amir Watad</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Command Line Interface]]></category>
		<category><![CDATA[Short Posts]]></category>

		<guid isPermaLink="false">http://www.amirwatad.com/blog/?p=392</guid>
		<description><![CDATA[To mount an ISO image from the linux command line: sudo mount -o loop image_file.iso /path/to/mount/folder Via Tips4Linux --------- Note: Some RSS readers might display this post with incorrect format. View original post at AmirWatad.com Mount ISO Images From the Command Line<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/03/21/mount-iso-images-from-the-command-line/">Mount ISO Images From the Command Line</a></p>
]]></description>
			<content:encoded><![CDATA[<p>To mount an ISO image from the linux command line:</p>
<blockquote><p>sudo mount -o loop image_file.iso /path/to/mount/folder</p>
</blockquote>
<p>Via <a title="Tips4Linux" href="http://tips4linux.com/mount-iso-images-in-linux-using-the-command-line/" target="_blank">Tips4Linux</a></p>
<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/03/21/mount-iso-images-from-the-command-line/">Mount ISO Images From the Command Line</a></p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=Mount+ISO+Images+From+the+Command+Line+http://bit.ly/117MOh" title="Post to Twitter"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" style="margin:0;" title="Mount ISO Images From the Command Line" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.amirwatad.com/blog/archives/2009/03/21/mount-iso-images-from-the-command-line/&amp;title=Mount+ISO+Images+From+the+Command+Line" title="Post to Delicious"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" style="margin:0 0 0 2px;" title="Mount ISO Images From the Command Line" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.amirwatad.com/blog/archives/2009/03/21/mount-iso-images-from-the-command-line/&amp;title=Mount+ISO+Images+From+the+Command+Line" title="Post to Digg"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-digg-big3.png" alt="Post to Digg" style="margin:0 0 0 2px;" title="Mount ISO Images From the Command Line" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.amirwatad.com/blog/archives/2009/03/21/mount-iso-images-from-the-command-line/&amp;t=Mount+ISO+Images+From+the+Command+Line" title="Post to Facebook"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big3.png" alt="Post to Facebook" style="margin:0 0 0 2px;" title="Mount ISO Images From the Command Line" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://www.amirwatad.com/blog/archives/2009/03/21/mount-iso-images-from-the-command-line/&amp;title=Mount+ISO+Images+From+the+Command+Line" title="Post to Reddit"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big3.png" alt="Post to Reddit" style="margin:0 0 0 2px;" title="Mount ISO Images From the Command Line" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://www.amirwatad.com/blog/archives/2009/03/21/mount-iso-images-from-the-command-line/&amp;title=Mount+ISO+Images+From+the+Command+Line" title="Post to StumbleUpon"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-su-big3.png" alt="Post to StumbleUpon" style="margin:0 0 0 2px;" title="Mount ISO Images From the Command Line" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.amirwatad.com/blog/archives/2009/03/21/mount-iso-images-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Modify Ctrl-Alt-Del Behavior in Linux</title>
		<link>http://www.amirwatad.com/blog/archives/2009/03/21/modify-ctrl-alt-del-behavior-in-linux/</link>
		<comments>http://www.amirwatad.com/blog/archives/2009/03/21/modify-ctrl-alt-del-behavior-in-linux/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 22:03:24 +0000</pubDate>
		<dc:creator>Amir Watad</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.amirwatad.com/blog/?p=386</guid>
		<description><![CDATA[I hate the Ctrl-Alt-Del combination, maybe because it reminds me of the unpleasant days when I used other operating systems. If you want to modify it, then here is how to do this: In Ubuntu Open the file /etc/event.d/control-alt-delete  (You need supper user privileges) You should see a line similar to this: exec /sbin/shutdown -r [...]<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/03/21/modify-ctrl-alt-del-behavior-in-linux/">Modify Ctrl-Alt-Del Behavior in Linux</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I hate the Ctrl-Alt-Del combination, maybe because it reminds me of the unpleasant days when I used other operating systems. If you want to modify it, then here is how to do this:</p>
<p><strong>In Ubuntu</strong></p>
<p>Open the file /etc/event.d/control-alt-delete  (You need supper user privileges)</p>
<p>You should see a line similar to this:</p>
<blockquote><p>exec /sbin/shutdown -r now &#8220;Control-Alt-Delete pressed&#8221;</p>
</blockquote>
<p>Which binds ctrl-alt-del to rebooting your computer. Change it to execute any other program you want. Of course you can disable it completely by commenting the whole file.</p>
<p><span id="more-386"></span></p>
<p><strong>Other Distros </strong>(via <a title="Tips4Linux" href="http://tips4linux.com/ctrlaltdelete-your-own-way/" target="_blank">Tips4Linux</a>)</p>
<p>In other distros, open /etc/inittab.</p>
<p>You should see something like this:</p>
<blockquote><p>ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now</p>
</blockquote>
<p>To disable ctrl-alt-del, just comment this line. To bind it with other program, just replace &#8220;/sbin/shutdown -t1 -a -r now&#8221; with the program you want to execute.</p>
<p>Enjoy!</p>
<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/03/21/modify-ctrl-alt-del-behavior-in-linux/">Modify Ctrl-Alt-Del Behavior in Linux</a></p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=Modify+Ctrl-Alt-Del+Behavior+in+Linux+http://bit.ly/y55r6" title="Post to Twitter"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" style="margin:0;" title="Modify Ctrl Alt Del Behavior in Linux" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.amirwatad.com/blog/archives/2009/03/21/modify-ctrl-alt-del-behavior-in-linux/&amp;title=Modify+Ctrl-Alt-Del+Behavior+in+Linux" title="Post to Delicious"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" style="margin:0 0 0 2px;" title="Modify Ctrl Alt Del Behavior in Linux" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.amirwatad.com/blog/archives/2009/03/21/modify-ctrl-alt-del-behavior-in-linux/&amp;title=Modify+Ctrl-Alt-Del+Behavior+in+Linux" title="Post to Digg"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-digg-big3.png" alt="Post to Digg" style="margin:0 0 0 2px;" title="Modify Ctrl Alt Del Behavior in Linux" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.amirwatad.com/blog/archives/2009/03/21/modify-ctrl-alt-del-behavior-in-linux/&amp;t=Modify+Ctrl-Alt-Del+Behavior+in+Linux" title="Post to Facebook"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big3.png" alt="Post to Facebook" style="margin:0 0 0 2px;" title="Modify Ctrl Alt Del Behavior in Linux" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://www.amirwatad.com/blog/archives/2009/03/21/modify-ctrl-alt-del-behavior-in-linux/&amp;title=Modify+Ctrl-Alt-Del+Behavior+in+Linux" title="Post to Reddit"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big3.png" alt="Post to Reddit" style="margin:0 0 0 2px;" title="Modify Ctrl Alt Del Behavior in Linux" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://www.amirwatad.com/blog/archives/2009/03/21/modify-ctrl-alt-del-behavior-in-linux/&amp;title=Modify+Ctrl-Alt-Del+Behavior+in+Linux" title="Post to StumbleUpon"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-su-big3.png" alt="Post to StumbleUpon" style="margin:0 0 0 2px;" title="Modify Ctrl Alt Del Behavior in Linux" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.amirwatad.com/blog/archives/2009/03/21/modify-ctrl-alt-del-behavior-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing Control Characters From a Text File in Linux</title>
		<link>http://www.amirwatad.com/blog/archives/2009/01/28/removing-control-characters-from-a-text-file-in-linux/</link>
		<comments>http://www.amirwatad.com/blog/archives/2009/01/28/removing-control-characters-from-a-text-file-in-linux/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 23:43:56 +0000</pubDate>
		<dc:creator>Amir Watad</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Command Line Interface]]></category>

		<guid isPermaLink="false">http://www.amirwatad.com/blog/?p=217</guid>
		<description><![CDATA[A few weeks ago, I had a text file generated in widows, and it had the &#8220;^M&#8221; control character at the end of each line. I had to compare it with a similar file generated on my Linux machine (using diff), and because of these control characters it failed diff. The first step was to [...]<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/01/28/removing-control-characters-from-a-text-file-in-linux/">Removing Control Characters From a Text File in Linux</a></p>
]]></description>
			<content:encoded><![CDATA[<p>A few weeks ago, I had a text file generated in widows, and it had the &#8220;^M&#8221; control character at the end of each line. I had to compare it with a similar file generated on my Linux machine (using diff), and because of these control characters it failed diff.</p>
<p>The first step was to check why diff failed. Normally, you cannot see these control characters, and one might be surprised that the comparison fails thought the files are exactly the same. In order to see these characters, one should use &#8220;-A&#8221; flag with the cat command:</p>
<p><span id="more-217"></span></p>
<blockquote><p>cat -A textfile</p>
</blockquote>
<p>Next step is to removc these characters. This wasn&#8217;t easy, and I asked a <a title="LIUB" href="http://liub.com" target="_blank">friend</a> who referred me to the program &#8220;dos2unix&#8221; which converts text files generated in dos/widows into their Linux counterparts (and vice versa).</p>
<p>This worked!</p>
<p>Recently, I found another way to do this, using &#8220;sed&#8221;. The trick was to type the control character &#8220;^M&#8221; in the terminal.</p>
<p>This is how we&#8217;d want the sed command to look like:</p>
<pre>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sed -e 's/^M//g' widosTextFile &gt; newTextFile</div></td></tr></tbody></table></div>
</pre>
<p>This should replace the character &#8220;^M&#8221; by nothing (The &#8216;g&#8217; is for global: i.e. replace every instance of ^M in each line, not only the first instance in each line), which is exactly what we want.</p>
<p>But, just typing ^M won&#8217;t work, since it will be interpretted as two characters, ^ and M, which is not the behavior we want. To type the control character ^M one should use this:  [ctrl]+[v] and then [ctrl]+[m]. This will be displayed as ^M in the terminal, but it will have a completely different meaning.</p>
<p>Hope it helps somebody.</p>
<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/01/28/removing-control-characters-from-a-text-file-in-linux/">Removing Control Characters From a Text File in Linux</a></p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=Removing+Control+Characters+From+a+Text+File+in+Linux+http://bit.ly/XigC0" title="Post to Twitter"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" style="margin:0;" title="Removing Control Characters From a Text File in Linux" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.amirwatad.com/blog/archives/2009/01/28/removing-control-characters-from-a-text-file-in-linux/&amp;title=Removing+Control+Characters+From+a+Text+File+in+Linux" title="Post to Delicious"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" style="margin:0 0 0 2px;" title="Removing Control Characters From a Text File in Linux" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.amirwatad.com/blog/archives/2009/01/28/removing-control-characters-from-a-text-file-in-linux/&amp;title=Removing+Control+Characters+From+a+Text+File+in+Linux" title="Post to Digg"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-digg-big3.png" alt="Post to Digg" style="margin:0 0 0 2px;" title="Removing Control Characters From a Text File in Linux" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.amirwatad.com/blog/archives/2009/01/28/removing-control-characters-from-a-text-file-in-linux/&amp;t=Removing+Control+Characters+From+a+Text+File+in+Linux" title="Post to Facebook"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big3.png" alt="Post to Facebook" style="margin:0 0 0 2px;" title="Removing Control Characters From a Text File in Linux" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://www.amirwatad.com/blog/archives/2009/01/28/removing-control-characters-from-a-text-file-in-linux/&amp;title=Removing+Control+Characters+From+a+Text+File+in+Linux" title="Post to Reddit"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big3.png" alt="Post to Reddit" style="margin:0 0 0 2px;" title="Removing Control Characters From a Text File in Linux" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://www.amirwatad.com/blog/archives/2009/01/28/removing-control-characters-from-a-text-file-in-linux/&amp;title=Removing+Control+Characters+From+a+Text+File+in+Linux" title="Post to StumbleUpon"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-su-big3.png" alt="Post to StumbleUpon" style="margin:0 0 0 2px;" title="Removing Control Characters From a Text File in Linux" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.amirwatad.com/blog/archives/2009/01/28/removing-control-characters-from-a-text-file-in-linux/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Add Colors to Your Manpages</title>
		<link>http://www.amirwatad.com/blog/archives/2008/12/15/add-colors-to-your-manpages/</link>
		<comments>http://www.amirwatad.com/blog/archives/2008/12/15/add-colors-to-your-manpages/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 17:55:34 +0000</pubDate>
		<dc:creator>Amir Watad</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Development]]></category>
		<category><![CDATA[Manpages]]></category>

		<guid isPermaLink="false">http://www.amirwatad.com/blog/?p=165</guid>
		<description><![CDATA[I use the manpages a lot. Manpages are a very useful database of information for linux users and developers. The problem with them is that their appearance becomes boring after a while. I already wrote a post about reading them from firefox, so they&#8217;re displayed in a nice way as html pages. In this post [...]<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2008/12/15/add-colors-to-your-manpages/">Add Colors to Your Manpages</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I use the manpages a lot. Manpages are a very useful database of information for linux users and developers. The problem with them is that their appearance becomes boring after a while.</p>
<p>I already wrote <a title="view manpages in firefox" href="http://www.amirwatad.com/blog/archives/2008/12/15/view-the-manpages-in-firefox/" target="_blank">a post about reading them from firefox</a>, so they&#8217;re displayed in a nice way as html pages.</p>
<p>In this post we&#8217;ll add colors to the manpages viewed from inside the shell.</p>
<p>First, open your ~/.bashrc file. To open it with gedit you can type:</p>
<p>gedit ~/.bashrc</p>
<p><span id="more-165"></span></p>
<p>Now, to the end of this file, append this:</p>
<blockquote><p>export LESS_TERMCAP_mb=$&#8217;\E[01;31m&#8217;<br />
export LESS_TERMCAP_md=$&#8217;\E[01;34m&#8217;<br />
export LESS_TERMCAP_me=$&#8217;\E[0m&#8217;<br />
export LESS_TERMCAP_se=$&#8217;\E[0m&#8217;<br />
export LESS_TERMCAP_so=$&#8217;\E[01;44;33m&#8217;<br />
export LESS_TERMCAP_ue=$&#8217;\E[0m&#8217;<br />
export LESS_TERMCAP_us=$&#8217;\E[01;32m&#8217;</p></blockquote>
<p>The strange &#8216;\E[01;32m&#8217; are special strings which tell the shell to change its foreground&#8217;s/background&#8217;s color (see <a title="write with color to a linux console" href="http://www.amirwatad.com/blog/archives/2008/08/07/printing-with-color-to-linux-console/" target="_blank">my previos post about writing with color in a linux shell</a>). You can change them to suite your terminal&#8217;s background color.</p>
<p>Now, save your .bashrc file.</p>
<p>As expected from their names, the above variables do not affect the man program directly, but affect &#8216;less&#8217; program instead. So, in order to complete our task, we should add an alias to our aliases file (If you don&#8217;t have an aliases file you can add this to your .bashrc file):</p>
<p>Add this line to your aliases file:</p>
<p>alias man=&#8217;man -P less&#8217;</p>
<p>This tells the man program to use less as its pager.</p>
<p>That&#8217;s it. Now you just to try it. For example, type: man ls</p>
<p>And see the magic <img src='http://www.amirwatad.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="Add Colors to Your Manpages" /> </p>
<p><br class="spacer_" /></p>
<p>Note: This was originally posted in <a title="tips4linux" href="http://tips4linux.com/color-man-pages-in-linux/" target="_blank">Tips4Linux.com</a></p>
<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2008/12/15/add-colors-to-your-manpages/">Add Colors to Your Manpages</a></p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=Add+Colors+to+Your+Manpages+http://bit.ly/IuMG" title="Post to Twitter"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" style="margin:0;" title="Add Colors to Your Manpages" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.amirwatad.com/blog/archives/2008/12/15/add-colors-to-your-manpages/&amp;title=Add+Colors+to+Your+Manpages" title="Post to Delicious"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" style="margin:0 0 0 2px;" title="Add Colors to Your Manpages" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.amirwatad.com/blog/archives/2008/12/15/add-colors-to-your-manpages/&amp;title=Add+Colors+to+Your+Manpages" title="Post to Digg"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-digg-big3.png" alt="Post to Digg" style="margin:0 0 0 2px;" title="Add Colors to Your Manpages" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.amirwatad.com/blog/archives/2008/12/15/add-colors-to-your-manpages/&amp;t=Add+Colors+to+Your+Manpages" title="Post to Facebook"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big3.png" alt="Post to Facebook" style="margin:0 0 0 2px;" title="Add Colors to Your Manpages" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://www.amirwatad.com/blog/archives/2008/12/15/add-colors-to-your-manpages/&amp;title=Add+Colors+to+Your+Manpages" title="Post to Reddit"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big3.png" alt="Post to Reddit" style="margin:0 0 0 2px;" title="Add Colors to Your Manpages" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://www.amirwatad.com/blog/archives/2008/12/15/add-colors-to-your-manpages/&amp;title=Add+Colors+to+Your+Manpages" title="Post to StumbleUpon"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-su-big3.png" alt="Post to StumbleUpon" style="margin:0 0 0 2px;" title="Add Colors to Your Manpages" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.amirwatad.com/blog/archives/2008/12/15/add-colors-to-your-manpages/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>View the Manpages in Firefox</title>
		<link>http://www.amirwatad.com/blog/archives/2008/12/15/view-the-manpages-in-firefox/</link>
		<comments>http://www.amirwatad.com/blog/archives/2008/12/15/view-the-manpages-in-firefox/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 17:37:12 +0000</pubDate>
		<dc:creator>Amir Watad</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Manpages]]></category>

		<guid isPermaLink="false">http://www.amirwatad.com/blog/?p=162</guid>
		<description><![CDATA[A cool way to view manpages in linux: View them as html (with color) in firefox. First, you need to install a program called man2html. Doing this in Ubuntu is as easy as opening a terminal and typing: sudo apt-get install man2html Now, that you have this program installed, open your firefox. From the menu, [...]<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2008/12/15/view-the-manpages-in-firefox/">View the Manpages in Firefox</a></p>
]]></description>
			<content:encoded><![CDATA[<p>A cool way to view manpages in linux: View them as html (with color) in firefox.</p>
<p>First, you need to install a program called man2html. Doing this in Ubuntu is as easy as opening a terminal and typing:</p>
<p>sudo apt-get install man2html</p>
<p>Now, that you have this program installed, open your firefox.</p>
<p><span id="more-162"></span>From the menu, choose bookmarks -&gt; Organize Bookmarks and add a new bookmark with these values:</p>
<p>Location: http://localhost/cgi-bin/man/man2html?query=%s</p>
<p>Keyword: man</p>
<p>Click add and you&#8217;re done.</p>
<p>Now, to view a manpage, go to firefox&#8217;s URI&#8217;s bar (that&#8217;s where you usually type a websites URL), and type:</p>
<p>man something.  For example: man ls</p>
<p>And see the magic <img src='http://www.amirwatad.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="View the Manpages in Firefox" /> </p>
<p><br class="spacer_" /></p>
<p>Note: This post was originally posted in <a title="tips4linux" href="http://tips4linux.com/easily-read-man-pages-in-firefox/" target="_blank">Tips4Linux.com</a></p>
<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2008/12/15/view-the-manpages-in-firefox/">View the Manpages in Firefox</a></p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=View+the+Manpages+in+Firefox+http://bit.ly/NGx4P" title="Post to Twitter"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" style="margin:0;" title="View the Manpages in Firefox" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.amirwatad.com/blog/archives/2008/12/15/view-the-manpages-in-firefox/&amp;title=View+the+Manpages+in+Firefox" title="Post to Delicious"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" style="margin:0 0 0 2px;" title="View the Manpages in Firefox" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.amirwatad.com/blog/archives/2008/12/15/view-the-manpages-in-firefox/&amp;title=View+the+Manpages+in+Firefox" title="Post to Digg"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-digg-big3.png" alt="Post to Digg" style="margin:0 0 0 2px;" title="View the Manpages in Firefox" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.amirwatad.com/blog/archives/2008/12/15/view-the-manpages-in-firefox/&amp;t=View+the+Manpages+in+Firefox" title="Post to Facebook"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big3.png" alt="Post to Facebook" style="margin:0 0 0 2px;" title="View the Manpages in Firefox" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://www.amirwatad.com/blog/archives/2008/12/15/view-the-manpages-in-firefox/&amp;title=View+the+Manpages+in+Firefox" title="Post to Reddit"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big3.png" alt="Post to Reddit" style="margin:0 0 0 2px;" title="View the Manpages in Firefox" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://www.amirwatad.com/blog/archives/2008/12/15/view-the-manpages-in-firefox/&amp;title=View+the+Manpages+in+Firefox" title="Post to StumbleUpon"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-su-big3.png" alt="Post to StumbleUpon" style="margin:0 0 0 2px;" title="View the Manpages in Firefox" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.amirwatad.com/blog/archives/2008/12/15/view-the-manpages-in-firefox/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Take Screenshots in Linux with &#8220;scrot&#8221;</title>
		<link>http://www.amirwatad.com/blog/archives/2008/11/14/take-screenshots-in-linux-with-scrot/</link>
		<comments>http://www.amirwatad.com/blog/archives/2008/11/14/take-screenshots-in-linux-with-scrot/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 22:50:12 +0000</pubDate>
		<dc:creator>Amir Watad</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Command Line Interface]]></category>
		<category><![CDATA[Shell Scripts]]></category>

		<guid isPermaLink="false">http://www.amirwatad.com/blog/?p=54</guid>
		<description><![CDATA[I have found this tool recently, and I have no idea how I was able to manage without it before. This tool allows you to capture any region of your screen, by selecting it with your mouse, clicking on the title-bar of a window and other methods. It&#8217;s very flexible and contains many options. To [...]<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2008/11/14/take-screenshots-in-linux-with-scrot/">Take Screenshots in Linux with &#8220;scrot&#8221;</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I have found this tool recently, and I have no idea how I was able to manage without it before.</p>
<p>This tool allows you to capture any region of your screen, by selecting it with your mouse, clicking on the title-bar of a window and other methods. It&#8217;s very flexible and contains many options.</p>
<p>To download the program in Ubuntu:</p>
<blockquote><p>sudo apt-get install scrot</p>
</blockquote>
<p>Now, open a new text file and type this</p>
<p><span id="more-54"></span></p>
<pre>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/bash</span><br />
scrot <span style="color: #ff0000;">&quot;/home/YourUsername/Desktop/screenshot<span style="color: #780078;">`date +%d_%m_%y_%H_%M_%S_%N`</span>.png&quot;</span> <span style="color: #660033;">-s</span> <span style="color: #660033;">-q</span> <span style="color: #ff0000;">'85'</span></div></td></tr></tbody></table></div>
</pre>
<p>Don&#8217;t forget to replace YourUsername with your actual username. We&#8217;ll assume that you called the file &#8220;scrshot&#8221;</p>
<p>This script will call scrot, will tell it to save the screenshots on your desktop with names similar to screenshot14_11_08_00_36_41_278273217.png (I know the name looks ugly, but I love this nomenclature because it prevents file name conflicts). The -s flag is for &#8220;Select&#8221;: This will allow you to select any area/window with your mouse. The -q flag is for &#8220;Quality&#8221;: In the above script I set it to 85%, which is good enough. Note that increasing the quality will also increase the file size.</p>
<p><br class="spacer_" /></p>
<p>Now, make the file executable:</p>
<blockquote><p>chmod +x scrshot</p>
</blockquote>
<p>Add a new launcher to you gnome panel, give it a suitable name and let it execute the above script. (i.e., in the &#8220;Command&#8221; field, enter the path to the script, eg. /home/YouName/scripts/scrshot  or wherever you saved it).</p>
<p>No taking a screenshot is easy: Click the launcher, select a region, and go to your desktop to collect the resulting file.</p>
<p>Actually, scrot is more powerful than described in this post, one of its strong features is adding a delay so the script will wait for a given number of seconds before taking the screenshot.</p>
<p>For more options refer to the manual pages:</p>
<blockquote><p>man scrot</p>
</blockquote>
<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2008/11/14/take-screenshots-in-linux-with-scrot/">Take Screenshots in Linux with &#8220;scrot&#8221;</a></p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=Take+Screenshots+in+Linux+with+%E2%80%9Cscrot...+http://bit.ly/eHUIY" title="Post to Twitter"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" style="margin:0;" title="Take Screenshots in Linux with scrot" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.amirwatad.com/blog/archives/2008/11/14/take-screenshots-in-linux-with-scrot/&amp;title=Take+Screenshots+in+Linux+with+%E2%80%9Cscrot..." title="Post to Delicious"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" style="margin:0 0 0 2px;" title="Take Screenshots in Linux with scrot" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.amirwatad.com/blog/archives/2008/11/14/take-screenshots-in-linux-with-scrot/&amp;title=Take+Screenshots+in+Linux+with+%E2%80%9Cscrot..." title="Post to Digg"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-digg-big3.png" alt="Post to Digg" style="margin:0 0 0 2px;" title="Take Screenshots in Linux with scrot" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.amirwatad.com/blog/archives/2008/11/14/take-screenshots-in-linux-with-scrot/&amp;t=Take+Screenshots+in+Linux+with+%E2%80%9Cscrot..." title="Post to Facebook"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big3.png" alt="Post to Facebook" style="margin:0 0 0 2px;" title="Take Screenshots in Linux with scrot" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://www.amirwatad.com/blog/archives/2008/11/14/take-screenshots-in-linux-with-scrot/&amp;title=Take+Screenshots+in+Linux+with+%E2%80%9Cscrot..." title="Post to Reddit"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big3.png" alt="Post to Reddit" style="margin:0 0 0 2px;" title="Take Screenshots in Linux with scrot" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://www.amirwatad.com/blog/archives/2008/11/14/take-screenshots-in-linux-with-scrot/&amp;title=Take+Screenshots+in+Linux+with+%E2%80%9Cscrot..." title="Post to StumbleUpon"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-su-big3.png" alt="Post to StumbleUpon" style="margin:0 0 0 2px;" title="Take Screenshots in Linux with scrot" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.amirwatad.com/blog/archives/2008/11/14/take-screenshots-in-linux-with-scrot/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Todo.txt &#8211; A simple yet powerful todo manager for Linux</title>
		<link>http://www.amirwatad.com/blog/archives/2008/10/18/todotxt-a-simple-yet-powerful-todo-manager-for-linux/</link>
		<comments>http://www.amirwatad.com/blog/archives/2008/10/18/todotxt-a-simple-yet-powerful-todo-manager-for-linux/#comments</comments>
		<pubDate>Fri, 17 Oct 2008 23:13:35 +0000</pubDate>
		<dc:creator>Amir Watad</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Command Line Interface]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Shell Scripts]]></category>

		<guid isPermaLink="false">http://www.amirwatad.com/blog/?p=37</guid>
		<description><![CDATA[Recently, I discrovered todo.txt, a great todo list manager for people who feel comfortable with Linux&#8217;s command line. The greatness of this tool is in its simplicity: the whole todo list is saved as plain text, and operations like adding/removing/prioritarizing/modifying/listing items are done through a very simple command line interface supplied in a bash script. [...]<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2008/10/18/todotxt-a-simple-yet-powerful-todo-manager-for-linux/">Todo.txt &#8211; A simple yet powerful todo manager for Linux</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Recently, I discrovered <a title="todo.txt" href="http://www.todotxt.org" target="_blank">todo.txt</a>, a great todo list manager for people who feel comfortable with Linux&#8217;s command line.</p>
<p>The greatness of this tool is in its simplicity: the whole todo list is saved as plain text, and operations like adding/removing/prioritarizing/modifying/listing items are done through a very simple command line interface supplied in a bash script.</p>
<p><span id="more-37"></span>Other interfaces are also available, like Jabber/AIM bots, so you can achieve the same functionality through Google Talk (TM) or other IM clients. However, the command line interface is the easiest/coolest/most powerful.</p>
<p>Using the script is easy:</p>
<p>1. First you need to download a single bash script and a configuration file, you can find them in a zip archive <a title="todo.txt script" href="http://github.com/ginatrapani/todo.txt-cli/downloads" target="_blank">here</a>.</p>
<p>2. After you unzip the archive, you need to create a todo folder in you home directory:</p>
<blockquote><p>mkdir ~/todo</p>
</blockquote>
<p>3. Then, take the .todo configuration file from the extracted archive and move it to your home directory:</p>
<blockquote><p>mv .todo ~/.</p>
</blockquote>
<p>4. Edit the .todo configuration file and change the TODO_DIR variable into ~/todo</p>
<p>5. You may want also to change the colors for each priority in .todo configuration file (default colors assume a dark background for your terminal).</p>
<p>6. Take todo.sh and move it to /usr/local/bin so you can call it from any directory:</p>
<blockquote><p>sudo mv todo.sh /usr/local/bin/.</p>
</blockquote>
<p>7. Make todo.sh excutable:</p>
<blockquote><p>sudo chmod +x /usr/local/bin/todo.sh</p>
</blockquote>
<p>8. Edit the first line in todo.sh so it looks like this:</p>
<blockquote><p>#! /bin/bash</p>
</blockquote>
<p>9. You may want to add an alias in your alias file:</p>
<blockquote><p>alias todo=&#8217;todo.sh&#8217;</p>
</blockquote>
<p>That&#8217;s it, now you can start using todo.txt:</p>
<p>1. To add an item to the list:</p>
<blockquote><p>todo.sh add &#8220;Learn python&#8221;</p>
</blockquote>
<p>2. It&#8217;s convenient to add tags to your items:</p>
<blockquote><p>todo.sh add +programming &#8220;Learn python&#8221;</p>
</blockquote>
<p>3. To list the items:</p>
<blockquote><p>todo.sh list</p>
</blockquote>
<p>4. To list items of a specific tag (eg. programming):</p>
<blockquote><p>todo.sh list +programming</p>
</blockquote>
<p>5. To assign a priority to an item:</p>
<blockquote><p>todo.sh pri ITEM_NUMBER PRIORITY</p>
</blockquote>
<p>where ITEM_NUMBER is the number appears to the left of the item when you use the list option, and PRIORITY is a letter between A to C (You can extend this in the configuration file).</p>
<p>6. To list all items with priority B:</p>
<blockquote><p>todo.sh listpri B</p>
</blockquote>
<p>7. To mark an item as done:</p>
<blockquote><p>todo.sh do ITEM_NUMBER</p>
</blockquote>
<p>8. To archive all done items into done.txt (done.txt and todo.txt live in ~/todo/ directory)</p>
<blockquote><p>todo.sh archive</p>
</blockquote>
<p>9. To replace an item:</p>
<blockquote><p>todo.sh replace ITEM_NUMBER +programming &#8220;learn how to write python scripts&#8221;</p>
</blockquote>
<p><br class="spacer_" /></p>
<p>There are few more options available, you can see them in todo.sh help:</p>
<blockquote><p>todo.sh -h</p>
</blockquote>
<p>There is also a nice video tutorial <a title="todo.txt video tutorial" href="http://github.com/ginatrapani/todo.txt-cli/downloads" target="_blank">here</a>.</p>
<p>Enjoy</p>
<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2008/10/18/todotxt-a-simple-yet-powerful-todo-manager-for-linux/">Todo.txt &#8211; A simple yet powerful todo manager for Linux</a></p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=Todo.txt+%E2%80%93+A+simple+yet+powerful+todo+manager+for+Linux+http://bit.ly/CwTgo" title="Post to Twitter"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" style="margin:0;" title="Todo.txt   A simple yet powerful todo manager for Linux" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.amirwatad.com/blog/archives/2008/10/18/todotxt-a-simple-yet-powerful-todo-manager-for-linux/&amp;title=Todo.txt+%E2%80%93+A+simple+yet+powerful+todo+manager+for+Linux" title="Post to Delicious"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" style="margin:0 0 0 2px;" title="Todo.txt   A simple yet powerful todo manager for Linux" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.amirwatad.com/blog/archives/2008/10/18/todotxt-a-simple-yet-powerful-todo-manager-for-linux/&amp;title=Todo.txt+%E2%80%93+A+simple+yet+powerful+todo+manager+for+Linux" title="Post to Digg"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-digg-big3.png" alt="Post to Digg" style="margin:0 0 0 2px;" title="Todo.txt   A simple yet powerful todo manager for Linux" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.amirwatad.com/blog/archives/2008/10/18/todotxt-a-simple-yet-powerful-todo-manager-for-linux/&amp;t=Todo.txt+%E2%80%93+A+simple+yet+powerful+todo+manager+for+Linux" title="Post to Facebook"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big3.png" alt="Post to Facebook" style="margin:0 0 0 2px;" title="Todo.txt   A simple yet powerful todo manager for Linux" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://www.amirwatad.com/blog/archives/2008/10/18/todotxt-a-simple-yet-powerful-todo-manager-for-linux/&amp;title=Todo.txt+%E2%80%93+A+simple+yet+powerful+todo+manager+for+Linux" title="Post to Reddit"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big3.png" alt="Post to Reddit" style="margin:0 0 0 2px;" title="Todo.txt   A simple yet powerful todo manager for Linux" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://www.amirwatad.com/blog/archives/2008/10/18/todotxt-a-simple-yet-powerful-todo-manager-for-linux/&amp;title=Todo.txt+%E2%80%93+A+simple+yet+powerful+todo+manager+for+Linux" title="Post to StumbleUpon"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-su-big3.png" alt="Post to StumbleUpon" style="margin:0 0 0 2px;" title="Todo.txt   A simple yet powerful todo manager for Linux" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.amirwatad.com/blog/archives/2008/10/18/todotxt-a-simple-yet-powerful-todo-manager-for-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 1.286 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-09 23:21:58 -->

