<?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>little brain &#187; howto</title>
	<atom:link href="http://littlebrain.org/category/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://littlebrain.org</link>
	<description>me and my brain</description>
	<lastBuildDate>Sun, 20 Jun 2010 15:31:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Banshee 1.0 Beta 2 in Ubuntu 8.04 Hardy Heron</title>
		<link>http://littlebrain.org/2008/05/28/banshee-10-beta-2-in-ubuntu-804-hardy-heron/</link>
		<comments>http://littlebrain.org/2008/05/28/banshee-10-beta-2-in-ubuntu-804-hardy-heron/#comments</comments>
		<pubDate>Wed, 28 May 2008 15:28:39 +0000</pubDate>
		<dc:creator>Aldiantoro Nugroho</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[banshee]]></category>
		<category><![CDATA[hardy heron]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[launchpad]]></category>

		<guid isPermaLink="false">http://littlebrain.org/?p=175</guid>
		<description><![CDATA[Now Banshee 1.0 Beta 2 is released. If you want to try the music player in your ubuntu hardy box, you could add sources.list entry from banshee PPA team. Open software sources (System > Administration > Software Sources). In Third-Party &#8230; <a href="http://littlebrain.org/2008/05/28/banshee-10-beta-2-in-ubuntu-804-hardy-heron/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Now <a href="http://banshee-project.org/Releases/0.99.2">Banshee 1.0 Beta 2</a> is <a href="http://gburt.blogspot.com/2008/05/banshee-10-beta-2-released.html">released</a>. If you want to try the music player in your ubuntu hardy box, you could add sources.list entry from<a href="https://edge.launchpad.net/~banshee-team/+archive"> banshee PPA team</a>.</p>
<p>Open software sources (System > Administration > Software Sources). In Third-Party Software tab, click Add and paste the code below</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;color: #ccc; font: 12px Consolas, Lucida Console, Monaco, monospace;">deb http://ppa.launchpad.net/banshee-team/ubuntu hardy main</pre></td></tr></table></div>

<p>If you need the source, you could repeat the Add proccess, and paste this</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;color: #ccc; font: 12px Consolas, Lucida Console, Monaco, monospace;">deb-src http://ppa.launchpad.net/banshee-team/ubuntu hardy main</pre></td></tr></table></div>

<p>Close the Software Sources. Wait for a few moment while the software update your package database. Then open the terminal, and type</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;color: #ccc; font: 12px Consolas, Lucida Console, Monaco, monospace;">sudo apt-get install banshee-1</pre></td></tr></table></div>

<p>Yes, use <code>banshee-1</code>. If you use <code>banshee</code>, you&#8217;ll get the old Banshee 0.13.2 from universe repository.</p>
<p>And, enjoy your new Banshee <img src='http://littlebrain.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://littlebrain.org/2008/05/28/banshee-10-beta-2-in-ubuntu-804-hardy-heron/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CodeIgniter and Ajax Using JQuery Tutorial</title>
		<link>http://littlebrain.org/2008/05/27/codeigniter-and-ajax-using-jquery-tutorial/</link>
		<comments>http://littlebrain.org/2008/05/27/codeigniter-and-ajax-using-jquery-tutorial/#comments</comments>
		<pubDate>Tue, 27 May 2008 15:28:59 +0000</pubDate>
		<dc:creator>Aldiantoro Nugroho</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[ci]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://littlebrain.org/?p=172</guid>
		<description><![CDATA[I created this tutorial because I was having a hard time finding good simple CodeIgniter + JQuery tutorial for newbie like me. The one I found, created by MR Forbes, is hard to understand and apparently isn&#8217;t working. Another one, &#8230; <a href="http://littlebrain.org/2008/05/27/codeigniter-and-ajax-using-jquery-tutorial/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I created this tutorial because I was having a hard time finding good simple <a href="http://codeigniter.com/">CodeIgniter</a> + <a href="http://jquery.com/">JQuery</a> tutorial for newbie like me. <a href="http://www.mrforbes.com/wordpress/2007/05/13/a-quick-code-igniter-and-jquery-ajax-tutorial/">The one I found</a>, created by MR Forbes, is hard to understand and apparently isn&#8217;t working. <a href="http://pr0digy.com/codeigniter/unobtrusive-ajax-with-codeigniter-and-mootools/">Another one</a>, pr0digy&#8217;s, is using Mootools for the AJAX framework.</p>
<p>So I decided to create my own CodeIgniter and JQuery tutorial based on pr0digy&#8217;s tutorial. I&#8217;m assuming you already know how to code using CodeIgniter. If you&#8217;re new to CodeIgniter, you need to find others tutorial first. <a href="http://codeigniter.com/tutorials/">The videos</a> given in CodeIgniter&#8217;s site is a good start.</p>
<p>This tutorial is about creating simple CodeIgniter + database + ajax system. User will be shown a form to post a message. Then after he/she press the submit button, the system will save the message using ajax and then show the message. You could see <a href="http://sandbox.littlebrain.org/ci/index.php/message/view">the result</a> first if you want.</p>
<h4>Database</h4>
<p>The first thing we need to do is creating a table to save the message. For this tutorial, We will use this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;color: #ccc; font: 12px Consolas, Lucida Console, Monaco, monospace;"><span class="kw1">CREATE</span> <span class="kw1">TABLE</span> <span class="kw1">IF</span> <span class="kw1">NOT</span> <span class="kw1">EXISTS</span> <span class="st0">`messages`</span> <span class="br0">&#40;</span>
  <span class="st0">`id`</span> tinyint<span class="br0">&#40;</span><span class="nu0">4</span><span class="br0">&#41;</span> <span class="kw1">NOT</span> <span class="kw1">NULL</span> <span class="kw1">AUTO_INCREMENT</span><span class="sy0">,</span>
  <span class="st0">`message`</span> varchar<span class="br0">&#40;</span><span class="nu0">256</span><span class="br0">&#41;</span> <span class="kw1">NOT</span> <span class="kw1">NULL</span><span class="sy0">,</span>
  <span class="kw1">PRIMARY</span> <span class="kw1">KEY</span>  <span class="br0">&#40;</span><span class="st0">`id`</span><span class="br0">&#41;</span>
<span class="br0">&#41;</span></pre></td></tr></table></div>

<h4>Controller</h4>
<p>Then, we need to create a controller. My controller is named <code>message</code>. You could name your controller any name you like. After that, create 2 functions/methods, <strong>view</strong> and <strong>add</strong>.</p>
<p>view is used to get the default view and list of messages from the database. The codes are:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="php" style="font-family:monospace;color: #ccc; font: 12px Consolas, Lucida Console, Monaco, monospace;"><span class="kw2">function</span> view<span class="br0">&#40;</span><span class="re0">$type</span> <span class="sy0">=</span> <span class="kw4">NULL</span><span class="br0">&#41;</span>
<span class="br0">&#123;</span>
    <span class="co1">// get data from database</span>
    <span class="re0">$data</span><span class="br0">&#91;</span><span class="st_h">'messages'</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="re0">$this</span><span class="sy0">-&gt;</span><span class="me1">Message_model</span><span class="sy0">-&gt;</span><span class="me1">get</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
    <span class="kw1">if</span> <span class="br0">&#40;</span><span class="re0">$type</span> <span class="sy0">==</span> <span class="st0">&quot;ajax&quot;</span><span class="br0">&#41;</span> <span class="co1">// load inline view for call from ajax</span>
        <span class="re0">$this</span><span class="sy0">-&gt;</span><span class="me1">load</span><span class="sy0">-&gt;</span><span class="me1">view</span><span class="br0">&#40;</span><span class="st_h">'messages_list'</span><span class="sy0">,</span> <span class="re0">$data</span><span class="br0">&#41;</span><span class="sy0">;</span>
    <span class="kw1">else</span> <span class="co1">// load the default view</span>
        <span class="re0">$this</span><span class="sy0">-&gt;</span><span class="me1">load</span><span class="sy0">-&gt;</span><span class="me1">view</span><span class="br0">&#40;</span><span class="st_h">'default'</span><span class="sy0">,</span> <span class="re0">$data</span><span class="br0">&#41;</span><span class="sy0">;</span>
<span class="br0">&#125;</span></pre></td></tr></table></div>

<p>We fetch messages from the database using <code>Message_model->get()</code> function. Then the data is passed to the view. Here, we have 2 views called. One for the default view, where we called the page using <code>message/view</code>, and the other is for calling from ajax.</p>
<p>add is a proccess used to insert the message to the database. The codes are:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="php" style="font-family:monospace;color: #ccc; font: 12px Consolas, Lucida Console, Monaco, monospace;"><span class="kw2">function</span> add<span class="br0">&#40;</span><span class="br0">&#41;</span>
<span class="br0">&#123;</span>
    <span class="co1">// if HTTP POST is sent, add the data to database</span>
    <span class="kw1">if</span><span class="br0">&#40;</span><span class="re0">$_POST</span> <span class="sy0">&amp;&amp;</span> <span class="re0">$_POST</span><span class="br0">&#91;</span><span class="st_h">'message'</span><span class="br0">&#93;</span> <span class="sy0">!=</span> <span class="kw4">NULL</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
        <span class="re0">$message</span><span class="br0">&#91;</span><span class="st_h">'message'</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="re0">$_POST</span><span class="br0">&#91;</span><span class="st_h">'message'</span><span class="br0">&#93;</span><span class="sy0">;</span>
        <span class="re0">$this</span><span class="sy0">-&gt;</span><span class="me1">Message_model</span><span class="sy0">-&gt;</span><span class="me1">add</span><span class="br0">&#40;</span><span class="re0">$message</span><span class="br0">&#41;</span><span class="sy0">;</span>
    <span class="br0">&#125;</span> <span class="kw1">else</span>
        redirect<span class="br0">&#40;</span><span class="st_h">'message/view'</span><span class="br0">&#41;</span><span class="sy0">;</span>
<span class="br0">&#125;</span></pre></td></tr></table></div>

<p>This function is accessed when we press the submit button from the form. This function will save the message using <code>Message_model->add()</code> function.</p>
<h4>Model</h4>
<p>The next thing we need to create is the model. I use <code>Message_model</code> for the name. Here we create two functions, <strong>add</strong> and <strong>get</strong>. add is a function to insert the data into the database. get is a function to retrieve data from database. I think the codes are pretty self-explainatory, but you could drop me a message if you need some explainations on the codes.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;color: #ccc; font: 12px Consolas, Lucida Console, Monaco, monospace;"><span class="kw2">function</span> add<span class="br0">&#40;</span><span class="re0">$data</span><span class="br0">&#41;</span>
<span class="br0">&#123;</span>
    <span class="re0">$this</span><span class="sy0">-&gt;</span><span class="me1">db</span><span class="sy0">-&gt;</span><span class="me1">insert</span><span class="br0">&#40;</span><span class="st_h">'messages'</span><span class="sy0">,</span> <span class="re0">$data</span><span class="br0">&#41;</span><span class="sy0">;</span>
<span class="br0">&#125;</span></pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="php" style="font-family:monospace;color: #ccc; font: 12px Consolas, Lucida Console, Monaco, monospace;"><span class="kw2">function</span> get<span class="br0">&#40;</span><span class="re0">$limit</span><span class="sy0">=</span><span class="nu0">5</span><span class="sy0">,</span> <span class="re0">$offset</span><span class="sy0">=</span><span class="nu0">0</span><span class="br0">&#41;</span>
<span class="br0">&#123;</span>
    <span class="re0">$this</span><span class="sy0">-&gt;</span><span class="me1">db</span><span class="sy0">-&gt;</span><span class="me1">orderby</span><span class="br0">&#40;</span><span class="st_h">'id'</span><span class="sy0">,</span> <span class="st_h">'DESC'</span><span class="br0">&#41;</span><span class="sy0">;</span>
    <span class="re0">$this</span><span class="sy0">-&gt;</span><span class="me1">db</span><span class="sy0">-&gt;</span><span class="me1">limit</span><span class="br0">&#40;</span><span class="re0">$limit</span><span class="sy0">,</span> <span class="re0">$offset</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
    <span class="kw1">return</span> <span class="re0">$this</span><span class="sy0">-&gt;</span><span class="me1">db</span><span class="sy0">-&gt;</span><span class="me1">get</span><span class="br0">&#40;</span><span class="st_h">'messages'</span><span class="br0">&#41;</span><span class="sy0">-&gt;</span><span class="me1">result</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
<span class="br0">&#125;</span></pre></td></tr></table></div>

<h4>View</h4>
<p>I use 2 files for view section. <code>default.php</code> and <code>message_list.php</code>. The <code>message_list</code> is used for displaying the messages taken from the database.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="php" style="font-family:monospace;color: #ccc; font: 12px Consolas, Lucida Console, Monaco, monospace;">&lt;div id=&quot;form&quot;&gt;
    &lt;input type=&quot;text&quot; id=&quot;message&quot; name=&quot;message&quot; /&gt;
    &lt;input type=&quot;submit&quot; id=&quot;submit&quot; name=&quot;submit&quot; value=&quot;submit&quot; /&gt;
&lt;/div&gt;
&lt;div id=&quot;content&quot;&gt;
<span class="kw2">&lt;?php</span> <span class="re0">$this</span><span class="sy0">-&gt;</span><span class="me1">load</span><span class="sy0">-&gt;</span><span class="me1">view</span><span class="br0">&#40;</span><span class="st_h">'messages_list'</span><span class="br0">&#41;</span> <span class="sy1">?&gt;</span>
&nbsp;
&lt;/div&gt;</pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php" style="font-family:monospace;color: #ccc; font: 12px Consolas, Lucida Console, Monaco, monospace;">&lt;ol&gt;
<span class="kw2">&lt;?php</span> <span class="kw1">foreach</span> <span class="br0">&#40;</span><span class="re0">$messages</span> <span class="kw1">as</span> <span class="re0">$message</span><span class="br0">&#41;</span><span class="sy0">:</span> <span class="sy1">?&gt;</span>
    &lt;li&gt;<span class="sy1">&lt;?=</span> <span class="re0">$message</span><span class="sy0">-&gt;</span><span class="me1">message</span> <span class="sy1">?&gt;</span>&lt;/li&gt;
<span class="kw2">&lt;?php</span> <span class="kw1">endforeach</span> <span class="sy1">?&gt;</span>
&lt;/ol&gt;</pre></td></tr></table></div>

<h4>Hey, Where&#8217;s the JQuery?</h4>
<p>Here we go. The last, and maybe the most important part of this tutorial. So, we the our controller, we had the model, and we had the views. I assume you already know how to include a jquery script to your view. The jquery codes are this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;color: #ccc; font: 12px Consolas, Lucida Console, Monaco, monospace;">$<span class="br0">&#40;</span>document<span class="br0">&#41;</span>.<span class="me1">ready</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
    $<span class="br0">&#40;</span><span class="st0">'#submit'</span><span class="br0">&#41;</span>.<span class="me1">click</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
&nbsp;
        <span class="kw2">var</span> msg <span class="sy0">=</span> $<span class="br0">&#40;</span><span class="st0">'#message'</span><span class="br0">&#41;</span>.<span class="me1">val</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
        $.<span class="me1">post</span><span class="br0">&#40;</span><span class="st0">&quot;&lt;?= site_url('message/add') ?&gt;&quot;</span><span class="sy0">,</span> <span class="br0">&#123;</span>message<span class="sy0">:</span> msg<span class="br0">&#125;</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
            $<span class="br0">&#40;</span><span class="st0">'#content'</span><span class="br0">&#41;</span>.<span class="me1">load</span><span class="br0">&#40;</span><span class="st0">&quot;&lt;?= site_url('message/view/ajax') ?&gt;&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
            $<span class="br0">&#40;</span><span class="st0">'#message'</span><span class="br0">&#41;</span>.<span class="me1">val</span><span class="br0">&#40;</span><span class="st0">''</span><span class="br0">&#41;</span><span class="sy0">;</span>
        <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span>
    <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span>
<span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span></pre></td></tr></table></div>

<p>So, when we click the submit button, the javascript will take the value of input textbox then send it to <code>message/add</code> using post method. When the action succeed, the script will call <code>message/view/ajax</code>. Note the <code>ajax</code> keyword. It will call the <code>message_list</code> view instead of the default one. Then the view will replace the content in <code>div#content</code> tag.</p>
<p>Well done. You could see <a href="http://sandbox.littlebrain.org/ci/index.php/message/view">the demo I made from the tutorial</a>.</p>
<p>You could download the whole files used in this tutorial in <a class="downloadlink" href="http://littlebrain.org/wp-content/plugins/download-monitor/download.php?id=1" title=" downloaded 3386 times" >tutorial.zip (1.98 KB)</a>.</p>
<p>Or, if you prefer to get one by one,<br />
<a class="downloadlink" href="http://littlebrain.org/wp-content/plugins/download-monitor/download.php?id=2" title=" downloaded 1014 times" >controller: message (904 bytes)</a><br />
<a class="downloadlink" href="http://littlebrain.org/wp-content/plugins/download-monitor/download.php?id=3" title=" downloaded 767 times" >model: message model (583 bytes)</a><br />
<a class="downloadlink" href="http://littlebrain.org/wp-content/plugins/download-monitor/download.php?id=4" title=" downloaded 974 times" >view: default (782 bytes)</a><br />
<a class="downloadlink" href="http://littlebrain.org/wp-content/plugins/download-monitor/download.php?id=5" title=" downloaded 854 times" >view: message_list (111 bytes)</a></p>
<p>I hope this tutorial helps newbie like me. If you have any question, just drop a comment below <img src='http://littlebrain.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://littlebrain.org/2008/05/27/codeigniter-and-ajax-using-jquery-tutorial/feed/</wfw:commentRss>
		<slash:comments>68</slash:comments>
		</item>
		<item>
		<title>How To Install Oracle XE in Ubuntu 64 Bit</title>
		<link>http://littlebrain.org/2008/05/12/how-to-install-oracle-xe-in-ubuntu-64-bit/</link>
		<comments>http://littlebrain.org/2008/05/12/how-to-install-oracle-xe-in-ubuntu-64-bit/#comments</comments>
		<pubDate>Mon, 12 May 2008 15:42:20 +0000</pubDate>
		<dc:creator>Aldiantoro Nugroho</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://littlebrain.org/?p=163</guid>
		<description><![CDATA[While you&#8217;re thinking by installing 64 bit linux you&#8217;re standing in the edge of new technology era, it sucks knowing our 64 bit system is less supported than the old 32 bit system. We have to install 32 bit flash &#8230; <a href="http://littlebrain.org/2008/05/12/how-to-install-oracle-xe-in-ubuntu-64-bit/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>While you&#8217;re thinking by installing 64 bit linux you&#8217;re standing in the edge of new technology era, it sucks knowing our 64 bit system is less supported than the old 32 bit system. We have to install 32 bit flash since Adobe didn&#8217;t have the 64 bit one. We have to install 32 bit oracle xe since Oracle also didn&#8217;t have 64 bit version.</p>
<p>And now I will try explain how to install oracle xe into the 64 bit system, ubuntu way. Of course we couldn&#8217;t follow the <a href="http://www.oracle.com/technology/tech/linux/install/xe-on-kubuntu.html">guide from oracle</a>, since apt-get will detect our system architecture and we won&#8217;t get the 32 bit packages list.</p>
<p>Before we start, make sure you have the 32 bit library installed. It&#8217;s in reposity, all you have to do is</p>
<p><code>sudo apt-get install libc6-i386</code></p>
<p>The next thing to do is download the files needed. It&#8217;s <a href="http://oss.oracle.com/debian/dists/unstable/main/binary-i386/libaio_0.3.104-1_i386.deb">libaio_0.3.104-1_i386.deb</a> and <a href="http://oss.oracle.com/debian/dists/unstable/non-free/binary-i386/oracle-xe-universal_10.2.0.1-1.1_i386.deb">oracle-xe-universal_10.2.0.1-1.1_i386.deb</a>. You could use wget for this</p>
<p><code>wget -c http://oss.oracle.com/debian/dists/unstable/main/binary-i386/libaio_0.3.104-1_i386.deb http://oss.oracle.com/debian/dists/unstable/non-free/binary-i386/oracle-xe-universal_10.2.0.1-1.1_i386.deb</code></p>
<p>After your downloads are finished, we continue to the main issue, forcing the package to be installed. You could try to install with usual dpkg -i first to make sure your system is really 64 bit.</p>
<p><code>sudo dpkg -i libaio_0.3.104-1_i386.deb</code></p>
<p>You&#8217;ll get error,</p>
<p><code>dpkg: error processing libaio_0.3.104-1_i386.deb (--install):<br />
package architecture (i386) does not match system (amd64)<br />
Errors were encountered while processing:<br />
libaio_0.3.104-1_i386.deb</code></p>
<p><em>Added guide from <strong>Venka A</strong></em></p>
<p><code>sudo apt-get install bc</code></p>
<p>To force the installation, do these</p>
<p><code>dpkg -i --force-architecture libaio_0.3.104-1_i386.deb</code><br />
<code>dpkg -i --force-architecture oracle-xe-universal_10.2.0.1-1.1_i386.deb</code></p>
<p>And after the installation is finished, you need to configure it</p>
<p><code>sudo /etc/init.d/oracle-xe configure</code></p>
<p>and edit your ~/.bashrc</p>
<p><code>ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server<br />
PATH=$PATH:$ORACLE_HOME/bin<br />
export ORACLE_HOME<br />
export ORACLE_SID=XE<br />
export PATH</code></p>
<p>And, voila, the oracle xe is ready. You could go to <a href="http://127.0.0.1:8080/apex">http://127.0.0.1:8080/apex</a> from your browser.</p>
<p>References:</p>
<ul>
<li><a href="http://dballester.blogspot.com/2007/04/oracle-xe-en-ubuntu-edgy-amd64-em64t.html">Oracle XE en Ubuntu Edgy amd64 / em64t ( x86-64 )</a></li>
<li><a href="https://help.ubuntu.com/community/Oracle10g#head-310ffbf270536395fae3c8f74c7817a60ef7c3f1">Oracle Express Edition / on Ubuntu Edgy 6.10</a></li>
<li><a href="http://www.oracle.com/technology/tech/linux/install/xe-on-kubuntu.html">Installing Oracle Database XE on Debian, Ubuntu, and Kubuntu</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://littlebrain.org/2008/05/12/how-to-install-oracle-xe-in-ubuntu-64-bit/feed/</wfw:commentRss>
		<slash:comments>54</slash:comments>
		</item>
	</channel>
</rss>
