<?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>NotrevBlog &#187; HowTo</title>
	<atom:link href="http://earruda.eti.br/blog/category/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://earruda.eti.br/blog</link>
	<description>Éverton Arruda's Blog</description>
	<lastBuildDate>Wed, 01 Jun 2011 15:14:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Iceweasel 4 on Debian Squeeze/Wheezy</title>
		<link>http://earruda.eti.br/blog/2011/03/iceweasel-4-on-debian-squeezewheezy/</link>
		<comments>http://earruda.eti.br/blog/2011/03/iceweasel-4-on-debian-squeezewheezy/#comments</comments>
		<pubDate>Tue, 29 Mar 2011 12:55:23 +0000</pubDate>
		<dc:creator>Éverton Arruda</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Free Software]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Planet PSL-AM]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[iceweasel]]></category>

		<guid isPermaLink="false">http://earruda.eti.br/blog/?p=300</guid>
		<description><![CDATA[For those of you who don&#8217;t know what Iceweasel is, it&#8217;s written in Debian&#8217;s Wiki[0]: Iceweasel is a fork Mozilla Firefox[1] with the following purpose : 1. backporting of security fixes to declared Debian stable version. 2. no inclusion of trademarked Mozilla artwork (because of #1 above) Beyond that, they will be basically identical. (quoting [...]]]></description>
			<content:encoded><![CDATA[<p>For those of you who don&#8217;t know what Iceweasel is, it&#8217;s written in Debian&#8217;s Wiki[0]:</p>
<blockquote><p>Iceweasel is a fork Mozilla Firefox[1] with the following purpose :<br />
1. backporting of security fixes to declared Debian stable version.<br />
2. no inclusion of trademarked Mozilla artwork (because of #1 above)<br />
Beyond that, they will be basically identical. (quoting Roberto C. Sanchez post in <a href="http://lists.debian.org/debian-devel/2006/10/msg00665.html">debian-devel</a> mailing list)</p></blockquote>
<p>Iceweasel&#8217;s (and Firefox&#8217;s) latest version, 4.0, was recently released[2], on Mach 22nd, and i&#8217;ve just upgraded Iceweasel 3.6 to Iceweasel 4.0 on my Debian Wheezy.</p>
<p>If you&#8217;d like to upgrade yours, follow the steps bellow.</p>
<p><strong>1. Add Mozilla&#8217;s repository to sources.list</strong><br />
Edit the <em>/etc/apt/sources.list</em> file and add the repository&#8217;s address:</p>
<div class="codecolorer-container text default" 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">deb http://mozilla.debian.net/ squeeze-backports iceweasel-4.0</div></td></tr></tbody></table></div>
<p>Even though it&#8217;s Squeeze&#8217;s repository, it worked fine on my Wheezy.<br />
You can type the following command to add it:</p>
<div class="codecolorer-container text default" 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"># echo &quot;deb http://mozilla.debian.net/ squeeze-backports iceweasel-4.0&quot; &gt;&gt; /etc/apt/sources.list</div></td></tr></tbody></table></div>
<p><strong>2. Update packages list</strong></p>
<div class="codecolorer-container text default" 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"># aptitude update</div></td></tr></tbody></table></div>
<p><strong>3. Install Iceweasel 4</strong><br />
You can check the version of iceweasel with the command bellow:</p>
<div class="codecolorer-container text default" 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"># aptitude show iceweasel</div></td></tr></tbody></table></div>
<p>Install it with the following command:</p>
<div class="codecolorer-container text default" 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"># aptitude install iceweasel</div></td></tr></tbody></table></div>
<p>Wait for it to finish and happy surfing!</p>
<p><strong>Links/Sources:</strong><br />
[0] <a href="http://wiki.debian.org/Iceweasel">http://wiki.debian.org/Iceweasel</a><br />
[1] <a href="http://mozilla.com/firefox">http://mozilla.com/firefox</a><br />
[2] <a href="http://blog.mozilla.com/blog/2011/03/22/mozilla-launches-firefox-4-and-delivers-a-fast-sleek-and-customizable-browsing-experience-to-more-than-400-million-users-worldwide-2/">http://blog.mozilla.com/blog/2011/03/22/mozilla-launches-firefox-4-and-delivers-a-fast-sleek-and-customizable-browsing-experience-to-more-than-400-million-users-worldwide-2/</a><br />
[3] <a href="http://mozilla.debian.net/">http://mozilla.debian.net/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://earruda.eti.br/blog/2011/03/iceweasel-4-on-debian-squeezewheezy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problem starting tomcat6 on Debian Squeeze</title>
		<link>http://earruda.eti.br/blog/2010/11/problem-starting-tomcat6-on-debian-squeeze/</link>
		<comments>http://earruda.eti.br/blog/2010/11/problem-starting-tomcat6-on-debian-squeeze/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 17:10:55 +0000</pubDate>
		<dc:creator>Éverton Arruda</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Free Software]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Planet PSL-AM]]></category>

		<guid isPermaLink="false">http://earruda.eti.br/blog/?p=282</guid>
		<description><![CDATA[I was having problem when trying to start tomcat6(6.0.28-7) service on my Debian Squeeze, fortunately I found the solution on the web[0]. The following message was in /var/log/tomcat6/catalina.xxxx.log: 12345678910111213141516&#40;...&#41; java.net.SocketException: Invalid argument &#160; &#160; at java.net.PlainSocketImpl.socketBind&#40;Native Method&#41; &#160; &#160; at java.net.AbstractPlainSocketImpl.bind&#40;AbstractPlainSocketImpl.java:336&#41; &#160; &#160; at java.net.ServerSocket.bind&#40;ServerSocket.java:336&#41; &#160; &#160; at java.net.ServerSocket.&#60;init&#62;&#40;ServerSocket.java:202&#41; &#160; &#160; at org.apache.catalina.core.StandardServer.await&#40;StandardServer.java:373&#41; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>I was having problem when trying to start tomcat6(6.0.28-7) service on my Debian Squeeze, fortunately I found the solution on the web[0].</p>
<p>The following message was in <em>/var/log/tomcat6/catalina.xxxx.log</em>:</p>
<div class="codecolorer-container java default" 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 />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br /></div></td><td><div class="java codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&#40;</span>...<span style="color: #009900;">&#41;</span><br />
java.<span style="color: #006633;">net</span>.<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asocketexception+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">SocketException</span></a><span style="color: #339933;">:</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Ainvalid+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Invalid</span></a> argument<br />
&nbsp; &nbsp; at java.<span style="color: #006633;">net</span>.<span style="color: #006633;">PlainSocketImpl</span>.<span style="color: #006633;">socketBind</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">Native</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Amethod+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Method</span></a><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; at java.<span style="color: #006633;">net</span>.<span style="color: #006633;">AbstractPlainSocketImpl</span>.<span style="color: #006633;">bind</span><span style="color: #009900;">&#40;</span>AbstractPlainSocketImpl.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">336</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; at java.<span style="color: #006633;">net</span>.<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aserversocket+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">ServerSocket</span></a>.<span style="color: #006633;">bind</span><span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aserversocket+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">ServerSocket</span></a>.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">336</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; at java.<span style="color: #006633;">net</span>.<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aserversocket+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">ServerSocket</span></a>.<span style="color: #339933;">&lt;</span>init<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aserversocket+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">ServerSocket</span></a>.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">202</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; at org.<span style="color: #006633;">apache</span>.<span style="color: #006633;">catalina</span>.<span style="color: #006633;">core</span>.<span style="color: #006633;">StandardServer</span>.<span style="color: #006633;">await</span><span style="color: #009900;">&#40;</span>StandardServer.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">373</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; at org.<span style="color: #006633;">apache</span>.<span style="color: #006633;">catalina</span>.<span style="color: #006633;">startup</span>.<span style="color: #006633;">Catalina</span>.<span style="color: #006633;">await</span><span style="color: #009900;">&#40;</span>Catalina.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">662</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; at org.<span style="color: #006633;">apache</span>.<span style="color: #006633;">catalina</span>.<span style="color: #006633;">startup</span>.<span style="color: #006633;">Catalina</span>.<span style="color: #006633;">start</span><span style="color: #009900;">&#40;</span>Catalina.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">614</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; at sun.<span style="color: #006633;">reflect</span>.<span style="color: #006633;">NativeMethodAccessorImpl</span>.<span style="color: #006633;">invoke0</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">Native</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Amethod+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Method</span></a><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; at sun.<span style="color: #006633;">reflect</span>.<span style="color: #006633;">NativeMethodAccessorImpl</span>.<span style="color: #006633;">invoke</span><span style="color: #009900;">&#40;</span>NativeMethodAccessorImpl.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">57</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; at sun.<span style="color: #006633;">reflect</span>.<span style="color: #006633;">DelegatingMethodAccessorImpl</span>.<span style="color: #006633;">invoke</span><span style="color: #009900;">&#40;</span>DelegatingMethodAccessorImpl.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">43</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; at java.<span style="color: #006633;">lang</span>.<span style="color: #006633;">reflect</span>.<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Amethod+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Method</span></a>.<span style="color: #006633;">invoke</span><span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Amethod+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Method</span></a>.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">616</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; at org.<span style="color: #006633;">apache</span>.<span style="color: #006633;">catalina</span>.<span style="color: #006633;">startup</span>.<span style="color: #006633;">Bootstrap</span>.<span style="color: #006633;">start</span><span style="color: #009900;">&#40;</span>Bootstrap.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">289</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; at org.<span style="color: #006633;">apache</span>.<span style="color: #006633;">catalina</span>.<span style="color: #006633;">startup</span>.<span style="color: #006633;">Bootstrap</span>.<span style="color: #006633;">main</span><span style="color: #009900;">&#40;</span>Bootstrap.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">414</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#40;</span>...<span style="color: #009900;">&#41;</span></div></td></tr></tbody></table></div>
<p>As said in eFreedom.com[1], it has something to do with IPv6. To solve this problem you&#8217;ll have to check if <strong>net.ipv6.bidv6only</strong> is set to 1/true:</p>
<div class="codecolorer-container text default" 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"># sysctl net.ipv6.bindv6only</div></td></tr></tbody></table></div>
<p>If it is set to 1/true, you&#8217;ll have to set it to 0/false:</p>
<div class="codecolorer-container text default" 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"># sysctl -w net.ipv6.bindv6only = 0</div></td></tr></tbody></table></div>
<p>Then you can restart the tomcat6 service and it will work, but only while your computer is running, if the you reboot the system it will fail again.</p>
<p>To make it permanent you will have to make sure that the <strong>-Djava.net.preferIPv4Stack</strong> option is set to <strong>true</strong> and is being added to <strong>JAVA_OPTS</strong> in <strong>catalina_sh()</strong> function, inside <em>/etc/init.d/tomcat6</em>. The line which does that is:</p>
<div class="codecolorer-container bash default" 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="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #007800;">JAVA_OPTS</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$JAVA_OPTS</span> -Djava.net.preferIPv4Stack=true&quot;</span></div></td></tr></tbody></table></div>
<p>And that&#8217;s it.</p>
<p>[0] http://efreedom.com/Question/1-2876231/Start-Tomcat-6026-Update-Debian-Squeeze<br />
[1] http://efreedom.com/</p>
<p>:wq</p>
]]></content:encoded>
			<wfw:commentRss>http://earruda.eti.br/blog/2010/11/problem-starting-tomcat6-on-debian-squeeze/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cron/USER: Permission denied</title>
		<link>http://earruda.eti.br/blog/2010/08/cronuser-permission-denied/</link>
		<comments>http://earruda.eti.br/blog/2010/08/cronuser-permission-denied/#comments</comments>
		<pubDate>Thu, 12 Aug 2010 12:29:52 +0000</pubDate>
		<dc:creator>Éverton Arruda</dc:creator>
				<category><![CDATA[Free Software]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Planet PSL-AM]]></category>
		<category><![CDATA[cron]]></category>

		<guid isPermaLink="false">http://earruda.eti.br/blog/?p=258</guid>
		<description><![CDATA[I was trying to run crontab -e command and got this error message: [git@pandora gitorious]$ crontab -e cron/git: Permission denied As the message says: it&#8217;s a permission problem. To solve this you&#8217;ll have to change /usr/bin/crontab&#8216;s permissions: 1# chmod 4755 /usr/bin/crontab And if that does not solve your problem, check /var/spool/cron/&#8216;s permissions, they should match: [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to run <em>crontab -e</em> command and got this error message:</p>
<blockquote><p>[git@pandora gitorious]$ crontab -e<br />
cron/git: Permission denied</p></blockquote>
<p>As the message says: it&#8217;s a permission problem. To solve this you&#8217;ll have to change <em>/usr/bin/crontab</em>&#8216;s permissions:</p>
<div class="codecolorer-container text default" 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"># chmod 4755 /usr/bin/crontab</div></td></tr></tbody></table></div>
<p>And if that does not solve your problem, check <em>/var/spool/cron/</em>&#8216;s permissions, they should match: <strong>drwxr-xr-x</strong> (755).</p>
<p>Sources:<br />
* <a href="http://www.webhostingtalk.com/archive/index.php/t-638933.html">http://www.webhostingtalk.com/archive/index.php/t-638933.html</a><br />
* <a href="http://linux.derkeiler.com/Mailing-Lists/Debian/2003-09/3613.html">http://linux.derkeiler.com/Mailing-Lists/Debian/2003-09/3613.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://earruda.eti.br/blog/2010/08/cronuser-permission-denied/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Getting Broadcom wireless to work on Debian</title>
		<link>http://earruda.eti.br/blog/2010/07/getting-broadcom-wireless-cards-to-work-on-debian/</link>
		<comments>http://earruda.eti.br/blog/2010/07/getting-broadcom-wireless-cards-to-work-on-debian/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 14:55:58 +0000</pubDate>
		<dc:creator>Éverton Arruda</dc:creator>
				<category><![CDATA[Free Software]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Planet PSL-AM]]></category>
		<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://earruda.eti.br/blog/?p=215</guid>
		<description><![CDATA[Debian-like distributions come with b43, or b43legacy, and ssb modules for broadcom wireless cards, but they never worked for me. Searching over the internet i found out that broadcom provides the driver for BCM4311-, BCM4312-, BCM4313-, BCM4321-, and BCM4322-based hardware, all we need to do is compile it and install the module. This is how [...]]]></description>
			<content:encoded><![CDATA[<p>Debian-like distributions come with <em>b43</em>, or <em>b43legacy</em>, and <em>ssb</em> modules for broadcom wireless cards, but they never worked for me. Searching over the internet i found out that broadcom provides the driver for BCM4311-, BCM4312-, BCM4313-, BCM4321-, and BCM4322-based hardware, all we need to do is compile it and install the module. This is how we do it:</p>
<p><strong>1 &#8211; Check your wireless card</strong>:<br />
First of all we need to be sure that your wireless card is one of the BCMXXXX-based hardware:</p>
<div class="codecolorer-container bash default" 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="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">lspci</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> Network</div></td></tr></tbody></table></div>
<p>The return should be something like this:<br />
<quote>08:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g (rev 01)</quote></p>
<p>In that line you can see that my wireless card hardware is BCM4312, so it is supported.</p>
<p><strong>2 &#8211; Download the Driver</strong>:<br />
You can access Broadcom&#8217;s website[0] and download it or use wget to download it through shell.<br />
For 32-bits CPUs:</p>
<div class="codecolorer-container bash default" 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="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-c</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.broadcom.com<span style="color: #000000; font-weight: bold;">/</span>docs<span style="color: #000000; font-weight: bold;">/</span>linux_sta<span style="color: #000000; font-weight: bold;">/</span>hybrid-portsrc-x86_32-v5.60.48.36.tar.gz</div></td></tr></tbody></table></div>
<p>For 64-bits CPUs:</p>
<div class="codecolorer-container bash default" 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="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-c</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.broadcom.com<span style="color: #000000; font-weight: bold;">/</span>docs<span style="color: #000000; font-weight: bold;">/</span>linux_sta<span style="color: #000000; font-weight: bold;">/</span>hybrid-portsrc-x86_64-v5.60.48.36.tar.gz</div></td></tr></tbody></table></div>
<p><strong>3 &#8211; Remove the other modules</strong>:<br />
Check if <em>b43</em>, <em>b43legacy</em>, <em>ssb</em> and/or an older version of <em>wl</em> modules exist:</p>
<div class="codecolorer-container bash default" 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="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">lsmod</span> &nbsp;<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;b43\|ssb\|wl&quot;</span></div></td></tr></tbody></table></div>
<p>Remove them, if they exist:</p>
<div class="codecolorer-container bash default" 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="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;"># </span>rmmod b43 ; rmmod b43legacy ; rmmod ssb ; rmmod wl</div></td></tr></tbody></table></div>
<p>Add <em>b43</em>, <em>b43legacy</em> and <em>ssb</em> to the blacklist, preventing them to be probed in initialization:</p>
<div class="codecolorer-container text default" 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 />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># echo &quot;blacklist ssb&quot; &gt;&gt; /etc/modprobe.d/blacklist.conf<br />
# echo &quot;blacklist b43&quot; &gt;&gt; /etc/modprobe.d/blacklist.conf<br />
# echo &quot;blacklist b43legacy&quot; &gt;&gt; /etc/modprobe.d/blacklist.conf</div></td></tr></tbody></table></div>
<p><strong>4 &#8211; Install the wl module</strong>:<br />
Extract the tarball you downloaded and compile it, you&#8217;ll need to install the <em>build-essential</em> package to compile it:</p>
<div class="codecolorer-container bash default" 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 />3<br />4<br />5<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;"># aptitude install build-essential -y</span><br />
$ <span style="color: #c20cb9; font-weight: bold;">mkdir</span> broadcom<br />
$ <span style="color: #7a0874; font-weight: bold;">cd</span> broadcom<br />
$ <span style="color: #c20cb9; font-weight: bold;">tar</span> xvzf ..<span style="color: #000000; font-weight: bold;">/</span>hybrid-portsrc-x86_<span style="color: #000000; font-weight: bold;">&lt;</span><span style="color: #000000;">32</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">64</span><span style="color: #000000; font-weight: bold;">&gt;</span>-<span style="color: #000000; font-weight: bold;">&lt;</span>version<span style="color: #000000; font-weight: bold;">&gt;</span><br />
$ <span style="color: #c20cb9; font-weight: bold;">make</span></div></td></tr></tbody></table></div>
<p>If you have an older version of <em>wl</em>, which is usually in <em>/lib/modules/<kernel-version>/kernel/net/wireless</em>, you should rename or remove it, to avoid conflicts:</p>
<div class="codecolorer-container bash default" 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="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;"># </span><span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>modules<span style="color: #000000; font-weight: bold;">/`</span><span style="color: #c20cb9; font-weight: bold;">uname</span> -r<span style="color: #000000; font-weight: bold;">`/</span>kernel<span style="color: #000000; font-weight: bold;">/</span>net<span style="color: #000000; font-weight: bold;">/</span>wireless<span style="color: #000000; font-weight: bold;">/</span>wl.ko <span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>modules<span style="color: #000000; font-weight: bold;">/`</span><span style="color: #c20cb9; font-weight: bold;">uname</span> -r<span style="color: #000000; font-weight: bold;">`/</span>kernel<span style="color: #000000; font-weight: bold;">/</span>net<span style="color: #000000; font-weight: bold;">/</span>wireless<span style="color: #000000; font-weight: bold;">/</span>wl.ko.old</div></td></tr></tbody></table></div>
<p>Copy the new wl.ko to <em>/lib/modules/<kernel-version>/kernel/net/wireless</em> and install it:</p>
<div class="codecolorer-container bash default" 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;"># cp wl.ko /lib/modules/`uname -r`/kernel/net/wireless/</span><br />
<span style="color: #666666; font-style: italic;"># insmod wl.ko</span></div></td></tr></tbody></table></div>
<p>Add it to <em>/etc/modules</em> to load it at boot time:</p>
<div class="codecolorer-container bash default" 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;"># echo &quot;lib80211&quot; /etc/modules</span><br />
<span style="color: #666666; font-style: italic;"># echo &quot;wl&quot; /etc/modules</span></div></td></tr></tbody></table></div>
<p>After these steps your wireless network should be working.</p>
<p><strong>Troubleshooting</strong><br />
I had another problem: after rebooting, <em>ssb</em> module was being loaded even after being blacklisted, and the recently added <em>wl</em> module wasn&#8217;t.</p>
<p>To check if this is happening to you run the command below:</p>
<div class="codecolorer-container bash default" 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="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">lsmod</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> ssb</div></td></tr></tbody></table></div>
<p>If the command returns something, it means that the <em>ssb</em> module is being loaded, then you&#8217;ll have to:</p>
<p><strong>1 &#8211; Remove <em>ssb</em> and <em>wl</em> modules:</strong></p>
<div class="codecolorer-container bash default" 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="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;"># </span>rmmod ssb; rmmod wl</div></td></tr></tbody></table></div>
<p><strong>2 &#8211; Back up the current boot ramfs, generate a new one and reboot system:</strong></p>
<div class="codecolorer-container bash default" 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 />3<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;"># cp /boot/initrd.img-`uname -r` &nbsp;somewheresafe</span><br />
<span style="color: #666666; font-style: italic;"># update-initramfs -u</span><br />
<span style="color: #666666; font-style: italic;"># reboot</span></div></td></tr></tbody></table></div>
<p><strong>3 &#8211; Reinstall <em>wl</em> module:</strong></p>
<div class="codecolorer-container bash default" 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 />3<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;"># cp wl.ko /lib/modules/`uname -r`/kernel/net/wireless/</span><br />
<span style="color: #666666; font-style: italic;"># insmod wl.ko</span><br />
<span style="color: #666666; font-style: italic;"># depmode -a</span></div></td></tr></tbody></table></div>
<p>And <em>wl</em> module will be loaded at boot time.</p>
<p>[0] <a href="http://www.broadcom.com/support/802.11/linux_sta.php" target="_blank">http://www.broadcom.com/support/802.11/linux_sta.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://earruda.eti.br/blog/2010/07/getting-broadcom-wireless-cards-to-work-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian Squeeze 64-bits, Iceweasel and flashplugin</title>
		<link>http://earruda.eti.br/blog/2010/07/debian-squeeze-64-bits-iceweasel-and-flashplugin/</link>
		<comments>http://earruda.eti.br/blog/2010/07/debian-squeeze-64-bits-iceweasel-and-flashplugin/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 22:29:32 +0000</pubDate>
		<dc:creator>Éverton Arruda</dc:creator>
				<category><![CDATA[Free Software]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Planet PSL-AM]]></category>

		<guid isPermaLink="false">http://earruda.eti.br/blog/?p=217</guid>
		<description><![CDATA[I&#8217;ve installed Debian Squeeze 64-bits, the current testing version of Debian, with KDE4 and i wasn&#8217;t able to watch YouTube (and similar websites) videos. I&#8217;ve noticed that the default SWF decoder library is swfdec[0], and i thought that installing the Flash Player from Adobe would solve the problem. Fortunately i was right, but i found [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve installed Debian Squeeze 64-bits, the current testing version of Debian, with KDE4 and i wasn&#8217;t able to watch YouTube (and similar websites) videos. I&#8217;ve noticed that the default SWF decoder library is swfdec[0], and i thought that installing the Flash Player from Adobe would solve the problem. Fortunately i was right, but i found out that Adobe Flash Player does not support 64-bit Linux[1].</p>
<p>Searching about it i ended up in a page, on Debian Wiki, with a workaround that worked for me. Just follow the instructions in <a href="http://wiki.debian.org/FlashPlayer">http://wiki.debian.org/FlashPlayer</a></p>
<p>[0] <a href="http://swfdec.freedesktop.org/">http://swfdec.freedesktop.org/</a><br />
[1] <a href="http://labs.adobe.com/technologies/flashplayer10/64bit.html">http://labs.adobe.com/technologies/flashplayer10/64bit.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://earruda.eti.br/blog/2010/07/debian-squeeze-64-bits-iceweasel-and-flashplugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Progress bar in cp command</title>
		<link>http://earruda.eti.br/blog/2010/03/progress-bar-in-cp-command/</link>
		<comments>http://earruda.eti.br/blog/2010/03/progress-bar-in-cp-command/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 19:34:08 +0000</pubDate>
		<dc:creator>Éverton Arruda</dc:creator>
				<category><![CDATA[Free Software]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Planet INdT]]></category>
		<category><![CDATA[Planet PSL-AM]]></category>
		<category><![CDATA[command]]></category>

		<guid isPermaLink="false">http://earruda.eti.br/blog/?p=191</guid>
		<description><![CDATA[Reading Planet Debian (http://planet.debian.org) i&#8217;ve seen an interesting post, made by Daniel Stone (http://www.fooishbar.org/blog/tech/), in which he links to Chris Lamb&#8217;s blog (http://chris-lamb.co.uk/). In the post, he answers the following question: &#8216;Can you get cp to give a progress bar like wget?&#8217;. The answer is the name of the post: &#8216;damn right you can&#8217;. Check [...]]]></description>
			<content:encoded><![CDATA[<p>Reading Planet Debian (<a href="http://planet.debian.org/" target="_blank">http://planet.debian.org</a>) i&#8217;ve seen an interesting post, made by Daniel Stone (<a href="http://www.fooishbar.org/blog/tech/" target="_blank">http://www.fooishbar.org/blog/tech/</a>), in which he links to Chris Lamb&#8217;s blog (<a href="http://chris-lamb.co.uk/" target="_blank">http://chris-lamb.co.uk/</a>).</p>
<p>In the post, he answers the following question: &#8216;Can you get cp to give a progress bar like wget?&#8217;. The answer is the name of the post: &#8216;<span>damn right you can&#8217;</span>.</p>
<p>Check it out: <a href="http://www.fooishbar.org/blog/tech/cp-progress-bar-2010-03-04-12-15.html" target="_blank">http://www.fooishbar.org/blog/tech/cp-progress-bar-2010-03-04-12-15.html</a></p>
<p>:wq</p>
]]></content:encoded>
			<wfw:commentRss>http://earruda.eti.br/blog/2010/03/progress-bar-in-cp-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating Web Albums with gThumb</title>
		<link>http://earruda.eti.br/blog/2009/12/creating-web-albums-with-gthumb/</link>
		<comments>http://earruda.eti.br/blog/2009/12/creating-web-albums-with-gthumb/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 20:31:52 +0000</pubDate>
		<dc:creator>Éverton Arruda</dc:creator>
				<category><![CDATA[Free Software]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Planet INdT]]></category>
		<category><![CDATA[Planet PSL-AM]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://earruda.eti.br/blog/?p=165</guid>
		<description><![CDATA[If you want to create a web album with some images you have in your computer, with Linux as your OS, i recommend you to use gThumb. gThumb is, as said in WikiPedia (http://en.wikipedia.org/wiki/GThumb): &#8230; an open-source image viewer and organizer for the GNOME desktop environment released under the GNU General Public License. It was [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to create a web album with some images you have in your computer, with Linux as your OS, i recommend you to use gThumb.</p>
<p>gThumb is, as said in WikiPedia (http://en.wikipedia.org/wiki/GThumb):</p>
<blockquote><p>&#8230; an open-source image viewer and organizer for the GNOME desktop environment released under the GNU General Public License. It was originally based on GQView, and is designed to have a clean, simple interface.</p></blockquote>
<p>gThumb Homepage: http://gthumb.sourceforge.net/</p>
<p><strong>INSTALLING GTHUMB:</strong><br />
I&#8217;m using Ubuntu 9.04, named Jaunty Jackalope, to write this tutorial, so the installation process is very simple, all you have to do is run:</p>
<div class="codecolorer-container bash default" 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="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;"># </span><span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gthumb</div></td></tr></tbody></table></div>
<p>This should work the same way for Debian GNU/Linux, but if you&#8217;re using another distro Linux, you might have to compile gThumb.</p>
<p><strong>CREATING WEB ALBUM:</strong><br />
When you run gThumb you&#8217;ll see this interface:</p>
<p><a href="http://earruda.eti.br/images/gthumb-gallery1.png"><img class=" alignnone" title="gThumb Interface" src="http://earruda.eti.br/images/gthumb-gallery1.png" alt="gThumb Interface" width="500" /></a></p>
<p>I mapped it to make it easier to follow:</p>
<p><a href="http://earruda.eti.br/images/gthumb-gallery2.png"><img class=" alignnone" title="gThumb Interface Mapped" src="http://earruda.eti.br/images/gthumb-gallery2.png" alt="gThumb Interface Mapped" width="500" /></a></p>
<p>The steps to create the Web Album are:<br />
<strong>1 &#8211; Create directory to keep the images:</strong><br />
First create a directory and put the images you&#8217;d like to be in the album in it.</p>
<p><strong>2 &#8211; Open directory with gThumb:</strong><br />
In gThumb interface, select the directory in which the images are (#1 in MAP)</p>
<p><strong>3 &#8211; Select the images you&#8217;d like to show in the album:</strong><br />
After opening the directory, which contains the images, you&#8217;ll have to select the images you&#8217;d like to show in the album (#2 in MAP)</p>
<p><strong>4 &#8211; Open the &#8220;Create Web Album&#8221; window and configure it: </strong><br />
Now, with all images selected, go to <em>Tools &gt; Create Web Album</em> (#3 in MAP)<br />
Then you should see a window like this:</p>
<p><img src="http://earruda.eti.br/images/gthumb-gallery3.png" alt="gThumb Web Album Interface mapped" width="566" height="599" /></p>
<p>This is where you&#8217;ll configure your web album. The options are:</p>
<p><strong>#1</strong> &#8211; Where the web album files will be saved.<br />
<strong>#2</strong> &#8211; The name of the page, i recommend you to leave it as it is.<br />
<strong>#3</strong> &#8211; How many images per line and per column will be shown.<br />
<strong>#4</strong> &#8211; The title of the page, or header message, if you preffer.<br />
<strong>#5</strong> &#8211; The footer message of the page.<br />
<strong>#6</strong> &#8211; The theme that will be used in the web album.</p>
<p>The other options are not so important for me, so i didn&#8217;t put them in here.</p>
<p>In the end, you&#8217;ll have something like this: <a href="http://am.softwarelivre.org/galeria/fedora12releaseparty/">http://am.softwarelivre.org/galeria/fedora12releaseparty/</a></p>
<p>:wq</p>
]]></content:encoded>
			<wfw:commentRss>http://earruda.eti.br/blog/2009/12/creating-web-albums-with-gthumb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IpForward from Computer with Linux to PS3</title>
		<link>http://earruda.eti.br/blog/2009/10/ipforward-from-computer-with-linux-to-ps3/</link>
		<comments>http://earruda.eti.br/blog/2009/10/ipforward-from-computer-with-linux-to-ps3/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 00:04:24 +0000</pubDate>
		<dc:creator>Éverton Arruda</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Planet INdT]]></category>
		<category><![CDATA[Planet PSL-AM]]></category>
		<category><![CDATA[3g]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[ipforward]]></category>
		<category><![CDATA[modem]]></category>
		<category><![CDATA[PS3]]></category>

		<guid isPermaLink="false">http://earruda.eti.br/blog/?p=155</guid>
		<description><![CDATA[I&#8217;ve recently bought my PlayStation 3 (FInaly!!!!!) and was thinking of a way to connect my PS3 to the internet using my 3G BroadBand internet connection, which is provided by the brazilian Phone Company Claro. The only thing that came to me was: IpForward. So i did this: 1 &#8211; Connected my Notebook to the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently bought my PlayStation 3 (FInaly!!!!!) and was thinking of a way to connect my PS3 to the internet using my 3G BroadBand internet connection, which is provided by the brazilian Phone Company Claro. The only thing that came to me was: IpForward.</p>
<p>So i did this:<br />
<strong>1 &#8211; Connected my Notebook to the 3G Broadband:</strong><br />
Just connected as I normally do.</p>
<p><strong>2 &#8211; Connected my PS3 to my Notebook:</strong><br />
Created a LAN between them, through my notebook&#8217;s interface eth0.<br />
I configured my PS3&#8242;s network connection as follows:<br />
In the PS3&#8242;s main menu go to <strong>Settings</strong> > <strong>Network Settings</strong> > <strong>Internet Connection Settings</strong>, then, go through this sequence of choices: <strong>custom</strong>, <strong>wired connection</strong>, <strong>auto-detect</strong>, <strong>manual</strong> (the ip settings are shown bellow), <strong>automatic</strong>, <strong>do not use</strong> (in my case i don&#8217;t use any proxy), <strong>enable</strong>.</p>
<p>The Ip Settings are:<br />
<strong>Ip address:</strong> 192.168.0.2<br />
<strong>Subnet mask:</strong> 255.255.255.0<br />
<strong>Default Router:</strong> 192.168.0.1 (This is my Notebook&#8217;s Ip)<br />
<strong>Primary DNS:</strong> 208.67.222.222 (This is Claro&#8217;s primary DNS Server)<strong><br />
Secondary DNS:</strong> 208.67.220.220 (This is Claro&#8217;s secondary DNS Server)</p>
<p><strong>3 &#8211; Set Notebook to IpForward</strong><br />
I found a Script in the internet that does everything it needs to ipforward, all i did was add the final line, which sets a fixed ip to the interface that is connected to the LAN. I don&#8217;t remeber who wrote the script, but the credits are his/hers.<br />
All you have to do now is save the script bellow and run it everytime you want to connect your PS3:</p>
<div class="codecolorer-container bash default" 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 />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<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/sh</span><br />
<span style="color: #666666; font-style: italic;"># Basic firewall and forward/masquerade setup</span><br />
<br />
<span style="color: #007800;">PATH</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<br />
<br />
<span style="color: #666666; font-style: italic;"># Delete/Flush old iptables rules</span><br />
iptables <span style="color: #660033;">-F</span><br />
iptables <span style="color: #660033;">-t</span> nat <span style="color: #660033;">-F</span><br />
iptables <span style="color: #660033;">-X</span><br />
<br />
<span style="color: #666666; font-style: italic;"># Set up IP FORWARDing and Masquerading</span><br />
iptables <span style="color: #660033;">--table</span> nat <span style="color: #660033;">--append</span> POSTROUTING <span style="color: #660033;">--out-interface</span> ppp0 <span style="color: #660033;">-j</span> MASQUERADE<br />
<br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>net<span style="color: #000000; font-weight: bold;">/</span>ipv4<span style="color: #000000; font-weight: bold;">/</span>ip_forward<br />
<br />
<span style="color: #c20cb9; font-weight: bold;">ifconfig</span> eth0 192.168.0.1 netmask 255.255.255.0</div></td></tr></tbody></table></div>
<p>If you did as it is described in here, then it should work just fine.</p>
<p>Just for the record, I&#8217;m sing BrDesktop Lenny Linux as Operating System (a Debian Pure Blend).</p>
<p><strong>Note:</strong> Everytime I try to test the connect through PS3, my notebook loses the ip 192.168.0.1 and starts o search for another one, breaking the connection between them. So i recommend you not to use that feature when using the connection method described in here.</p>
<p>:wq</p>
]]></content:encoded>
			<wfw:commentRss>http://earruda.eti.br/blog/2009/10/ipforward-from-computer-with-linux-to-ps3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Downloading files from Rapidshare through shell</title>
		<link>http://earruda.eti.br/blog/2009/09/downloading-files-from-rapidshare-through-shell/</link>
		<comments>http://earruda.eti.br/blog/2009/09/downloading-files-from-rapidshare-through-shell/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 13:53:49 +0000</pubDate>
		<dc:creator>Éverton Arruda</dc:creator>
				<category><![CDATA[Free Software]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Planet INdT]]></category>
		<category><![CDATA[Planet PSL-AM]]></category>
		<category><![CDATA[rapidshare]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://earruda.eti.br/blog/?p=143</guid>
		<description><![CDATA[I&#8217;ve seen, at Viva o Linux (http://www.vivaolinux.com.br, in portuguese), a post talking about a ShellScript that downloads files from RapidShare through shell. As, sometimes, i download files from that site,  i decided to try it out and it worked fine for me. This script uses wget to download the first html page, then it gets [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve seen, at Viva o Linux (<a href="http://www.vivaolinux.com.br/artigo/Baixando-arquivos-do-Megaupload-e-Rapidshare-pelo-terminal" target="_blank">http://www.vivaolinux.com.br</a>, in portuguese), a post talking about a ShellScript that downloads files from RapidShare through shell. As, sometimes, i download files from that site,  i decided to try it out and it worked fine for me.</p>
<p>This script uses wget to download the first html page, then it gets the link to the page that contains the link to the file, download this second page, checks the timer and waits for it to finish, after it finishes, the script starts the file download. I noticed that, if the download stops, this script continues from where it stopped.</p>
<p>This is how it goes:</p>
<p><strong>1 &#8211; Download the ShellScript:</strong></p>
<div class="codecolorer-container text default" 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">$ wget http://tokland.googlecode.com/svn/trunk/rapidshare/rapidshare-dl.sh</div></td></tr></tbody></table></div>
<p><strong>2 &#8211; Set execution permission:</strong></p>
<div class="codecolorer-container text default" 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">$ chmod +x rapidshare-dl.sh</div></td></tr></tbody></table></div>
<p><strong>3 &#8211; Download File:</strong><br />
There are two ways you can do this:<br />
<strong>Passing the link as an argument</strong>:</p>
<div class="codecolorer-container text default" 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">$ ./rapidshare-dl.sh http://link.to.rapidshare</div></td></tr></tbody></table></div>
<p>You can also add more than one link:</p>
<div class="codecolorer-container text default" 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">$ ./rapidshare-dl.sh http://link.to.rapidshare http://another.link.to.rapidshare</div></td></tr></tbody></table></div>
<p><strong>Passing a text file as an argument:</strong><br />
Create a text file, named links.txt for example, and put each link in a different line, like:</p>
<div class="codecolorer-container text default" 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 />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">http://link1.to.rapidshare<br />
http://link2.to.rapidshare<br />
http://link3.to.rapidshare</div></td></tr></tbody></table></div>
<p>Then you run the script with the text file name as an argument:</p>
<div class="codecolorer-container text default" 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">$ ./rapidshare-dl.sh links.txt</div></td></tr></tbody></table></div>
<p>You can create a link to the script in, or copy it to, the <em>/usr/bin</em> directory, making it executable from everywhere:</p>
<div class="codecolorer-container text default" 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"># ln -s $PATH_TO_SCRIPT/rapidshare-dl.sh /usr/bin/rapidshare-dl</div></td></tr></tbody></table></div>
<div class="codecolorer-container text default" 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"># cp &nbsp;rapidshare-dl.sh /usr/bin/rapidshare-dl</div></td></tr></tbody></table></div>
<p><strong>NOTE:</strong> This script works only in Unix-like systems.</p>
<p>There is also plowshare, which is another shellscript that does the same thing, and more, but i haven&#8217;t tested it yet. In the project page it says that it supports Megaupload, Rapidshare, 2Shared, 4Shared, ZShare, Badongo, DepositFiles and Mediafire, and it also uploads files to those share sites.<br />
PlowShare Page: <a href="http://code.google.com/p/plowshare/" target="_blank">http://code.google.com/p/plowshare/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://earruda.eti.br/blog/2009/09/downloading-files-from-rapidshare-through-shell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Modem 3G Claro Huawei E226 no Debian Lenny/Ubuntu</title>
		<link>http://earruda.eti.br/blog/2009/07/modem-3g-claro-huawei-e226-no-debian-lennyubuntu/</link>
		<comments>http://earruda.eti.br/blog/2009/07/modem-3g-claro-huawei-e226-no-debian-lennyubuntu/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 14:49:17 +0000</pubDate>
		<dc:creator>Éverton Arruda</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Planet INdT]]></category>
		<category><![CDATA[Planet PSL-AM]]></category>
		<category><![CDATA[3g]]></category>
		<category><![CDATA[claro]]></category>
		<category><![CDATA[modem]]></category>

		<guid isPermaLink="false">http://earruda.eti.br/blog/?p=97</guid>
		<description><![CDATA[Comprei, recentemente, o modem 3G da Claro, fabricado pela Huawei, modelo E226, e infelizmente não consegui fazê-lo funcionar de cara no Debian Lenny, mas após alguns minutos de pesquisa a solução apareceu! A solução que descreverei também funcionou do Ubuntu, nas versões Intrepid Ibex e no Jaunty Jackalope. Você precisará do pacote wvdial, instale-o com [...]]]></description>
			<content:encoded><![CDATA[<p><center><a href="http://images.quebarato.com.br/photos/big/D/2/4300D2_1.jpg"><img alt="" src="http://images.quebarato.com.br/photos/big/D/2/4300D2_1.jpg" title="Modem Huawei E226" class="aligncenter" width="311" height="374" /></a></center></p>
<p>Comprei, recentemente, o modem 3G da Claro, fabricado pela Huawei, modelo E226, e infelizmente não consegui fazê-lo funcionar de cara no Debian Lenny, mas após alguns minutos de pesquisa a solução apareceu!</p>
<p>A solução que descreverei também funcionou do Ubuntu, nas versões Intrepid Ibex e no Jaunty Jackalope.</p>
<p>Você precisará do pacote <em>wvdial</em>, instale-o com o comando:</p>
<div class="codecolorer-container text default" 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"># aptitude install wvdial</div></td></tr></tbody></table></div>
<p>Para saber mais detalhes sobre o pacote acesse este link: <a href="http://packages.debian.org/lenny/wvdial">http://packages.debian.org/lenny/wvdial</a>.</p>
<p>Após isso você deverá criar um arquivo de configuração para o wvdial, chamado wvdial.conf, com o seguinte conteúdo:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><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 />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[Dialer Defaults]<br />
Carrier Check = off<br />
Init1 = ATZ<br />
Init2 = ATQ0 V1 E1 S0=0 &amp;C1 &amp;D2 +FCLASS=0<br />
Password = claro<br />
Ask Password = 0<br />
Check Def Route = 1<br />
Phone = *99***1#<br />
Idle Seconds = 0<br />
Modem Type = Analog Modem<br />
Stupid Mode = 1<br />
Compuserve = 0<br />
Baud = 460800<br />
Auto DNS = off<br />
Dial Command = ATDT<br />
Modem = /dev/ttyUSB0<br />
ISDN = 0<br />
Username = claro<br />
<br />
[Dialer claro3g]<br />
Stupid Mode = on<br />
Password = claro<br />
Auto Reconnect = off<br />
Username = claro<br />
Phone = *99***1#</div></td></tr></tbody></table></div>
<p>conecte-se com o comando:</p>
<div class="codecolorer-container text default" 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"># wvdial -C wvdial.conf</div></td></tr></tbody></table></div>
<p>E você estará conectado, mas ainda não será possível acessar qualquer endereço da internet, devido aos endereços dos servidores DNS estarem incorretos, então você deve adicionar as seguintes linhas ao arquivo <em>/etc/resolv.conf</em>:</p>
<div class="codecolorer-container text default" 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="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">nameserver 208.67.222.222<br />
nameserver 208.67.220.220</div></td></tr></tbody></table></div>
<p>Agora você poderá acessar a internet normalmente.</p>
<p>No Ubuntu, a configuração foi mais fácil devido à versão do network-manager, ao conectar o modem ao computador, este foi reconhecido normalmente e um assistente de configuração foi aberto automaticamente. Tudo o que tive que fazer para acessar a internet foi adicionar as linhas acima no arquivo <em>/etc/resolv.conf</em> após estar conectado, e deve ser após estar conectado porque o network-manager sobrescreve o arquivo <em>/etc/resolv.conf</em> toda vez. </p>
<p>Você pode, também, adicionar os endereços dos servidores DNS nas configurações da conexão da Claro no network-manager fazendo o seguinte: Sistemas > Conexões de Rede > Banda Larga Móvel > Editar conexão da Claro > Configurações IPv4 e adicionar os IPs 208.67.222.222, 208.67.220.220 na linha dos Servidores DNS e aplicar as alterações, assim você não terá que adicionar aquelas linhas no <em>/etc/resolv.conf</em> toda vez que conectar.</p>
<p>:wq</p>
]]></content:encoded>
			<wfw:commentRss>http://earruda.eti.br/blog/2009/07/modem-3g-claro-huawei-e226-no-debian-lennyubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

