<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>The Hungry Programmer</title>
	<atom:link href="http://neildecapia.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://neildecapia.wordpress.com</link>
	<description>Will code for food</description>
	<lastBuildDate>Fri, 08 Jul 2011 22:46:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='neildecapia.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>The Hungry Programmer</title>
		<link>http://neildecapia.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://neildecapia.wordpress.com/osd.xml" title="The Hungry Programmer" />
	<atom:link rel='hub' href='http://neildecapia.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Ubuntu Lucid 10.04 on a RAID 0 array</title>
		<link>http://neildecapia.wordpress.com/2010/05/15/ubuntu-lucid-10-04-on-a-raid-0%c2%a0array/</link>
		<comments>http://neildecapia.wordpress.com/2010/05/15/ubuntu-lucid-10-04-on-a-raid-0%c2%a0array/#comments</comments>
		<pubDate>Sat, 15 May 2010 14:26:14 +0000</pubDate>
		<dc:creator>neildecapia</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://neildecapia.wordpress.com/?p=194</guid>
		<description><![CDATA[This is a follow-up to a previous post on getting Ubuntu to work on a RAID 0 array. As usual, I make no guarantees that this will work for you. Be sure you have backups before you attempt this. The good news: installation of Ubuntu 10.04 (using the alternate installer) to my RAID 0 array [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=neildecapia.wordpress.com&amp;blog=5088047&amp;post=194&amp;subd=neildecapia&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a follow-up to a previous <a href="http://neildecapia.wordpress.com/2010/02/15/dual-booting-windows-7-and-ubuntu-karmic-9-10-on-a-raid-0-array/">post on getting Ubuntu to work on a RAID 0 array</a>. As usual, I make no guarantees that this will work for you. Be sure you have backups before you attempt this.</p>
<p>The good news: installation of Ubuntu 10.04 (using the alternate installer) to my RAID 0 array was able to finish without any problems, unlike in 9.10 where it stopped at the GRUB installation step. The bad news is that upon rebooting, I was greeted by a <em>GRUB Error 15</em>.</p>
<p>Fortunately this can be fixed by manually installing GRUB.</p>
<ol>
<li>
    Boot the Ubuntu 10.04 alternate installer CD. Select <i>Rescue a broken system</i>.
  </li>
<li>
    Follow the dialogs, making sure you Yes to the <i>activate RAID devices</i> prompt, until you get to the <i>Enter rescue mode</i> dialog. Select your root partition and on the next dialog, choose <i>Execute a shell in <code>your-selected-root-partition</code></i>
  </li>
<li>
    Enter the following in the command line:</p>
<pre>
    # update-grub
    # grub-install <code>your-RAID-0-device</code>
    # exit
    </pre>
<p>    Where <code>your-RAID-0-device</code> is where your RAID 0 array is mapped (<code>/dev/mapper/isw_abc_RAID</code> in my previous post). The second line installs GRUB on the MBR.
  </li>
<li>
    Select <i>Reboot the system</i> and you should be able to boot into your Ubuntu 10.04 installation.
  </li>
</ol>
<p>Let me know if this works for you.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/neildecapia.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/neildecapia.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/neildecapia.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/neildecapia.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/neildecapia.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/neildecapia.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/neildecapia.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/neildecapia.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/neildecapia.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/neildecapia.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/neildecapia.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/neildecapia.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/neildecapia.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/neildecapia.wordpress.com/194/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=neildecapia.wordpress.com&amp;blog=5088047&amp;post=194&amp;subd=neildecapia&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://neildecapia.wordpress.com/2010/05/15/ubuntu-lucid-10-04-on-a-raid-0%c2%a0array/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
<enclosure url="" length="" type="" />
	
		<media:content url="http://1.gravatar.com/avatar/f6f54bb0f56fd11e62c2f09d0bc303e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">neildecapia</media:title>
		</media:content>
	</item>
		<item>
		<title>Dual-booting Windows 7 and Ubuntu Karmic 9.10 on a RAID 0 array</title>
		<link>http://neildecapia.wordpress.com/2010/02/15/dual-booting-windows-7-and-ubuntu-karmic-9-10-on-a-raid-0-array/</link>
		<comments>http://neildecapia.wordpress.com/2010/02/15/dual-booting-windows-7-and-ubuntu-karmic-9-10-on-a-raid-0-array/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 03:27:51 +0000</pubDate>
		<dc:creator>neildecapia</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://neildecapia.wordpress.com/?p=54</guid>
		<description><![CDATA[I&#8217;ve been running a Windows XP-Ubuntu Jaunty setup on a single RAID 0 array for months without any problems. Now that I have some free time, I went ahead and updated my setup, documenting the steps here in case I decide to do this again tomorrow. (As a friend remarked, reformatting is a favorite pastime.) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=neildecapia.wordpress.com&amp;blog=5088047&amp;post=54&amp;subd=neildecapia&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been running a Windows XP-Ubuntu Jaunty setup on a single RAID 0 array for months without any problems. Now that I have some free time, I went ahead and updated my setup, documenting the steps here in case I decide to do this again tomorrow. (As a <a href="http://livinglife.sweetperceptions.com/">friend</a> remarked, <em>reformatting</em> is a favorite pastime.)</p>
<p><strong>Warning:</strong> <em>Back up your data before attempting this procedure. I can&#8217;t guarantee that this will work for you.</em> I got this running on my PC, which has Intel ICH9R RAID <em>&#8220;FakeRAID&#8221;</em> capability. Indeed, I copied most of the steps from <a href="https://help.ubuntu.com/community/FakeRaidHowto">the Ubuntu Community Documentation FareRaidHowto</a>. Go ahead and read it first.</p>
<h3>Assumptions</h3>
<ul>
<li>you already have Windows 7 installed on a partition in the RAID 0 array</li>
<li>you&#8217;re using the Ubuntu 9.10 <em>alternate</em> installer</li>
<li><strong>you&#8217;ve backed up your data!</strong></li>
</ul>
<h3>Steps</h3>
<p>There are many. I advise you to read and try to understand all the steps first before proceeding with your installation.</p>
<ol>
<li>
<p>Start installing Ubuntu 9.10.<br />
Set your language, configure your network, partition your disk, create your user account, etc. Ubuntu 9.10 should be able to detect your RAID 0 array and ask you if you want to use it (say yes), so you should not encounter any problems. Until&#8230;</p>
</li>
<li>
<p>Installation <em>stops at the GRUB installation step</em>.<br />
You&#8217;ll know when you see the <b>Ubuntu installer main menu</b>, with the <i>Install the GRUB boot loader on a hard disk</i> entry highlighted. <em>Don&#8217;t press anything yet!</em></p>
</li>
<li>
<p>Manually install GRUB onto the Ubuntu installation.<br />
Ubuntu 9.10 comes with GRUB version 2, which uses a new &#8220;BASH-like (configuration) syntax.&#8221; Sounds pretty cool, but I still need to learn it. For now I&#8217;ll use the old GRUB and my old configuration.</p>
<ol style="list-style:lower-alpha;">
<li>
Switch to the second console by pressing <kbd>CTRL-ALT-F2</kbd>.
</li>
<li>
&#8220;Log in&#8221; to your new but incomplete Ubuntu installation (which is in <code>/target</code>) by entering the following in the command line.</p>
<pre>
# mount --bind /dev /target/dev
# mount -t proc /proc /target/proc
# mount -t sysfs /sys /target/sys
# cp /etc/resolv.conf /target/etc/resolv.conf
# chroot /target
</pre>
</li>
<li>
Now you&#8217;re in. Install GRUB, and replace GRUB version 2&#8242;s files in <code>/boot/grub</code> with GRUB&#8217;s files.</p>
<pre>
# apt-get install --purge grub
# cp /usr/lib/grub/x86_64-pc/* /boot/grub/
</pre>
</li>
</ol>
</li>
<li>
<p>Install GRUB on the MBR.<br />Let&#8217;s say your RAID 0 array is mapped to <code>/dev/mapper/isw_abc_RAID</code>.</p>
<ol style="list-style:lower-alpha;">
<li id="geometry">
First, get the drive geometry.</p>
<pre>
# fdisk -l /dev/mapper/isw_abc_RAID
</pre>
<p>Look for the line saying something like <i><code>255 heads, 63 sectors/track, 19458 cylinders</code></i>, and write it down.
</li>
<li>
Now you&#8217;re ready for GRUB. Open the GRUB shell.</p>
<pre>
# grub --no-curses
</pre>
</li>
<li>
Specify your RAID 0 array as the <code>(hd0)</code> device since we&#8217;re installing to the MBR.</p>
<pre>
grub&gt; device (hd0) /dev/mapper/isw_abc_RAID
</pre>
</li>
<li>
<p>Set the drive geometry.<br />This step probably isn&#8217;t required, as GRUB may have correctly acquired your drive&#8217;s geometry. I needed to do this for my setup, though.</p>
<p>Use the geometry values from <a href="#geometry">the <code>fdisk</code> command you issued earlier</a>. <strong>Note the syntax for the <code>geometry</code> command: it&#8217;s <i><code>geometry drive cylinder head sector</code></i>. Be careful not to mix up the values.</strong></p>
<pre>
grub&gt; geometry (hd0) 19458 255 63
</pre>
</li>
<li id="boot-device">
Find the boot directory partition.<br />Get the drive (partition) where the GRUB boot images are installed.</p>
<pre>
grub&gt; find /boot/grub/stage1
</pre>
<p>Write down the output of the <code>find</code> command. Let&#8217;s assume it&#8217;s <code>(hd0,2)</code>.
</li>
<li>
Set GRUB&#8217;s root partition.<br /> We pass the device reported by the <code>find</code> command to the <code>root</code> command.</p>
<pre>
grub&gt; root (hd0,2)
</pre>
<li>
And finally, install the GRUB boot loader on the MBR.</p>
<pre>
grub&gt; setup (hd0)
</pre>
<li id="quit-grub">
Exit the GRUB shell.</p>
<pre>
grub&gt; quit
</pre>
</li>
</ol>
</li>
<li>
<p>Configure GRUB.<br />You should be back on the Linux shell prompt. <a href="#quit-grub">Quit the GRUB shell</a> if you haven&#8217;t already.</p>
<ol style="list-style:lower-alpha;">
<li>Generate an initial <code>/boot/grub/menu.lst</code> GRUB configuration file.
<pre>
# update-grub
</pre>
</li>
<li>
Edit <code>/boot/grub/menu.lst</code> (I used <code>nano</code>). Using the GRUB boot device you <a href="#boot-device">acquired via the <code>find</code> command</a>, change the line</p>
<pre>
# groot=(hd0,0)
</pre>
<p>to</p>
<pre>
# groot=(hd0,2)
</pre>
</li>
<li>
At this point you should also add the Windows 7 boot entry. Remember to <strong>insert this before the <code>### BEGIN AUTOMAGIC KERNELS LIST</code> line <em>or</em> after the <code>### END DEBIAN AUTOMAGIC KERNELS LIST</code> line</strong>.</p>
<pre>
title        Windows
rootnoverify (hd0,1)  # use the correct partition for Windows!!!
makeactive
chainloader  +1
</pre>
</li>
<li>
Save your changes and then run <code>update-grub</code> again to generate the updated GRUB configuration file.</p>
<pre>
# update-grub
</pre>
</ol>
</li>
<li>
Generate a new initramfs that loads the <code>dmraid</code> kernel module.</p>
<pre>
# echo dm-raid4-5 &gt;&gt; /etc/initramfs-tools/modules
# update-initramfs -u
</pre>
</li>
<li>
Edit <code>/etc/modules</code> to load the <code>dmraid</code> kernel module at boot.</p>
<pre>
# echo dm-raid4-5 &gt;&gt; /etc/modules
</pre>
</li>
<li>
You&#8217;re done! &#8220;Log out&#8221; from the Ubuntu installation.</p>
<pre>
logout
</pre>
<li>
Switch back to the first console by pressing <kbd>CTRL-ALT-F1</kbd> and finish the installation by selecting <i>Continue without boot loader</i> from the menu.
</li>
</ol>
<p>After the computer restarts you should be able to boot into your new Ubuntu installation. Congratulations!</p>
<p>Booting into Windows 7, however, will fail with a <code>BOOTMGR is missing</code> message. Didn&#8217;t you wish you did that backup?</p>
<p>No need to panic, though. Just boot your Windows 7 installation CD, click <i>Repair your computer</i> and it should detect the problem. Press <i>Repair and restart</i>.</p>
<p>Upon restarting, Windows 7 <em>still</em> fails to boot. Once again boot up the Windows 7 installation CD and click <i>Repair your computer</i>, and this time you&#8217;ll have access to the <b>System Recovery Options</b> dialog. Select <i>Use recovery tools&#8230;</i> and the Windows 7 entry from the list of operating systems. Click the <i>Next</i> button.</p>
<p>On the next dialog, select the <i>Startup Repair</i> link. Click <i>Finish</i> on the last dialog. After rebooting, Windows 7 should start correctly.</p>
<p>Feel free share your experiences in attempting this guide. Corrections are very much welcome as well. Good luck! </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/neildecapia.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/neildecapia.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/neildecapia.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/neildecapia.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/neildecapia.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/neildecapia.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/neildecapia.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/neildecapia.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/neildecapia.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/neildecapia.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/neildecapia.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/neildecapia.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/neildecapia.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/neildecapia.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=neildecapia.wordpress.com&amp;blog=5088047&amp;post=54&amp;subd=neildecapia&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://neildecapia.wordpress.com/2010/02/15/dual-booting-windows-7-and-ubuntu-karmic-9-10-on-a-raid-0-array/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
<enclosure url="" length="" type="" />
	
		<media:content url="http://1.gravatar.com/avatar/f6f54bb0f56fd11e62c2f09d0bc303e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">neildecapia</media:title>
		</media:content>
	</item>
		<item>
		<title>From this month&#8217;s Brainmail</title>
		<link>http://neildecapia.wordpress.com/2010/02/15/from-this-months-brainmail/</link>
		<comments>http://neildecapia.wordpress.com/2010/02/15/from-this-months-brainmail/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 02:08:40 +0000</pubDate>
		<dc:creator>neildecapia</dc:creator>
				<category><![CDATA[brainfood]]></category>
		<category><![CDATA[Brainmail]]></category>

		<guid isPermaLink="false">http://neildecapia.wordpress.com/?p=141</guid>
		<description><![CDATA[60% of Twitter users are aged 35+. Ref: The Times (UK) Spending on corporate R&#38;D increased by between 1 and 2% in the US and Europe during 2001 and 2006. In China the increase was 26%. Ref: Economist (UK) 15 of the world&#8217;s 20 top oil companies are now state owned. Ref: Foreign Policy (US) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=neildecapia.wordpress.com&amp;blog=5088047&amp;post=141&amp;subd=neildecapia&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>60% of Twitter users are aged 35+.<br />
Ref: <cite>The Times (UK)</cite></p>
<p>Spending on corporate R&amp;D increased by between 1 and 2% in the US and Europe during 2001 and 2006. In China the  increase was 26%.<br />
Ref: <cite>Economist (UK)</cite></p>
<p>15 of the world&#8217;s 20 top oil companies are now state owned.<br />
Ref: <cite>Foreign Policy (US)</cite></p>
<p>In the US, the number of jobs done by telecommuters is predicted to grow by almost 400% by 2010.<br />
Ref: <cite>World Future Society (US)</cite></p>
<p>1/3 of the women that go to bed with James Bond end up dead.<br />
Ref: <cite>Daily Telegraph (UK)</cite></p>
<p>Read a lot more from <a href="http://brainmail.nowandnext.com/brainmail_issue56.txt">Brainmail issue 56</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/neildecapia.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/neildecapia.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/neildecapia.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/neildecapia.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/neildecapia.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/neildecapia.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/neildecapia.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/neildecapia.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/neildecapia.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/neildecapia.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/neildecapia.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/neildecapia.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/neildecapia.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/neildecapia.wordpress.com/141/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=neildecapia.wordpress.com&amp;blog=5088047&amp;post=141&amp;subd=neildecapia&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://neildecapia.wordpress.com/2010/02/15/from-this-months-brainmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f6f54bb0f56fd11e62c2f09d0bc303e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">neildecapia</media:title>
		</media:content>
	</item>
		<item>
		<title>Globe Tattoo on Ubuntu Jaunty 9.04</title>
		<link>http://neildecapia.wordpress.com/2009/07/05/globe-tattoo-on-ubuntu-jaunty-9-04/</link>
		<comments>http://neildecapia.wordpress.com/2009/07/05/globe-tattoo-on-ubuntu-jaunty-9-04/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 14:50:26 +0000</pubDate>
		<dc:creator>neildecapia</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://neildecapia.wordpress.com/?p=12</guid>
		<description><![CDATA[Update: Confirmed that the device Just Works in Ubuntu Karmic 9.10. No need to install udev-extras and fiddle with udev rules. Globe Tattoo mobile internet service is officially supported in Windows and MacOS X, but it should work in a Linux installation with a recent kernel. My Tattoo unit is marked Huawei E1552 HSDPA USB [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=neildecapia.wordpress.com&amp;blog=5088047&amp;post=12&amp;subd=neildecapia&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>
<em>Update</em>: Confirmed that the device Just Works in Ubuntu Karmic 9.10. No need to install <code>udev-extras</code> and fiddle with udev rules.
</p>
<hr />
<p>
<a href="http://tattoo.globe.com.ph/">Globe Tattoo</a> mobile internet service is officially supported in Windows and MacOS X, but it should work in a Linux installation with a recent kernel.
</p>
<p>
My Tattoo unit is marked <em>Huawei E1552 HSDPA USB Stick</em>. Ubuntu Jaunty 9.04 recognized it as a HUAWEI Mass Storage/MMC Storage device. According to <a href="http://www.draisberghof.de/usb_modeswitch/#intro">this web page</a>:
</p>
<blockquote><p>
Several new USB devices (especially high-speed wireless WAN stuff, there seems to be a chipset from Qualcomm offering that feature) have their MS Windows drivers onboard; when plugged in for the first time they act like a flash storage and start installing the driver from there. After that (and on every consecutive plugging) this driver switches the mode internally, the storage device vanishes (in most cases), and a new device (like an USB modem) shows up. The WWAN gear maker Option calls that feature &#8220;ZeroCD (TM)&#8221;.
</p></blockquote>
<p>
The web page then explains how to install a tool (<strong>USB_ModeSwitch</strong>) to help perform the &#8220;mode switch&#8221; in Linux. I prefer to work within the distro&#8217;s official repositories, however, and fortunately, Ubuntu provides a similar tool, <tt>modem-modeswitch</tt>, in the <strong>udev-extras</strong> package.
</p>
<p>
Here&#8217;s what I did under Ubuntu 9.04 for my Huawei E1552 Globe Tattoo device:
</p>
<ol>
<li>
<p>install the <strong>udev-extras</strong> package</p>
<pre>sudo apt-get install udev-extras</pre>
</li>
<li>
<p>create a file called <kbd>/etc/udev/rules.d/62-option-modem-modeswitch.rules</kbd>, and paste this line:</p>
<pre>ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1446", RUN+="modem-modeswitch -v 0x%s{idVendor} -p 0x%s{idProduct} -t option-zerocd"</pre>
</li>
<li>
<p>restart <strong>udev</strong></p>
<pre>sudo /etc/init.d/udev restart</pre>
</li>
</ol>
<p>
Now plug-in the Tattoo device. If you&#8217;re watching <tt>/var/log/messages</tt>, you should see the kernel detecting the device as a mass storage device, then <em>disconnecting</em> the device, then finally detecting it as a USB GSM modem. (Interestingly, <tt>lsusb</tt> reports the device to be a <em>Huawei E620 USB Modem</em>.)
</p>
<p>
If your device isn&#8217;t detected properly, try changing the values for <tt>idVendor</tt> and <tt>idProduct</tt> in <strong>Step 2</strong> above. Use <kbd>lsusb -v</kbd> to find the values for your device. Also make sure that the rules file you saved in <tt>/etc/udev/rules.d/</tt> has a higher number prefix than the similary-named rules file in <tt>/lib/udev/rules.d/</tt>.
</p>
<p>
You should then create a mobile broadband network connection via the NetworkManager applet. I changed the APN to <kbd>http.globe.com.ph</kbd>, following <a href="http://ubuntuforums.org/showpost.php?p=6819110&amp;postcount=36">this post</a>.
</p>
<p>
Sometimes when I try to connect, the modem will properly authenticate but then hang up. I just keep trying to connect until I am prompted for the password (<kbd>globe</kbd>). Connection usually succeeds after that. Still, I feel my connection is too slow. I have no way of determining if I&#8217;m connected to HSDPA or 3G or GPRS. Maybe someone out there can find out.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/neildecapia.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/neildecapia.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/neildecapia.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/neildecapia.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/neildecapia.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/neildecapia.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/neildecapia.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/neildecapia.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/neildecapia.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/neildecapia.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/neildecapia.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/neildecapia.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/neildecapia.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/neildecapia.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=neildecapia.wordpress.com&amp;blog=5088047&amp;post=12&amp;subd=neildecapia&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://neildecapia.wordpress.com/2009/07/05/globe-tattoo-on-ubuntu-jaunty-9-04/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f6f54bb0f56fd11e62c2f09d0bc303e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">neildecapia</media:title>
		</media:content>
	</item>
	</channel>
</rss>
