<?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>Frank Vielma&#039;s Blog</title> <atom:link href="http://fv.cruxaustralis.net/feed/" rel="self" type="application/rss+xml" /><link>http://fv.cruxaustralis.net</link> <description>Programming, science, engineering, and more...</description> <lastBuildDate>Sun, 29 Jan 2012 22:24:34 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=</generator> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>Rails 3.1.0</title><link>http://fv.cruxaustralis.net/languages/ruby/rails-3-1-0/</link> <comments>http://fv.cruxaustralis.net/languages/ruby/rails-3-1-0/#comments</comments> <pubDate>Wed, 31 Aug 2011 14:15:09 +0000</pubDate> <dc:creator>Frank Vielma</dc:creator> <category><![CDATA[ruby]]></category> <category><![CDATA[ruby on rails]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[rails]]></category><guid
isPermaLink="false">http://fv.cruxaustralis.net/?p=359</guid> <description><![CDATA[Recently, the rails 3.1.0 is now a release version. It is recommendable to use rvm (you need to install rvm) creating a new gemset so, we can isolate the install from the rest of our environments. We need the follow steps: Creating a gemset: rvm --create 1.9.2-p180@rails31 Installing the last rails version (3.1.0) : gem [...]]]></description> <content:encoded><![CDATA[<p>Recently, the rails 3.1.0 is now a release version.</p><p>It is recommendable to use rvm (you need to install <a
href="http://fv.cruxaustralis.net/languages/ruby/installing-rvm-on-ubuntu-maverick/" title="Installing rvm ">rvm</a>) creating a new gemset so, we can isolate the install from the rest of our environments. We need the follow steps:</p><ul><li>Creating a gemset:<div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">rvm <span style="color: #660033;">--create</span> 1.9.2-p180<span style="color: #000000; font-weight: bold;">@</span>rails31</pre></div></div></li><li>Installing the last rails version (3.1.0) :</li><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">gem <span style="color: #c20cb9; font-weight: bold;">install</span> rails</pre></div></div><li>To generate a new project:</li><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">rails new project31</pre></div></div><li> Adding the following lines to the Gemfile file</li><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">gem <span style="color: #ff0000;">'execjs'</span>
gem <span style="color: #ff0000;">'therubyracer'</span></pre></div></div><p> <a
href="https://github.com/sstephenson/execjs">ExecJS</a>. Run JavaScript code from Ruby.<br
/> <a
href="https://github.com/cowboyd/therubyracer">therubyracer</a>.  Embed the V8 Javascript Interpreter into Ruby.</p><li>Running bundle:</li><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">bundle <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div><li>Starting the new rails application:</li><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">rails s</pre></div></div></ul><p>After it, we would see the following lines:</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">=<span style="color: #000000; font-weight: bold;">&gt;</span> Booting WEBrick
=<span style="color: #000000; font-weight: bold;">&gt;</span> Rails 3.1.0 application starting <span style="color: #000000; font-weight: bold;">in</span> development on http:<span style="color: #000000; font-weight: bold;">//</span>0.0.0.0:<span style="color: #000000;">3000</span>
=<span style="color: #000000; font-weight: bold;">&gt;</span> Call with <span style="color: #660033;">-d</span> to detach
=<span style="color: #000000; font-weight: bold;">&gt;</span> Ctrl-C to shutdown server
<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2011</span>-08-<span style="color: #000000;">31</span> 09:<span style="color: #000000;">39</span>:<span style="color: #000000;">29</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> INFO  WEBrick 1.3.1
<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2011</span>-08-<span style="color: #000000;">31</span> 09:<span style="color: #000000;">39</span>:<span style="color: #000000;">29</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> INFO  ruby 1.9.2 <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2011</span>-02-<span style="color: #000000;">18</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>i686-linux<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2011</span>-08-<span style="color: #000000;">31</span> 09:<span style="color: #000000;">39</span>:<span style="color: #000000;">29</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> INFO  WEBrick::HTTPServer<span style="color: #666666; font-style: italic;">#start: pid=11130 port=3000</span></pre></div></div><p><a
href="http://guides.rubyonrails.org/3_1_release_notes.html" title="3.1 realease notes">Release notes</a><br
/> <a
href="https://github.com/rails/rails/tree/v3.1.0">Rails 3.1 sources</a></p> ]]></content:encoded> <wfw:commentRss>http://fv.cruxaustralis.net/languages/ruby/rails-3-1-0/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Installing MongoDB and php driver in Ubuntu 10.10</title><link>http://fv.cruxaustralis.net/languages/php/installing-mongodb-and-the-php-driver-in-ubuntu-10-10/</link> <comments>http://fv.cruxaustralis.net/languages/php/installing-mongodb-and-the-php-driver-in-ubuntu-10-10/#comments</comments> <pubDate>Tue, 10 May 2011 18:48:54 +0000</pubDate> <dc:creator>Frank Vielma</dc:creator> <category><![CDATA[db]]></category> <category><![CDATA[mongodb]]></category> <category><![CDATA[php]]></category><guid
isPermaLink="false">http://fv.cruxaustralis.net/?p=330</guid> <description><![CDATA[MongoDB is a NoSQL (&#8220;not only sql&#8221;), a non-relational, distributed, open-source, horizontal scalable and document-oriented database written in the C++. It doesn&#8217;t have transactions, ACID compliance, joins, foreign keys, or many of the other features belonging to relational database management system (RDBMS). The database is document-oriented so it manages collections of JSON-like documents. One of [...]]]></description> <content:encoded><![CDATA[<p>MongoDB is a NoSQL (&#8220;not only sql&#8221;), a non-relational, distributed, open-source, horizontal scalable and document-oriented database written in the C++. It doesn&#8217;t have transactions, ACID compliance, joins, foreign keys, or many of the other features belonging to relational database management system (RDBMS). The database is document-oriented so it manages collections of JSON-like documents.</p><p>One of the most important feature is than MongoDB scaling very well.</p><p><strong>Installation</strong>.</p><ul><li><strong>Step 1.</strong> Adding the ubuntu repository:<div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-key</span> adv <span style="color: #660033;">--keyserver</span> keyserver.ubuntu.com <span style="color: #660033;">--recv</span> 7F0CEB10</pre></div></div><p>add at the end of the /etc/apt/sources.list file:</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">deb http:<span style="color: #000000; font-weight: bold;">//</span>downloads-distro.mongodb.org<span style="color: #000000; font-weight: bold;">/</span>repo<span style="color: #000000; font-weight: bold;">/</span>ubuntu-upstart dist 10gen</pre></div></div></li><li><strong>Step 2.</strong> Installing mongodb<div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> update <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> mongodb-10gen</pre></div></div></li><li><strong>Step 3.</strong> Verifying installation:<div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">mongo <span style="color: #660033;">--version</span></pre></div></div><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">MongoDB shell version: 1.8.1</pre></div></div></li><li><strong>Step 3.</strong> Now,  we will installing the PHP driver:<div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> php5-dev php5-cli php-pear <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> pecl <span style="color: #c20cb9; font-weight: bold;">install</span> mongo</pre></div></div><p>add the dynamic library mongo.so at the end of the php.ini (/etc/php5/apache2/php.ini) file:</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">extension</span>=mongo.so</pre></div></div></li><li><strong>Step 4.</strong> Restart apache and verify if all is ok running the phpinfo() function:<div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 restart</pre></div></div></li></ul><p><img
src="http://fv.cruxaustralis.net/wp-content/uploads/2011/05/mongodb-300x182.jpg" alt="mongodb" title="mongodb" width="300" height="182" class="alignnone size-medium wp-image-342" /></p><p><a
href="http://www.mongodb.org/display/DOCS/Introduction">More info</a></p> ]]></content:encoded> <wfw:commentRss>http://fv.cruxaustralis.net/languages/php/installing-mongodb-and-the-php-driver-in-ubuntu-10-10/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to convert DBF to CSV (ubuntu, debian)</title><link>http://fv.cruxaustralis.net/linux/how-to-convert-dbf-to-csv-ubuntu-debian/</link> <comments>http://fv.cruxaustralis.net/linux/how-to-convert-dbf-to-csv-ubuntu-debian/#comments</comments> <pubDate>Tue, 03 May 2011 15:23:28 +0000</pubDate> <dc:creator>Frank Vielma</dc:creator> <category><![CDATA[debian]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[ubuntu]]></category><guid
isPermaLink="false">http://fv.cruxaustralis.net/?p=325</guid> <description><![CDATA[There is a perl tool (dbf_dump) that allows to convert dbf files (dBase) to csv (comma-separated values). To install it, we must to install libdbd-xbase-perl: sudo aptitude install libdbd-xbase-perl Example: dbf_dump --fs=&#34;,&#34; file.dbf &#62; file.csv]]></description> <content:encoded><![CDATA[<p>There is a perl tool (dbf_dump) that allows to convert dbf files (dBase) to csv (comma-separated values). To install it, we must to install libdbd-xbase-perl:</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libdbd-xbase-perl</pre></div></div><p><strong>Example</strong>:</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">dbf_dump <span style="color: #660033;">--fs</span>=<span style="color: #ff0000;">&quot;,&quot;</span>  file.dbf <span style="color: #000000; font-weight: bold;">&gt;</span> file.csv</pre></div></div>]]></content:encoded> <wfw:commentRss>http://fv.cruxaustralis.net/linux/how-to-convert-dbf-to-csv-ubuntu-debian/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Installing RVM on Ubuntu maverick</title><link>http://fv.cruxaustralis.net/languages/ruby/installing-rvm-on-ubuntu-maverick/</link> <comments>http://fv.cruxaustralis.net/languages/ruby/installing-rvm-on-ubuntu-maverick/#comments</comments> <pubDate>Fri, 29 Apr 2011 16:14:06 +0000</pubDate> <dc:creator>Frank Vielma</dc:creator> <category><![CDATA[linux]]></category> <category><![CDATA[ruby]]></category> <category><![CDATA[ruby on rails]]></category> <category><![CDATA[ubuntu]]></category><guid
isPermaLink="false">http://fv.cruxaustralis.net/?p=297</guid> <description><![CDATA[In first place, what is RVM ? RVM is the Ruby Version Manager. It makes installing and managing several different versions and implementations of Ruby on one computer. Installation. There are two ways to install and configure RVM. As a standard user As root In this post we will do the first one. In first [...]]]></description> <content:encoded><![CDATA[<p>In first place, what is RVM ?<br
/> <strong>RVM</strong> is the Ruby Version Manager. It makes installing and managing several different versions and implementations of Ruby on one computer.</p><p><strong>Installation</strong>.<br
/> There are two ways to install and configure RVM.</p><ul><li>As a standard user</li><li>As root</li></ul><p>In this post we will do the first one.</p><p>In first time, you will need to install <strong>zlib</strong> and others.</p><p>Debian/Ubuntu systems:</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> zlib1g-dev zlib1g libssl-dev libreadline5-dev libxml2-dev libsqlite3-dev</pre></div></div><ul><li><strong>Step 1.</strong> Download and install rvm from sources. It will install in <strong>$HOME/.rvm</strong>. (You must have installed curl and git)<br
/> bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)</li></li><li><strong>Step 2.</strong> Now, we will complete the install by loading RVM in new shells adding the following line in a $HOME/.bashrc file.<div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-s</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$HOME</span>/.rvm/scripts/rvm&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">source</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$HOME</span>/.rvm/scripts/rvm&quot;</span></pre></div></div></li><li><strong>Step 3.</strong>Open a new shell or run:<div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">source</span> <span style="color: #007800;">$HOME</span><span style="color: #000000; font-weight: bold;">/</span>.bashrc</pre></div></div></li><li><strong>Step 4.</strong>Test if the RVM&#8217;s installation is working.<div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">type</span> rvm <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">head</span> <span style="color: #660033;">-1</span></pre></div></div><p>and you should get:</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">rvm is a <span style="color: #000000; font-weight: bold;">function</span></pre></div></div></li></ul><p>Now, assuming that all is working, we could install ruby 1.9.2 as following:</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">rvm <span style="color: #c20cb9; font-weight: bold;">install</span> 1.9.2</pre></div></div><p>We can use ruby 1.9.2 in our system running only:</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">rvm use 1.9.2</pre></div></div><p>so, we can verify what ruby&#8217;s version is running right now:</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">which</span> ruby</pre></div></div><p>you get:</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">$HOME</span><span style="color: #000000; font-weight: bold;">/</span>.rvm<span style="color: #000000; font-weight: bold;">/</span>rubies<span style="color: #000000; font-weight: bold;">/</span>ruby-1.9.2-p180<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby</pre></div></div><p>But, if we want to return to the initial conditions ? No problem, you need only to run:</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">rvm system</pre></div></div><p>it will return to the ruby&#8217;s system (ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux])</p> ]]></content:encoded> <wfw:commentRss>http://fv.cruxaustralis.net/languages/ruby/installing-rvm-on-ubuntu-maverick/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Installing Firefox 4 on Debian 6 (Squeeze), Ubuntu 10.04 and 10.10</title><link>http://fv.cruxaustralis.net/linux/installing-firefox-4-on-debian-6-squeeze-ubuntu-10-04-and-10-10/</link> <comments>http://fv.cruxaustralis.net/linux/installing-firefox-4-on-debian-6-squeeze-ubuntu-10-04-and-10-10/#comments</comments> <pubDate>Thu, 24 Mar 2011 15:05:25 +0000</pubDate> <dc:creator>Frank Vielma</dc:creator> <category><![CDATA[debian]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[ubuntu]]></category> <category><![CDATA[firefox 4]]></category><guid
isPermaLink="false">http://fv.cruxaustralis.net/?p=282</guid> <description><![CDATA[Firefox 4 is a very important release from Mozilla guys. This version include improvements in performance, standards support, and the user interface. The simple way to install Firefox 4 on Ubuntu is: sudo add-apt-repository ppa:mozillateam/firefox-stable sudo aptitude update &#38;&#38; sudo apt-get upgrade On Debian: wget http://releases.mozilla.org/pub/mozilla.org/firefox/releases/4.0/linux-i686/en-US/firefox-4.0.tar.bz2 sudo tar -xvjf firefox-4.0.tar.bz2 -C /usr/local sudo ln -s [...]]]></description> <content:encoded><![CDATA[<p>Firefox 4 is a very important release from Mozilla guys. This version include improvements in performance, standards support, and the user interface.</p><p><a
href="http://www.mozilla.com/firefox" target="_blank"><img
src="http://fv.cruxaustralis.net/wp-content/uploads/2011/03/firefox4.jpg" alt="Firefox 4" title="Firefox 4" width="290" height="191" class="aligncenter size-full wp-image-292" /></a></p><p>The simple way to install Firefox 4 on <strong>Ubuntu</strong> is:</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> add-apt-repository ppa:mozillateam<span style="color: #000000; font-weight: bold;">/</span>firefox-stable
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> update <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> upgrade</pre></div></div><p>On <strong>Debian</strong>:</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>releases.mozilla.org<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>mozilla.org<span style="color: #000000; font-weight: bold;">/</span>firefox<span style="color: #000000; font-weight: bold;">/</span>releases<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">4.0</span><span style="color: #000000; font-weight: bold;">/</span>linux-i686<span style="color: #000000; font-weight: bold;">/</span>en-US<span style="color: #000000; font-weight: bold;">/</span>firefox-<span style="color: #000000;">4.0</span>.tar.bz2
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvjf</span> firefox-<span style="color: #000000;">4.0</span>.tar.bz2 <span style="color: #660033;">-C</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>firefox<span style="color: #000000; font-weight: bold;">/</span>firefox <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>firefox4</pre></div></div><p>The steps to add firefox4 to the gnome panel are: Right button over panel -> Add to Panel&#8230; -> Custom Application Luncher -> <u>A</u>dd -> Fill fields -> Choose an Icon (path to firefox4&#8242;s icons /usr/local/firefox/icons/).</p><p><img
src="http://fv.cruxaustralis.net/wp-content/uploads/2011/03/add_panel_debian_firefox4-294x300.png" alt="add_panel_debian_firefox4" title="add_panel_debian_firefox4" width="294" height="300" class="alignnone size-medium wp-image-284" /></p> ]]></content:encoded> <wfw:commentRss>http://fv.cruxaustralis.net/linux/installing-firefox-4-on-debian-6-squeeze-ubuntu-10-04-and-10-10/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Installing Geonode in a debian lenny platform</title><link>http://fv.cruxaustralis.net/linux/installing-geonode-in-a-debian-lenny/</link> <comments>http://fv.cruxaustralis.net/linux/installing-geonode-in-a-debian-lenny/#comments</comments> <pubDate>Thu, 17 Mar 2011 10:30:15 +0000</pubDate> <dc:creator>Frank Vielma</dc:creator> <category><![CDATA[debian]]></category> <category><![CDATA[gis]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[geonode]]></category><guid
isPermaLink="false">http://fv.cruxaustralis.net/?p=202</guid> <description><![CDATA[GeoNode is an open source platform that facilitates the creation, sharing, and collaborative use of geospatial data. Step 1. In first time, you need to install and purge some packages: sudo aptitude install git-arch subversion libgeos-dev gdal-bin g++ make ant zlib-bin zlib1g-dev libreadline5-dev tcl8.5-dev tk8.5-dev libssl-dev libsqlite3-dev libbz2-dev libgdbm-dev &#160; sudo aptitude purge gij-4.3 bsh [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://geonode.org/" targer="_blank">GeoNode</a> is an open source platform that facilitates the creation, sharing, and collaborative use of geospatial data.</p><ul><li>Step 1. In first time, you need to install and purge some packages:<div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> git-arch subversion libgeos-dev gdal-bin <span style="color: #c20cb9; font-weight: bold;">g++</span> <span style="color: #c20cb9; font-weight: bold;">make</span> ant zlib-bin zlib1g-dev libreadline5-dev tcl8.5-dev tk8.5-dev libssl-dev libsqlite3-dev libbz2-dev libgdbm-dev
&nbsp;
 <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> purge gij-<span style="color: #000000;">4.3</span> bsh bsh-gcj java-gcj-compat java-gcj-compat-headless libbcel-java libhsqldb-java libhsqldb-java-gcj libjaxp1.3-java libjaxp1.3-java-gcj libjline-java liblog4j1.2-java libmx4j-java libregexp-java libservlet2.4-java libxalan2-java libxalan2-java-gcj libxerces2-java libxerces2-java-gcj openoffice.org openoffice.org-base openoffice.org-evolution openoffice.org-filter-mobiledev openoffice.org-gcj openoffice.org-java-common openoffice.org-officebean openoffice.org-report-builder-bin openoffice.org-writer2latex</pre></div></div></li><li>Step 2. Install sun-java. You need modfy <strong>/etc/apt/sources.list</strong> and add non-free to the Debian Lenny repositories:<div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">deb http:<span style="color: #000000; font-weight: bold;">//</span>volatile.debian.org<span style="color: #000000; font-weight: bold;">/</span>debian-volatile lenny<span style="color: #000000; font-weight: bold;">/</span>volatile main
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>volatile.debian.org<span style="color: #000000; font-weight: bold;">/</span>debian-volatile lenny<span style="color: #000000; font-weight: bold;">/</span>volatile main
&nbsp;
deb http:<span style="color: #000000; font-weight: bold;">//</span>mirrors.kernel.org<span style="color: #000000; font-weight: bold;">/</span>debian<span style="color: #000000; font-weight: bold;">/</span> lenny main non-free
deb http:<span style="color: #000000; font-weight: bold;">//</span>security.debian.org<span style="color: #000000; font-weight: bold;">/</span> lenny<span style="color: #000000; font-weight: bold;">/</span>updates main non-free</pre></div></div><p>and run:</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> update
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> sun-java6-jdk</pre></div></div></li><li>Step 3. Download, compile and install python 2.6.<div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>python.org<span style="color: #000000; font-weight: bold;">/</span>ftp<span style="color: #000000; font-weight: bold;">/</span>python<span style="color: #000000; font-weight: bold;">/</span>2.6.6<span style="color: #000000; font-weight: bold;">/</span>Python-2.6.6.tar.bz2
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvjf</span> Python-2.6.6.tar.bz2
<span style="color: #7a0874; font-weight: bold;">cd</span> Python-2.6.6
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--with-threads</span> <span style="color: #660033;">--enable-shared</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #660033;">-j</span> <span style="color: #000000;">2</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span>libpython2.6.so.1.0 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span>libpython2.6.so <span style="color: #000000; font-weight: bold;">/</span>usr</pre></div></div><p>To run <strong>python -V</strong> and you would get:<br
/> Python 2.6.6</li><li>Step 4. Download, compile and install maven<div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.carfab.com<span style="color: #000000; font-weight: bold;">/</span>apachesoftware<span style="color: #000000; font-weight: bold;">//</span>maven<span style="color: #000000; font-weight: bold;">/</span>binaries<span style="color: #000000; font-weight: bold;">/</span>apache-maven-2.2.1-bin.tar.gz
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvzf</span> apache-maven-2.2.1-bin.tar.gz <span style="color: #660033;">-C</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span></pre></div></div><p>Add at the end of <strong>~/.bashrc file</strong></p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PATH</span>=<span style="color: #007800;">$PATH</span>:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apache-maven-2.2.1<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">JAVA_HOME</span>=<span style="color: #000000; font-weight: bold;">/</span>usr</pre></div></div><p>and run:</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">source</span> ~<span style="color: #000000; font-weight: bold;">/</span>.bashrc</pre></div></div><p>so, you would to get when run <strong>mvn -v</strong>:</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">Apache Maven 2.2.1 <span style="color: #7a0874; font-weight: bold;">&#40;</span>r801777; <span style="color: #000000;">2009</span>-08-06 <span style="color: #000000;">14</span>:<span style="color: #000000;">46</span>:01-0430<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Java version: 1.6.0_22
Java home: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>jvm<span style="color: #000000; font-weight: bold;">/</span>java-<span style="color: #000000;">6</span>-sun-1.6.0.22<span style="color: #000000; font-weight: bold;">/</span>jre
Default locale: en_US, platform encoding: UTF-<span style="color: #000000;">8</span>
OS name: <span style="color: #ff0000;">&quot;linux&quot;</span> version: <span style="color: #ff0000;">&quot;2.6.26-2-686&quot;</span> <span style="color: #c20cb9; font-weight: bold;">arch</span>: <span style="color: #ff0000;">&quot;i386&quot;</span> Family: <span style="color: #ff0000;">&quot;unix&quot;</span></pre></div></div></li><li>Step 5. Installing geonode. The first thing is clone the repository:<div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">git</span> clone <span style="color: #c20cb9; font-weight: bold;">git</span>:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>GeoNode<span style="color: #000000; font-weight: bold;">/</span>geonode.git geonode</pre></div></div><p>then,</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> geonode
<span style="color: #c20cb9; font-weight: bold;">git</span> submodule update <span style="color: #660033;">--init</span>
python bootstrap.py <span style="color: #660033;">--no-site-packages</span>
<span style="color: #7a0874; font-weight: bold;">source</span> bin<span style="color: #000000; font-weight: bold;">/</span>activate
paver build
django-admin.py createsuperuser <span style="color: #660033;">--settings</span>=geonode.settings
paver host</pre></div></div></li></ul><p>Development GeoNode should be running at http://localhost:8000/</p> ]]></content:encoded> <wfw:commentRss>http://fv.cruxaustralis.net/linux/installing-geonode-in-a-debian-lenny/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Installing a VM (Virtual machine) with VirtualBox</title><link>http://fv.cruxaustralis.net/virtualbox/installing-a-vm-virtual-machine-with-virtualbox/</link> <comments>http://fv.cruxaustralis.net/virtualbox/installing-a-vm-virtual-machine-with-virtualbox/#comments</comments> <pubDate>Wed, 16 Mar 2011 20:18:43 +0000</pubDate> <dc:creator>Frank Vielma</dc:creator> <category><![CDATA[linux]]></category> <category><![CDATA[virtualbox]]></category> <category><![CDATA[debian]]></category> <category><![CDATA[ubuntu]]></category> <category><![CDATA[virtualization]]></category><guid
isPermaLink="false">http://fv.cruxaustralis.net/?p=164</guid> <description><![CDATA[VirtualBox is a cross-platform virtualization application. In this post, we will use it in a Ubuntu (maverick) platform (host OS) and we will install Debian as a guest virtual OS in a following post. At first, you must to download it from: http://www.virtualbox.org/wiki/Linux_Downloads Step 1. As an user with the necessary privileges to install packages [...]]]></description> <content:encoded><![CDATA[<p>VirtualBox is a cross-platform virtualization application. In this post, we will use it in a Ubuntu (maverick) platform (host OS) and we will install Debian as a guest virtual OS in a following post. At first, you must to download it from:</p><p><a
href="http://www.virtualbox.org/wiki/Linux_Downloads">http://www.virtualbox.org/wiki/Linux_Downloads</a></p><ul><li>Step 1. As an user with the necessary privileges to install packages (root or sudo user), run:<div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> virtualbox-<span style="color: #000000;">4.0</span>_4.0.4-<span style="color: #000000;">70112</span>~Ubuntu~maverick_i386.deb</pre></div></div><p>VirtualBox will be installed in the Applications -&gt; System Tools -&gt; Oracle VM VirtualBox.</li><li>Step 2. Now, you need to run the Oracle VM VirtualBox and to create a new virtual machine (VM) doing click in the New button or Ctrl-N<br
/> <a
href="#"><img
class="size-full wp-image-176" title="VirtualBox's buttons" src="http://fv.cruxaustralis.net/wp-content/uploads/2011/03/1.jpeg" alt="VirtualBox's buttons" width="225" height="83" /></a></li><li>Step 3. Click in the Next button:<br
/> <img
class="alignnone size-medium wp-image-180" title="Wizard window" src="http://fv.cruxaustralis.net/wp-content/uploads/2011/03/2-300x197.jpg" alt="Wizard window" width="300" height="197" /></li><li>Step 4. To choice a VM name and OS type. We choice: Name: debian_test, Operating System: Linux, Version: Debian.<br
/> <img
class="alignnone size-medium wp-image-182" title="VM Name and OS Type" src="http://fv.cruxaustralis.net/wp-content/uploads/2011/03/3-300x197.jpg" alt="VM Name and OS Type" width="300" height="197" /></li><li>Step 5. To select the amount of RAM. We choice 400 MB.<br
/> <img
class="alignnone size-medium wp-image-185" title="Memory" src="http://fv.cruxaustralis.net/wp-content/uploads/2011/03/4-300x197.jpg" alt="Memory" width="300" height="197" /></li><li>Step 6. Virtual Hard Disk. Here we will use a new virtual hard disk with the recommended size, 8GB.<br
/> <img
class="alignnone size-medium wp-image-187" title="Virtual Hard Disk" src="http://fv.cruxaustralis.net/wp-content/uploads/2011/03/5-300x197.jpg" alt="Virtual Hard Disk" width="300" height="197" /></li><li>Step 7. After it, VirtualBox show you a Wizard to create a new disk virtual. Click Next and select the Hard Disk Store Type. By default the storage type is a dynamically expanding storage.<br
/> <img
class="alignnone size-medium wp-image-189" title="Create New Virtual Disk" src="http://fv.cruxaustralis.net/wp-content/uploads/2011/03/6-300x192.jpg" alt="Create New Virtual Disk" width="300" height="192" /><img
class="alignnone size-medium wp-image-190" title="Storage Type" src="http://fv.cruxaustralis.net/wp-content/uploads/2011/03/7-300x192.jpg" alt="Storage Type" width="300" height="192" /></li><li>Step 8. The following step is to select the location where we want to save our virtual disk and select the size of it.<br
/> <img
class="alignnone size-medium wp-image-193" title="virtual disk location and size" src="http://fv.cruxaustralis.net/wp-content/uploads/2011/03/8-300x192.jpg" alt="virtual disk location and size" width="300" height="192" /></li><li>Step 9. At the end, the wizard show you the summary. Now, we can see in the VirtualBox Manager out VM.<br
/> <img
class="alignnone size-medium wp-image-195" title="summary" src="http://fv.cruxaustralis.net/wp-content/uploads/2011/03/9-300x192.jpg" alt="summary" width="300" height="192" /> &gt; <img
class="alignnone size-medium wp-image-197" title="VirtualBox Manager" src="http://fv.cruxaustralis.net/wp-content/uploads/2011/03/10-300x188.jpg" alt="VirtualBox Manager" width="300" height="188" /></li></ul> ]]></content:encoded> <wfw:commentRss>http://fv.cruxaustralis.net/virtualbox/installing-a-vm-virtual-machine-with-virtualbox/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss><div
style="width:600px; position:relative;left:50%;margin-left:-300px; font-size:12px; text-align:center"><a
href="http://www.kvcwebsitehosting.com">best web hosting</a></div>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 14/97 queries in 0.564 seconds using disk: basic
Object Caching 984/1150 objects using disk: basic

Served from: fv.cruxaustralis.net @ 2012-05-20 18:59:59 -->
