<?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/tag/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>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>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>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>
		<item>
		<title>VIM as a syntax highlighting pager</title>
		<link>http://earruda.eti.br/blog/2009/07/vim-as-a-syntax-highlighting-pager/</link>
		<comments>http://earruda.eti.br/blog/2009/07/vim-as-a-syntax-highlighting-pager/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 18:59:55 +0000</pubDate>
		<dc:creator>Éverton Arruda</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Planet INdT]]></category>
		<category><![CDATA[code highlight]]></category>
		<category><![CDATA[Free Software]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[vless]]></category>

		<guid isPermaLink="false">http://earruda.eti.br/blog/?p=92</guid>
		<description><![CDATA[I&#8217;ve been looking for a way to use less with syntax highlight and ended up in a page of Ubuntu Tutorials[0] website with a very good tip: Using VIM as a syntax highlighting pager[1]. All you&#8217;ll need is the package vim-full, só, in Debian-like systems, you&#8217;ll need to execute: 1# aptitude install vim-full Then, you&#8217;ll [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been looking for a way to use less with syntax highlight and ended up in a page of Ubuntu Tutorials[0] website with a very good tip: Using VIM as a syntax highlighting pager[1].</p>
<p>All you&#8217;ll need is the package <em>vim-full</em>, só, in Debian-like systems, you&#8217;ll need to execute:</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 vim-full</div></td></tr></tbody></table></div>
<p>Then, you&#8217;ll have to execute:</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">$ vim -u /usr/share/vim/vim72/macros/less.vim &lt;FILE&gt;</div></td></tr></tbody></table></div>
<p>And you have it working!<br />
<strong>NOTE</strong>: Depending on the version of your VIM, the path to <em>less.vim</em> might be different.</p>
<p>You can make this command simpler by creating an alias and adding it to your <em>.bashrc</em> file:</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;alias vless=\&quot;vim -u /usr/share/vim/vim72/macros/less.vim\&quot;&quot; &gt;&gt; ~/.bashrc</div></td></tr></tbody></table></div>
<p>Now the system will need to re-read your <em>.bashrc</em> file, so the changes may be applied:</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">$ . ~/.bashrc</div></td></tr></tbody></table></div>
<p>And after this you can test vless:</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">$ vless &lt;FILE&gt;</div></td></tr></tbody></table></div>
<p>[0] <a href="http://ubuntu-tutorials.com">http://ubuntu-tutorials.com</a><br />
[1] <a href="http://ubuntu-tutorials.com/2008/07/14/use-vim-as-a-syntax-highlighting-pager/">http://ubuntu-tutorials.com/2008/07/14/use-vim-as-a-syntax-highlighting-pager/</a></p>
<p>:wq</p>
]]></content:encoded>
			<wfw:commentRss>http://earruda.eti.br/blog/2009/07/vim-as-a-syntax-highlighting-pager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Colored Man Pages</title>
		<link>http://earruda.eti.br/blog/2009/07/colored-man-pages/</link>
		<comments>http://earruda.eti.br/blog/2009/07/colored-man-pages/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 15:36:32 +0000</pubDate>
		<dc:creator>Éverton Arruda</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Planet INdT]]></category>
		<category><![CDATA[Free Software]]></category>
		<category><![CDATA[man pages]]></category>

		<guid isPermaLink="false">http://earruda.eti.br/blog/?p=83</guid>
		<description><![CDATA[I found an interesting tip about coloring man pages in Jônatas&#8217; blog (http://tupinigeek.blogspot.com/2009/07/man-pages-coloridas.html &#60;- in Portugese). This is how you do it: 1 &#8211; Install most (http://www.jedsoft.org/most/index.html): You can download most here: ftp://space.mit.edu/pub/davis/most/ or by executing the line bellow in debian-like systems: 1# aptitude install most 2 &#8211; Export MANPAGER variable: After this you&#8217;ll have [...]]]></description>
			<content:encoded><![CDATA[<p>I found an interesting tip about coloring man pages in Jônatas&#8217; blog (<a href="http://tupinigeek.blogspot.com/2009/07/man-pages-coloridas.html">http://tupinigeek.blogspot.com/2009/07/man-pages-coloridas.html</a> &lt;- in Portugese). This is how you do it:</p>
<p><strong>1 &#8211; Install <em>most</em> (<a title="Most Home Page" href="http://www.jedsoft.org/most/index.html" target="_blank">http://www.jedsoft.org/most/index.html</a>):<br />
</strong>You can download <em>most</em> here<strong>: </strong><a title="Download Most" href="ftp://space.mit.edu/pub/davis/most/" target="_blank">ftp://space.mit.edu/pub/davis/most/</a><br />
or by executing the line bellow in debian-like systems:</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 most</div></td></tr></tbody></table></div>
<p><strong>2 &#8211; Export MANPAGER variable:</strong><br />
After this you&#8217;ll have to execute the line 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">$ export MANPAGER=&quot;/usr/bin/most -s&quot;</div></td></tr></tbody></table></div>
<p>Now you should have your man pages like this:<br />
<a href="http://earruda.eti.br/images/colored-man-pages.png"><img class="aligncenter" title="Colored Man Pages" src="http://earruda.eti.br/images/colored-man-pages.png" alt="" width="600" height="417" /></a></p>
<p>If you don&#8217;t want to export that variable everytime you restart your computer, you can add that line to your <em>.bashrc</em> file:</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;export MANPAGER=\&quot;/usr/bin/most -s\&quot;&quot; &gt;&gt; ~/.bashrc</div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://earruda.eti.br/blog/2009/07/colored-man-pages/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[JavaScript+CSS+PHP] Changing style of actual menu link</title>
		<link>http://earruda.eti.br/blog/2009/06/javascriptcssphp-changing-style-of-actual-menu-link/</link>
		<comments>http://earruda.eti.br/blog/2009/06/javascriptcssphp-changing-style-of-actual-menu-link/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 22:09:26 +0000</pubDate>
		<dc:creator>Éverton Arruda</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Planet INdT]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[actual menu link]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://earruda.eti.br/blog/?p=70</guid>
		<description><![CDATA[I was looking for a way to change the style of the actual menu link (the last clicked link in the menu), so that the user could know what page he is seeing, or the last link he clicked. My first attempt was to use only CSS, but i didn&#8217;t find anything. Then i read [...]]]></description>
			<content:encoded><![CDATA[<p>I was looking for a way to change the style of the actual menu link (the last clicked link in the menu), so that the user could know what page he is seeing, or the last link he clicked. My first attempt was to use only CSS, but i didn&#8217;t find anything. Then i read somewhere that it was not able to what i wanted only with CSS, that i needed JavaScript to do it. Well, i&#8217;ve done it and here i&#8217;ll teach how to do it:</p>
<p>The first thing we have to do is to create the menu and it&#8217;s style:<br />
<strong>Style:</strong></p>
<div class="codecolorer-container css 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 />17<br />18<br />19<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #cc00cc;">#menu</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">border-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #993333;">solid</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #993333;">solid</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">300px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #cc00cc;">#menu</span> a <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;white&quot;</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #cc00cc;">#menu</span> a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">underline</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>Note that i didn&#8217;t set the <em>a:visited</em> style.</p>
<p><strong>Menu:</strong></p>
<div class="codecolorer-container html4strict 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="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;menu&quot;</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;link1&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php $_SERVER['php_self'] ?&gt;</span></span>?p=link1&quot;&gt;link1<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;link2&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php $_SERVER['php_self'] ?&gt;</span></span>?p=link2&quot;&gt;link2<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;link3&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php $_SERVER['php_self'] ?&gt;</span></span>?p=link3&quot;&gt;link3<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span></div></td></tr></tbody></table></div>
<p>Now we have our menu, but it&#8217;s still not showing what is the actual menu link, so we will need a function that will change the style of the actual menu link:</p>
<p><strong>Javascript Function:</strong></p>
<div class="codecolorer-container javascript 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="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #003366; font-weight: bold;">function</span> setActualLink<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">item</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">item</span>.<span style="color: #660066;">style</span>.<span style="color: #660066;">backgroundColor</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;black&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">item</span>.<span style="color: #660066;">style</span>.<span style="color: #660066;">color</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;white&quot;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>Now that we have the function it&#8217;s necessary to make it be executed after the menu is loaded, adding this line:</p>
<div class="codecolorer-container html4strict 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="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span>setActualLink(<span style="color: #009900;">&lt;?php echo $p; ?&gt;</span>);<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span></div></td></tr></tbody></table></div>
<p>You could also create a class for the actual menu link and assign the class to the actual menu link, instead of setting the styles directly inside the javascript function, as shown below:</p>
<p><strong>Actual Menu Link Class:</strong></p>
<div class="codecolorer-container css 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 /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #cc00cc;">#menu</span> a<span style="color: #6666ff;">.actualLink</span><span style="color: #3333ff;">:visited </span><span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">white</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>And the javascript function would change to:<br />
<strong>JavaScript Function:</strong></p>
<div class="codecolorer-container javascript 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 /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #003366; font-weight: bold;">function</span> setActualLink<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">item</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">item</span>.<span style="color: #660066;">className</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;actualLink&quot;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>You can see the examples in the links below:<br />
<a href="http://blog.earruda.eti.br/examples/menu-with-class.php">Using class</a><br />
<a href="http://blog.earruda.eti.br/examples/menu-without-class.php">Not using class</a><br />
The php codes are commented in the source.</p>
<p>Remeber that the pages must be .php .</p>
<p>:wq</p>
]]></content:encoded>
			<wfw:commentRss>http://earruda.eti.br/blog/2009/06/javascriptcssphp-changing-style-of-actual-menu-link/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

