<?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>Tohir Solomons &#187; Linux</title>
	<atom:link href="http://www.tohir.co.za/category/software-and-technology/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tohir.co.za</link>
	<description></description>
	<lastBuildDate>Fri, 11 Mar 2011 09:30:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>How to bring your mouse back to life in Ubuntu</title>
		<link>http://www.tohir.co.za/2011/02/02/how-to-bring-your-mouse-back-to-life-in-ubuntu/</link>
		<comments>http://www.tohir.co.za/2011/02/02/how-to-bring-your-mouse-back-to-life-in-ubuntu/#comments</comments>
		<pubDate>Wed, 02 Feb 2011 01:55:48 +0000</pubDate>
		<dc:creator>Tohir</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software and Technology]]></category>

		<guid isPermaLink="false">http://www.tohir.co.za/?p=500</guid>
		<description><![CDATA[Occasionally, I encounter the issue where my mouse moves around the screen, but I can&#8217;t left click. Right click does work. Instead of rebooting tonight, thought I&#8217;d try to find a solution tabbing away on the keyboard whilst I still had a browser open. Solution: Press Ctrl+F1 to go to a terminal screen Login with [...]]]></description>
			<content:encoded><![CDATA[<p>Occasionally, I encounter the issue where my mouse moves around the screen, but I can&#8217;t left click. Right click does work. Instead of rebooting tonight, thought I&#8217;d try to find a solution tabbing away on the keyboard whilst I still had a browser open.</p>
<p>Solution:</p>
<ul>
<li>Press Ctrl+F1 to go to a terminal screen</li>
<li>Login with your username and password</li>
<li>sudo mobprobe -r psmouse</li>
<li>sudo modprobe psmouse</li>
<li>Ctrl+F7</li>
</ul>
<p>This removes the mouse &#8216;driver&#8217; from the kernel, and re-adds it. Wallaa!</p>
<p><map name='google_ad_map_500_d66c8ad2bfa7c2ab'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/500?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_500_d66c8ad2bfa7c2ab' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=500&amp;url= http%3A%2F%2Fwww.tohir.co.za%2F2011%2F02%2F02%2Fhow-to-bring-your-mouse-back-to-life-in-ubuntu%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.tohir.co.za/2011/02/02/how-to-bring-your-mouse-back-to-life-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Zend Server CE on Ubuntu Maverick (10.10)</title>
		<link>http://www.tohir.co.za/2011/01/24/installing-zend-server-ce-on-ubuntu-maverick-10-10/</link>
		<comments>http://www.tohir.co.za/2011/01/24/installing-zend-server-ce-on-ubuntu-maverick-10-10/#comments</comments>
		<pubDate>Mon, 24 Jan 2011 15:08:25 +0000</pubDate>
		<dc:creator>Tohir</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[maverick]]></category>
		<category><![CDATA[repo]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[zend]]></category>
		<category><![CDATA[zendserver]]></category>
		<category><![CDATA[zendserverce]]></category>

		<guid isPermaLink="false">http://www.tohir.co.za/?p=496</guid>
		<description><![CDATA[Spent the day trying to install Zend Server on Ubuntu (10.10), but ran into so much blockers, thought it would be worth a blog! After following all the steps, I got hit with: W: Failed to fetch http://repos.zend.com/deb/ce/dists/ce/Release Unable to find expected entry  non-free/source/Sources in Meta-index file (malformed Release file?) Kept trying sudo-apt-get update whilst [...]]]></description>
			<content:encoded><![CDATA[<p>Spent the day trying to install Zend Server on Ubuntu (10.10), but ran into so much blockers, thought it would be worth a blog!</p>
<p>After following all the steps, I got hit with:</p>
<pre>W: Failed to fetch http://repos.zend.com/deb/ce/dists/ce/Release
Unable to find expected entry  non-free/source/Sources in Meta-index file (malformed Release file?)</pre>
<p>Kept trying <strong>sudo-apt-get update</strong> whilst cursing Zend, and still the same.</p>
<p>Solution: Disable the sources repository in /etc/apt/sources.list.</p>
<pre>#deb-src http://repos.zend.com/deb/ce ce non-free</pre>
<p>Next, trying to install, and keep getting dependencies issues. There are two (old files) that need to be downloaded, and then everything works fine:</p>
<ul>
<li><a href="http://security.ubuntu.com/ubuntu/pool/main/k/krb5/libkrb53_1.6.dfsg.3~beta1-2ubuntu1.6_amd64.deb">libkrb53</a></li>
<li><a href="http://mirrors.us.kernel.org/ubuntu//pool/universe/m/mysql-dfsg-5.0/libmysqlclient15off_5.1.30really5.0.83-0ubuntu3_amd64.deb">libmysqlclient15off</a></li>
</ul>
<p>They were in older distributions, but no longer are!</p>
<p>Once those two files are manually installed (sudo dpkg -i), the rest is plain sailing.</p>
<p><map name='google_ad_map_496_d66c8ad2bfa7c2ab'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/496?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_496_d66c8ad2bfa7c2ab' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=496&amp;url= http%3A%2F%2Fwww.tohir.co.za%2F2011%2F01%2F24%2Finstalling-zend-server-ce-on-ubuntu-maverick-10-10%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.tohir.co.za/2011/01/24/installing-zend-server-ce-on-ubuntu-maverick-10-10/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Thunderbird + Correct Indentity Plugin</title>
		<link>http://www.tohir.co.za/2011/01/05/thunderbird-and-correct-indentity-plugin/</link>
		<comments>http://www.tohir.co.za/2011/01/05/thunderbird-and-correct-indentity-plugin/#comments</comments>
		<pubDate>Wed, 05 Jan 2011 07:45:45 +0000</pubDate>
		<dc:creator>Tohir</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Software and Technology]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[thunderbird]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.tohir.co.za/?p=491</guid>
		<description><![CDATA[On both Ubuntu (and Windows if I ever had to use it), I prefer Thunderbird as my email client over Evolution or MS Outlook purely due to two reasons: I love the way it allows one to show an inbox for each account. I do not need to filter them, or create labels. The ability [...]]]></description>
			<content:encoded><![CDATA[<p>On both Ubuntu (and Windows if I ever had to use it), I prefer <a href="http://www.mozillamessaging.com/en-US/thunderbird/">Thunderbird</a> as my email client over Evolution or MS Outlook purely due to two reasons:</p>
<ol>
<li>I love the way it allows one to show an inbox for each account. I do not need to filter them, or create labels.</li>
<li>The ability to set a limit on incoming mail. Once activated, it only downloads the first 50kb of each email giving an idea of what the email contains, and it saves the frustration of downloading emails with large attachments, particularly from people I don&#8217;t know.</li>
</ol>
<p>However, the one mistake I often make is clicking &#8220;Write&#8221;, type in the email, and clicking send, without checking that I&#8217;m sending it from the right email address. Fortunately, another great thing with Firefox and Thunderbird is <a href="https://addons.mozilla.org/en-US/thunderbird/extensions/">extensions</a>, and there is one that fixes that called <a href="https://addons.mozilla.org/en-US/thunderbird/addon/1203/">Correct Identity</a>.</p>
<p>It allow one to set an alternative default email address for writing an email. Eg. The account is support@&#8230;, but whenever you send out email from that account, it should be from tohir@&#8230;, that&#8217;s the issue it solves!</p>
<p><map name='google_ad_map_491_d66c8ad2bfa7c2ab'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/491?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_491_d66c8ad2bfa7c2ab' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=491&amp;url= http%3A%2F%2Fwww.tohir.co.za%2F2011%2F01%2F05%2Fthunderbird-and-correct-indentity-plugin%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.tohir.co.za/2011/01/05/thunderbird-and-correct-indentity-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wireshark Filters &#8211; Ajax Example</title>
		<link>http://www.tohir.co.za/2010/09/30/wireshark-filters-ajax-example/</link>
		<comments>http://www.tohir.co.za/2010/09/30/wireshark-filters-ajax-example/#comments</comments>
		<pubDate>Thu, 30 Sep 2010 08:05:12 +0000</pubDate>
		<dc:creator>Tohir</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software and Technology]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[wireshark]]></category>

		<guid isPermaLink="false">http://www.tohir.co.za/?p=461</guid>
		<description><![CDATA[I&#8217;ve blogged about Wireshark before, and how to use it for Ajax. Next is a quick tip on how to use Wireshark&#8217;s filters feature to only watch for AJAX requests. In the filter tab, enter: http.request.uri contains "php" &#124;&#124;  http.content_type == "text/html" This effectively reads, only log items where: The HTTP request contains PHP, OR [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve blogged about <a href="http://www.tohir.co.za/2010/02/01/getting-started-with-wireshark-the-fiddler-for-ubuntu/">Wireshark</a> before, and <a href="http://www.tohir.co.za/2010/05/10/wireshark-and-trucated/">how to use it for Ajax</a>. Next is a quick tip on how to use Wireshark&#8217;s filters feature to only watch for AJAX requests. In the filter tab, enter:</p>
<pre>http.request.uri contains "php" ||  http.content_type == "text/html"</pre>
<p>This effectively reads, only log items where:</p>
<ol>
<li>The HTTP request contains PHP, OR</li>
<li>The HTTP response is &#8220;text/html&#8221;</li>
</ol>
<p><a href="http://www.tohir.co.za/wp-content/uploads/2010/09/wireshark_filters.png"><img class="alignnone size-large wp-image-462" title="Wireshark Filters" src="http://www.tohir.co.za/wp-content/uploads/2010/09/wireshark_filters-1024x472.png" alt="Wireshark Filters" width="819" height="378" /></a></p>
<p>Useful, dont have to wade through whats an Ajax response, bypass images, etc. One thing that would be nice would be if the area that shows the filter expression was longer!</p>
<p><map name='google_ad_map_461_d66c8ad2bfa7c2ab'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/461?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_461_d66c8ad2bfa7c2ab' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=461&amp;url= http%3A%2F%2Fwww.tohir.co.za%2F2010%2F09%2F30%2Fwireshark-filters-ajax-example%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.tohir.co.za/2010/09/30/wireshark-filters-ajax-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing SASS 3.0 on Ubuntu 10.4</title>
		<link>http://www.tohir.co.za/2010/07/09/installing-sass-3-0-on-ubuntu-10-4/</link>
		<comments>http://www.tohir.co.za/2010/07/09/installing-sass-3-0-on-ubuntu-10-4/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 13:40:51 +0000</pubDate>
		<dc:creator>Tohir</dc:creator>
				<category><![CDATA[HTML, CSS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software and Technology]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[sass]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.tohir.co.za/?p=409</guid>
		<description><![CDATA[Currently, the HAML/Sass version on Ubuntu is 2.2.17. Version 3, also known as Classy Cassidy, includes new features. So how can you install it on Ubuntu. Firstly, you need Ruby: sudo apt-get install ruby Thereafter (without sudo): gem install haml-edge This will install Haml and Sass into your directory, but at least you will have [...]]]></description>
			<content:encoded><![CDATA[<p>Currently, the <a href="http://sass-lang.com/">HAML/Sass</a> version on Ubuntu is 2.2.17. Version 3, also known as Classy Cassidy, includes new features. So how can you install it on Ubuntu.</p>
<p>Firstly, you need Ruby:</p>
<pre>sudo apt-get install ruby</pre>
<p>Thereafter (without sudo):</p>
<pre>gem install haml-edge</pre>
<p>This will install Haml and Sass into your directory, but at least you will have access to the latest version. Message that appears:</p>
<pre>WARNING:  Installing to ~/.gem since /var/lib/gems/1.8 and
 /var/lib/gems/1.8/bin aren't both writable.
WARNING:  You don't have /home/tohir/.gem/ruby/1.8/bin in your PATH,
 gem executables will not run.
Successfully installed haml-edge-3.1.49
1 gem installed</pre>
<p>You can test that it is the latest version by:</p>
<pre>~/.gem/ruby/1.8/bin/sass -version
</pre>
<p>Which should return:</p>
<pre>Haml/Sass 3.1.49 (Bleeding Edge)</pre>
<p>Lastly, there is a nice command to watch files and auto generate an updated version:</p>
<pre>~/.gem/ruby/1.8/bin/sass -t compact --watch [inputfile]:[outputfile]</pre>
<p>like:</p>
<pre>~/.gem/ruby/1.8/bin/sass -t compact --watch browseView.scss:browseView.css</pre>
<p><map name='google_ad_map_409_d66c8ad2bfa7c2ab'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/409?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_409_d66c8ad2bfa7c2ab' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=409&amp;url= http%3A%2F%2Fwww.tohir.co.za%2F2010%2F07%2F09%2Finstalling-sass-3-0-on-ubuntu-10-4%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.tohir.co.za/2010/07/09/installing-sass-3-0-on-ubuntu-10-4/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Wireshark and [truncated]</title>
		<link>http://www.tohir.co.za/2010/05/10/wireshark-and-trucated/</link>
		<comments>http://www.tohir.co.za/2010/05/10/wireshark-and-trucated/#comments</comments>
		<pubDate>Mon, 10 May 2010 09:49:00 +0000</pubDate>
		<dc:creator>Tohir</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.tohir.co.za/?p=399</guid>
		<description><![CDATA[I&#8217;ve posted a tutorial on how to get wireshark up and running on Ubuntu. The one problem , though, is that sometimes (actually often) you get [truncated]. How can you untruncate or turn it off or increase its size. This isn&#8217;t the answer, but a way of how to get access to the full response: [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve posted a tutorial on <a href="http://www.tohir.co.za/2010/02/01/getting-started-with-wireshark-the-fiddler-for-ubuntu/">how to get wireshark up and running on Ubuntu</a>. The one problem , though, is that sometimes (actually often) you get [truncated]. How can you untruncate or turn it off or increase its size.</p>
<p>This isn&#8217;t the answer, but a way of how to get access to the full response:</p>
<p>Right Click on the Packet in Line-based text data, then choose Copy &gt; Bytes (Printable Text Only).</p>
<p>This will place the full response, and you can paste it in a text editor.</p>
<p><map name='google_ad_map_399_d66c8ad2bfa7c2ab'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/399?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_399_d66c8ad2bfa7c2ab' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=399&amp;url= http%3A%2F%2Fwww.tohir.co.za%2F2010%2F05%2F10%2Fwireshark-and-trucated%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.tohir.co.za/2010/05/10/wireshark-and-trucated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Starting to like the toolbar in Ubuntu 10.4 file manager</title>
		<link>http://www.tohir.co.za/2010/05/04/starting-to-like-the-toolbar-in-ubuntu-10-4-file-manager/</link>
		<comments>http://www.tohir.co.za/2010/05/04/starting-to-like-the-toolbar-in-ubuntu-10-4-file-manager/#comments</comments>
		<pubDate>Tue, 04 May 2010 08:52:08 +0000</pubDate>
		<dc:creator>Tohir</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software and Technology]]></category>

		<guid isPermaLink="false">http://www.tohir.co.za/?p=395</guid>
		<description><![CDATA[The one thing that horrified me in the latest version of Ubuntu was the &#8216;new&#8217; toolbar for Nautilus or the file manager. However, after reading Deconstructing Nautilus and rebuilding it better, I have to admit, I enjoy it. Why? Even though I tend to browser elsewhere by typing in the path, the UP button is [...]]]></description>
			<content:encoded><![CDATA[<p>The one thing that horrified me in the latest version of Ubuntu was the &#8216;new&#8217; toolbar for Nautilus or the file manager.</p>
<p><img class="aligncenter size-full wp-image-396" title="ubuntu10.4toolbar" src="http://www.tohir.co.za/wp-content/uploads/2010/05/ubuntu10.4toolbar.png" alt="" width="802" height="106" /></p>
<p>However, after reading <a href="http://www.design-by-izo.com/2010/02/27/deconstructing-nautilus-and-rebuilding-it-better/">Deconstructing Nautilus and rebuilding it better</a>, I have to admit, I enjoy it. Why?</p>
<p>Even though I tend to browser elsewhere by typing in the path, the UP button is probably the most used button by myself. Switching to the location bar provides no alternative, but keeping the button bar allows one a form of up button.</p>
<p>Secondly, CTRL+L is probably something I can live with.</p>
<p>Given the whole debate around this, the lesson I believe is that don&#8217;t ignore your existing users. If you are going to change something, inform your users!</p>
<p>Given the opensource community spirit, it wont be long before someone does a quick script to bring back the old toolbar. If you are looking to do that today, have a look at: <a href="https://help.ubuntu.com/community/RestoreNautilusLocationBar">https://help.ubuntu.com/community/RestoreNautilusLocationBar</a></p>
<p><map name='google_ad_map_395_d66c8ad2bfa7c2ab'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/395?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_395_d66c8ad2bfa7c2ab' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=395&amp;url= http%3A%2F%2Fwww.tohir.co.za%2F2010%2F05%2F04%2Fstarting-to-like-the-toolbar-in-ubuntu-10-4-file-manager%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.tohir.co.za/2010/05/04/starting-to-like-the-toolbar-in-ubuntu-10-4-file-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting started with Wireshark, the Fiddler for Ubuntu</title>
		<link>http://www.tohir.co.za/2010/02/01/getting-started-with-wireshark-the-fiddler-for-ubuntu/</link>
		<comments>http://www.tohir.co.za/2010/02/01/getting-started-with-wireshark-the-fiddler-for-ubuntu/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 07:38:59 +0000</pubDate>
		<dc:creator>Tohir</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software and Technology]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[fiddler]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wireshark]]></category>

		<guid isPermaLink="false">http://www.tohir.co.za/?p=349</guid>
		<description><![CDATA[Fiddler is a useful tool for tracking http requests and responses. It&#8217;s similar to the Net tag in Firebug, except that it can be used to track all requests, not only browser-based ones. For Ubuntu users, the recommended alternative is Wireshark. Wireshark is noted as being more powerful than Fiddler, but the focus will be [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.fiddler2.com/fiddler2/">Fiddler</a> is a useful tool for tracking http requests and responses. It&#8217;s similar to the Net tag in Firebug, except that it can be used to track all requests, not only browser-based ones.</p>
<p>For Ubuntu users, the recommended alternative is <a href="http://www.wireshark.org/">Wireshark</a>. Wireshark is noted as being more powerful than Fiddler, but the focus will be on the features most commonly used by web developers for tracking.</p>
<h2>Installation</h2>
<p>Wireshark is found in the Ubuntu repositories, so simply search for <strong>wireshark</strong> in Synaptic, or enter <em>sudo apt-get install wireshark</em></p>
<h2>Usage</h2>
<p>Under Applications &gt; Internet, you will notice there are two options. Wireshark and Wireshark (as root). Run the second one (as root) as this gives you more data to track.</p>
<p><a href="http://www.tohir.co.za/wp-content/uploads/2010/01/wireshark-1.png"><img class="alignnone size-full wp-image-357" title="wireshark-1" src="http://www.tohir.co.za/wp-content/uploads/2010/01/wireshark-1.png" alt="wireshark-1" width="399" height="92" /></a></p>
<p>After wireshark has started, the process is straightforward:</p>
<ol>
<li>Choose which network interfaces to capture traffic from</li>
<li>Start capturing</li>
<li>Filter captured requests</li>
</ol>
<p>1. Choosing which network interfaces to capture traffic from. From the menu, choose: Capture &gt; Interfaces</p>
<p><a href="http://www.tohir.co.za/wp-content/uploads/2010/02/wireshark-2.png"><img class="alignnone size-full wp-image-358" title="wireshark-2" src="http://www.tohir.co.za/wp-content/uploads/2010/02/wireshark-2.png" alt="wireshark-2" width="745" height="272" /></a></p>
<p>This will bring up a list of network devices.</p>
<p>2. Since my work involves debugging work off my laptop (http://localhost etc), I only start device <strong>lo</strong> (127.0.0.1). This is useful as it immediately ignores all other traffic.</p>
<p>3. The one thing you will notice is that fiddler will log both the TCP and HTTP requests. For the purpose of debugging AJAX, etc., we are only interested in HTTP requests, TCP requests are not required. These can be hidden by adding a filter.</p>
<p><a href="http://www.tohir.co.za/wp-content/uploads/2010/02/wireshark-3.png"><img class="alignnone size-full wp-image-359" title="wireshark-3" src="http://www.tohir.co.za/wp-content/uploads/2010/02/wireshark-3.png" alt="wireshark-3" width="861" height="327" /></a></p>
<p>In the field next to Filter:, enter http and click on Apply.</p>
<p><a href="http://www.tohir.co.za/wp-content/uploads/2010/02/wireshark-4.png"><img class="alignnone size-full wp-image-360" title="wireshark-4" src="http://www.tohir.co.za/wp-content/uploads/2010/02/wireshark-4.png" alt="wireshark-4" width="715" height="213" /></a></p>
<p>The steps will now show all traffic coming on 127.0.0.1 via HTTP. The last step is picking up the AJAX parts for debugging. Notice that for each request, there is a response. Unlike Fiddler, Wireshark does not combine the request and the response. So click on the response line, and then expand the <strong>Line-based text data row</strong>. This will show the text of the AJAX response.</p>
<p><a href="http://www.tohir.co.za/wp-content/uploads/2010/02/wireshark-5.png"><img class="alignnone size-full wp-image-361" title="wireshark-5" src="http://www.tohir.co.za/wp-content/uploads/2010/02/wireshark-5.png" alt="wireshark-5" width="693" height="569" /></a></p>
<h3>Conclusion</h3>
<p>Wireshark takes more steps than Fiddler, and Fiddler is a more focussed program than Wireshark. Wireshark also captures traffic without having to install a plugin into firefox, etc., so it&#8217;s useful for debugging applications as well. The biggest improvement to make Wireshark truly replace Fiddler is to turn off truncation of the response text. Wish I knew how!</p>
<p><map name='google_ad_map_349_d66c8ad2bfa7c2ab'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/349?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_349_d66c8ad2bfa7c2ab' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=349&amp;url= http%3A%2F%2Fwww.tohir.co.za%2F2010%2F02%2F01%2Fgetting-started-with-wireshark-the-fiddler-for-ubuntu%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.tohir.co.za/2010/02/01/getting-started-with-wireshark-the-fiddler-for-ubuntu/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to: Uninstall Adobe AIR Apps on Ubuntu (via Synaptic)</title>
		<link>http://www.tohir.co.za/2009/08/03/how-to-uninstall-adobe-air-apps-on-ubuntu-via-synaptic/</link>
		<comments>http://www.tohir.co.za/2009/08/03/how-to-uninstall-adobe-air-apps-on-ubuntu-via-synaptic/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 18:34:14 +0000</pubDate>
		<dc:creator>Tohir</dc:creator>
				<category><![CDATA[Adobe AIR]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.tohir.co.za/?p=304</guid>
		<description><![CDATA[There are two ways to uninstall Adobe AIR&#160;apps on Ubuntu. 1)&#160;Access to original .air file If you have access to the original .air file, run it and it will give you a screen with options to either Uninstall, Run Now or Cancel. Simply click on Uninstall. &#160; 2)&#160;Use Synaptic Package Manager A second more easier [...]]]></description>
			<content:encoded><![CDATA[<p>There are two ways to uninstall Adobe AIR&nbsp;apps on Ubuntu.</p>
<p><strong>1)&nbsp;Access to original .air file</strong></p>
<p>If you have access to the original .air file, run it and it will give you a screen with options to either Uninstall, Run Now or Cancel. Simply click on Uninstall.</p>
<p style="text-align: center;"><img width="488" height="403" class="aligncenter size-full wp-image-306" title="Screenshot-Application Install" alt="Screenshot-Application Install" src="http://www.tohir.co.za/wp-content/uploads/2009/08/Screenshot-Application-Install.png" /></p>
<p>&nbsp;</p>
<p><strong>2)&nbsp;Use Synaptic Package Manager</strong></p>
<p>A second more easier approach (particularly if you lost the .air package) is to use Synaptic.&nbsp;From the sidebar, simply choose: Status &gt; Installed (local or obsolete)</p>
<p style="text-align: center;"><img width="683" height="513" class="aligncenter size-full wp-image-305" title="Adobe AIR apps list in Synaptic" alt="Adobe AIR apps list in Synaptic" src="http://www.tohir.co.za/wp-content/uploads/2009/08/adobeairappssynaptic.png" /></p>
<p>&nbsp;</p>
<p>Discovering this makes me less hesitant to try our different AIR&nbsp;apps, trying to find out which one works best.</p>
<p><map name='google_ad_map_304_d66c8ad2bfa7c2ab'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/304?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_304_d66c8ad2bfa7c2ab' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=304&amp;url= http%3A%2F%2Fwww.tohir.co.za%2F2009%2F08%2F03%2Fhow-to-uninstall-adobe-air-apps-on-ubuntu-via-synaptic%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.tohir.co.za/2009/08/03/how-to-uninstall-adobe-air-apps-on-ubuntu-via-synaptic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing a PDF Printer on Ubuntu</title>
		<link>http://www.tohir.co.za/2009/06/15/installing-a-pdf-printer-on-ubuntu/</link>
		<comments>http://www.tohir.co.za/2009/06/15/installing-a-pdf-printer-on-ubuntu/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 12:03:20 +0000</pubDate>
		<dc:creator>Tohir</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.tohir.co.za/?p=273</guid>
		<description><![CDATA[Getting a printer installed on Ubuntu is easy, plug-and-play generally works. Getting a PDF printer working is also easy. To install it, one has to open a terminal or Synaptic (System -&#62; Administration -&#62; Synaptic Package Manager). In a terminal, enter: sudo apt-get install cups-pdf It will ask you for your password when you press [...]]]></description>
			<content:encoded><![CDATA[<p>Getting a printer installed on Ubuntu is easy, plug-and-play generally works. Getting a PDF printer working is also easy. To install it, one has to open a terminal or Synaptic (System -&gt; Administration -&gt; Synaptic Package Manager).</p>
<p>In a terminal, enter:</p>
<pre class="brush:bash">sudo apt-get install cups-pdf</pre>
<p>It will ask you for your password when you press enter. Or in Synaptic, do a search for: <strong>cups-pdf</strong>.</p>
<p>Now one step that has to be done manually otherwise it doesn&#8217;t work. In your home directory, create a folder called <strong>PDF</strong> (all in caps).</p>
<p>After this, you&#8217;ll see an option for PDF in the printer&#8217;s list, and printing to PDF.</p>
<p><img class="aligncenter size-full wp-image-274" title="ubuntuprinterslist" src="http://www.tohir.co.za/wp-content/uploads/2009/06/ubuntuprinterslist.png" alt="ubuntuprinterslist" width="460" height="237" /></p>
<p><map name='google_ad_map_273_d66c8ad2bfa7c2ab'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/273?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_273_d66c8ad2bfa7c2ab' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=273&amp;url= http%3A%2F%2Fwww.tohir.co.za%2F2009%2F06%2F15%2Finstalling-a-pdf-printer-on-ubuntu%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.tohir.co.za/2009/06/15/installing-a-pdf-printer-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

