<?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>UahRai! &#187; ubuntu</title>
	<atom:link href="http://www.gustavocaixeta.com/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gustavocaixeta.com</link>
	<description>rake -D blog</description>
	<lastBuildDate>Sun, 22 Nov 2009 02:09:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Problems to send files through Blueman Bluetoth in Ubuntu 9.10 Karmic</title>
		<link>http://www.gustavocaixeta.com/2009/11/problems-to-send-files-through-blueman-bluetoth-in-ubuntu-9-10-karmic/</link>
		<comments>http://www.gustavocaixeta.com/2009/11/problems-to-send-files-through-blueman-bluetoth-in-ubuntu-9-10-karmic/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 02:02:30 +0000</pubDate>
		<dc:creator>Gustavo Caixeta</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[bluetoth]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[informatica]]></category>
		<category><![CDATA[send]]></category>
		<category><![CDATA[xubuntu]]></category>

		<guid isPermaLink="false">http://www.gustavocaixeta.com/?p=252</guid>
		<description><![CDATA[I was having problems to send files through Blueman Bluetoth in (x) Ubuntu Karmic Koala 9.10.
To solve this problem, I only add the ppa repository of blueman, geting some latest version of it.
In karmic, the process of including this type of repository, now is easier. Only this steps to include and update:

sudo add-apt-repository ppa:blueman/ppa
sudo apt-get [...]]]></description>
			<content:encoded><![CDATA[<p>I was having problems to send files through Blueman Bluetoth in (x) Ubuntu Karmic Koala 9.10.</p>
<p>To solve this problem, I only add the ppa repository of blueman, geting some latest version of it.</p>
<p>In karmic, the process of including this type of repository, now is easier. Only this steps to include and update:</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:blueman<span style="color: #000000; font-weight: bold;">/</span>ppa
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> upgrade</pre></div></div>

<p>My bluetoth device is recognized in &#8220;lsusb&#8221; as:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">lsusb
Bus 006 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle <span style="color: #7a0874; font-weight: bold;">&#40;</span>HCI mode<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>Yes, is the cheaper usb bluetoth dongle. <img src='http://www.gustavocaixeta.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.gustavocaixeta.com/2009/11/problems-to-send-files-through-blueman-bluetoth-in-ubuntu-9-10-karmic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compilando Ruby na Mão ;)</title>
		<link>http://www.gustavocaixeta.com/2009/03/compilando-ruby-na-mao/</link>
		<comments>http://www.gustavocaixeta.com/2009/03/compilando-ruby-na-mao/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 13:52:54 +0000</pubDate>
		<dc:creator>Gustavo Caixeta</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[8.10]]></category>
		<category><![CDATA[compilacao]]></category>
		<category><![CDATA[intrepid ibex]]></category>

		<guid isPermaLink="false">http://www.gustavocaixeta.com/?p=110</guid>
		<description><![CDATA[Esse post é um tutorial de como compilar o Ruby 1.8.6 ou 1.8.7 no Ubuntu.
Minha motivação para esse post foi, um projeto meu antigo que apresentou uns problemas com o Ruby 1.8.7. Alem de já ter ouvido que o Ruby Compilado tem uma performance muito melhor.
Inicialmente, removemos todos os pacotes do gerenciador padrão do ubuntu.

sudo [...]]]></description>
			<content:encoded><![CDATA[<p>Esse post é um tutorial de como compilar o Ruby 1.8.6 ou 1.8.7 no Ubuntu.<br />
Minha motivação para esse post foi, um projeto meu antigo que apresentou uns problemas com o Ruby 1.8.7. Alem de já ter ouvido que o Ruby Compilado tem uma performance muito melhor.</p>
<p>Inicialmente, removemos todos os pacotes do gerenciador padrão do ubuntu.</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> purge ruby ruby1.8 rdoc ri irb libopenssl-ruby ruby-dev libopenssl-ruby1.8 libreadline-ruby1.8 libruby1.8 ruby1.8-dev</pre></div></div>

<p><span id="more-110"></span><br />
Tambem é importante ter os compiladores básicos.</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: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> build-essential libssl-dev libreadline5-dev zlib1g-dev</pre></div></div>

<p>Vamos instalar o checkinstall, para que possamos compilar e gerar um .deb e ter um maior controle sobre o que é instalado</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> checkinstall</pre></div></div>

<p>Agora vamos puxar o código fonte do Ruby</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp.ruby-lang.org<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>ruby-1.8.6-p287.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> xvzf ruby-1.8.6-p287.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> ruby-1.8.6-p287</pre></div></div>

<p>Agora vamos seguir para o processo de compilação</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--prefix</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: #660033;">--with-openssl-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr <span style="color: #660033;">--with-readline-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr <span style="color: #660033;">--with-zlib-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> checkinstall</pre></div></div>

<p>Para testar se tudo ficou ok:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><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>ruby <span style="color: #660033;">-ropenssl</span> <span style="color: #660033;">-rzlib</span> <span style="color: #660033;">-rreadline</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;puts :success&quot;</span></pre></div></div>

<p>Criando os links simbólicos</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;">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>bin<span style="color: #000000; font-weight: bold;">/</span>ruby <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby</pre></div></div>

<p>Um problema que eu tive, foi com a instalação anterior do RubyGem, que apresentava o seguinte erro:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> gem <span style="color: #660033;">-v</span>
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem:<span style="color: #000000;">8</span>:<span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span>require<span style="color: #ff0000;">': no such file to load -- rubygems (LoadError)
	from /usr/bin/gem:8</span></pre></div></div>

<p>Isso aconteceu, pois a instalação do Ruby e dos Gems mudaram de local.<br />
Para resolver, re-instalamos o gem na nova pasta do Ruby.</p>
<p>A pasta anterior do Ruby era:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">whereis</span> ruby
ruby: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby1.8 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby <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>ruby <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>man<span style="color: #000000; font-weight: bold;">/</span>man1<span style="color: #000000; font-weight: bold;">/</span>ruby.1.gz</pre></div></div>

<p>E agora mudou para:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">whereis</span> ruby
ruby: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby1.8 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby <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>ruby <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>ruby <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>lib<span style="color: #000000; font-weight: bold;">/</span>ruby</pre></div></div>

<p>Isso aconteceu, pois mudamos o diretório de instalação de &#8220;/usr/&#8221; para &#8220;/usr/local/&#8221; no momento do configure (configure &#8211;prefix=/usr/local)</p>
<p>Para re-instalar o gem:</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>rubyforge.org<span style="color: #000000; font-weight: bold;">/</span>frs<span style="color: #000000; font-weight: bold;">/</span>download.php<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">45905</span><span style="color: #000000; font-weight: bold;">/</span>rubygems-1.3.1.tgz
<span style="color: #c20cb9; font-weight: bold;">tar</span> xvzf rubygems-1.3.1.tgz
<span style="color: #7a0874; font-weight: bold;">cd</span> rubygems-1.3.1<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> ruby setup.rb
&nbsp;
gem1.8 <span style="color: #660033;">-v</span>
1.3.1</pre></div></div>

<p>O gem tambem mudou do lugar:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">whereis</span> gem
gem: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem1.8</pre></div></div>

<p>Para:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">whereis</span> gem
gem: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem1.8 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem <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>gem</pre></div></div>

<p>Com a mudança de diretório do gem, perdemos todas as gems que haviam instaladas.<br />
As gems anteriores, podem ser listadas com o seguinte comando:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ls</span> <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>ruby<span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>Aprendi boa parte disso nos seguintes sites:</p>
<ul>
<li><a href="http://blog.fiveruns.com/2008/3/3/compiling-ruby-rubygems-and-rails-on-ubuntu">Compiling Ruby, RubyGems and Rails on Ubuntu</a></li>
<li><a href="http://blog.ramonsoares.com/2008/01/02/ubuntu-ruby-rails-sqlite-mongrel.html">Ubuntu + Ruby + Rails + Sqlite + Mongrel</a></li>
</ul>
<p>Ps. Esse post é valido apenas para o Ruby 1.8.6 e 1.8.7</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gustavocaixeta.com/2009/03/compilando-ruby-na-mao/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Instalando Ruby e Rails no Ubuntu 8.10 &#8211; Intrepid Ibex</title>
		<link>http://www.gustavocaixeta.com/2008/11/instalando-ruby-e-rails-no-ubuntu-810-intrepid-ibex/</link>
		<comments>http://www.gustavocaixeta.com/2008/11/instalando-ruby-e-rails-no-ubuntu-810-intrepid-ibex/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 00:11:02 +0000</pubDate>
		<dc:creator>Gustavo Caixeta</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[8.10]]></category>
		<category><![CDATA[intrepid ibex]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.gustavocaixeta.com/?p=36</guid>
		<description><![CDATA[Está com pressa? Vá direto para o resumo!
Para trabalhar com Ruby e Rails é necessário instalar alguns pacotes.
Primeiro:

sudo apt-get install ruby rdoc ri irb

Descrição dos pacotes instalados via man:
ruby &#8211; Interpreted object-oriented scripting language
rdoc1.8 &#8211; Generate documentation from Ruby script files
ri1.8 &#8211; Ruby Information at your fingertips
irb1.8 &#8211; interactive ruby

ruby -v
ruby 1.8.7 &#40;2008-08-11 patchlevel 72&#41; [...]]]></description>
			<content:encoded><![CDATA[<p>Está com pressa? <a href="#resumo">Vá direto para o resumo</a>!</p>
<p>Para trabalhar com Ruby e Rails é necessário instalar alguns pacotes.</p>
<p>Primeiro:</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> ruby rdoc ri irb</pre></div></div>

<p>Descrição dos pacotes instalados via man:<br />
ruby &#8211; Interpreted object-oriented scripting language<br />
rdoc1.8 &#8211; Generate documentation from Ruby script files<br />
ri1.8 &#8211; Ruby Information at your fingertips<br />
irb1.8 &#8211; interactive ruby</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ruby <span style="color: #660033;">-v</span>
ruby 1.8.7 <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2008</span>-08-<span style="color: #000000;">11</span> patchlevel <span style="color: #000000;">72</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>i486-linux<span style="color: #7a0874; font-weight: bold;">&#93;</span>
irb <span style="color: #660033;">-v</span>
irb 0.9.5<span style="color: #7a0874; font-weight: bold;">&#40;</span>05<span style="color: #000000; font-weight: bold;">/</span>04<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">13</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>Agora vou até o site do <a href="http://rubyforge.org/projects/rubygems/">RubyGem no RubyForge</a> <a href="http://rubyforge.org/frs/?group_id=126">baixar a ultima versão</a> do mesmo.<br />
Instalar o pacote RubyGem do Ubuntu nem sempre é uma boa idéia&#8230;</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>rubyforge.org<span style="color: #000000; font-weight: bold;">/</span>frs<span style="color: #000000; font-weight: bold;">/</span>download.php<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">45905</span><span style="color: #000000; font-weight: bold;">/</span>rubygems-1.3.1.tgz
<span style="color: #c20cb9; font-weight: bold;">tar</span> xvzf rubygems-1.3.1.tgz
<span style="color: #7a0874; font-weight: bold;">cd</span> rubygems-1.3.1<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> ruby setup.rb
&nbsp;
gem1.8 <span style="color: #660033;">-v</span>
1.3.1</pre></div></div>

<p>Vamos criar um link simbólico para o comando gem</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;">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>bin<span style="color: #000000; font-weight: bold;">/</span>gem1.8  <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem</pre></div></div>

<p>Este link simbólico é para que quando você digitar o comando &#8220;gem&#8221; ele chame o &#8220;gem1.8&#8243;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-l</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> gem
gem - <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem1.8
gem1.8</pre></div></div>

<p>Beleza, ruby instalado, gem instalado, agora vamos tentar instalar o Rails.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> rails
&nbsp;
rails <span style="color: #660033;">-v</span>
Rails 2.1.2</pre></div></div>

<p>Agora vamos testar se o Rails está funcionando corretamente (se não falta alguma coisa a ser instalada).<br />
Vamos criar um projeto novo.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rails Teste
<span style="color: #7a0874; font-weight: bold;">cd</span> Teste<span style="color: #000000; font-weight: bold;">/</span>
&nbsp;
script<span style="color: #000000; font-weight: bold;">/</span>generate scaffold User nome:string idade:integer</pre></div></div>

<p><span style="color: #ff0000;">Ops</span>, o primeiro problema, esqueci de instalar o ssl do ruby.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><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>ruby<span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>rails-2.1.2<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>initializer.rb:<span style="color: #000000;">229</span>:<span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span>require_frameworks<span style="color: #ff0000;">': no such file to load -- openssl (RuntimeError)
	from /usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/initializer.rb:118:in `process'</span>
	from <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>ruby<span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>rails-2.1.2<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>initializer.rb:<span style="color: #000000;">97</span>:<span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span>send<span style="color: #ff0000;">'
	from /usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/initializer.rb:97:in `run'</span>
	from <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>gcaixeta<span style="color: #000000; font-weight: bold;">/</span>Projetos<span style="color: #000000; font-weight: bold;">/</span>Teste<span style="color: #000000; font-weight: bold;">/</span>config<span style="color: #000000; font-weight: bold;">/</span>environment.rb:<span style="color: #000000;">13</span>
	from <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>lib<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>custom_require.rb:<span style="color: #000000;">31</span>:<span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span>gem_original_require<span style="color: #ff0000;">'
	from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'</span>
	from <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>ruby<span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>rails-2.1.2<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>commands<span style="color: #000000; font-weight: bold;">/</span>generate.rb:<span style="color: #000000;">1</span>
	from <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>lib<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>custom_require.rb:<span style="color: #000000;">31</span>:<span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span>gem_original_require<span style="color: #ff0000;">'
	from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'</span>
	from script<span style="color: #000000; font-weight: bold;">/</span>generate:<span style="color: #000000;">3</span></pre></div></div>

<p>Vamos instalalo via apt-get</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> libopenssl-ruby</pre></div></div>

<p>Novamente vamos tentar gerar o scaffold de exemplo.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">script<span style="color: #000000; font-weight: bold;">/</span>generate scaffold User nome:string idade:integer</pre></div></div>

<p>Agora vamos tentar rodar o migrate.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rake db:migrate</pre></div></div>

<p><span style="color: #ff0000;">ops</span>, esqueci de instalar o sqlite3</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rake aborted<span style="color: #000000; font-weight: bold;">!</span>
no such <span style="color: #c20cb9; font-weight: bold;">file</span> to load <span style="color: #660033;">--</span> sqlite3</pre></div></div>

<p>Vamos instalar primeiro o programa sqlite3</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> sqlite3</pre></div></div>

<p>Depois o gem</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> sqlite3-ruby</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Building native extensions.  This could take a while...
ERROR:  Error installing sqlite3-ruby:
	ERROR: Failed to build gem native extension.</pre></div></div>

<p><span style="color: #ff0000;">Ops</span>, deu problema na instalação da gem. Ela precisa compilar extensões nativas em C, então tenho que ter instalado os compiladores básicos.</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> build-essential</pre></div></div>

<p>novamente vamos tentar instalar o gem</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> sqlite3-ruby</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ERROR:  Error installing sqlite3-ruby:
	ERROR: Failed to build gem native extension.
&nbsp;
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby1.8 extconf.rb <span style="color: #c20cb9; font-weight: bold;">install</span> sqlite3-ruby
extconf.rb:<span style="color: #000000;">1</span>:<span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span>require<span style="color: #ff0000;">': no such file to load -- mkmf (LoadError)
	from extconf.rb:1</span></pre></div></div>

<p><span style="color: #ff0000;">ops</span>, faltou instalar o pacote dev do ruby</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> ruby-dev</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Building native extensions.  This could take a while...
ERROR:  Error installing sqlite3-ruby:
	ERROR: Failed to build gem native extension.
&nbsp;
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby1.8 extconf.rb <span style="color: #c20cb9; font-weight: bold;">install</span> sqlite3-ruby
checking <span style="color: #000000; font-weight: bold;">for</span> fdatasync<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">in</span> -lrt... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking <span style="color: #000000; font-weight: bold;">for</span> sqlite3.h... no</pre></div></div>

<p><span style="color: #ff0000;">ops</span>, faltou instalar o pacote de desenvolvimento do sqlite3</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> libsqlite3-dev</pre></div></div>

<p>Novamente. vamos tentar instalar o gem do sqlite3</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> sqlite3-ruby</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Building native extensions.  This could take a while...
Successfully installed sqlite3-ruby-1.2.4
<span style="color: #000000;">1</span> gem installed
Installing ri documentation <span style="color: #000000; font-weight: bold;">for</span> sqlite3-ruby-1.2.4...
Installing RDoc documentation <span style="color: #000000; font-weight: bold;">for</span> sqlite3-ruby-1.2.4...</pre></div></div>

<p><span style="color: #008000;">Finalmente!</span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rake db:migrate
script<span style="color: #000000; font-weight: bold;">/</span>server</pre></div></div>

<h2><a name="resumo">Resumo</a></h2>
<h3>Instalando o Básico</h3>

<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> ruby rdoc ri irb libopenssl-ruby sqlite3 build-essential ruby-dev libsqlite3-dev</pre></div></div>

<h3>Instalando o Ruby Gem</h3>

<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>rubyforge.org<span style="color: #000000; font-weight: bold;">/</span>frs<span style="color: #000000; font-weight: bold;">/</span>download.php<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">45905</span><span style="color: #000000; font-weight: bold;">/</span>rubygems-1.3.1.tgz
<span style="color: #c20cb9; font-weight: bold;">tar</span> xvzf rubygems-1.3.1.tgz
<span style="color: #7a0874; font-weight: bold;">cd</span> rubygems-1.3.1<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> ruby setup.rb
<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>bin<span style="color: #000000; font-weight: bold;">/</span>gem1.8  <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem</pre></div></div>

<h3>Instalando as Gems</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> rails sqlite3-ruby</pre></div></div>

<h2>Instalando o mongrel</h2>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> mongrel</pre></div></div>

<h2>Instalando o suporte mysql</h2>

<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> libmysqlclient15-dev
<span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> mysql</pre></div></div>

<p>Update1:<br />
Testei o tutorial da versão Hardy(8.04), a unica diferença é que não há um pacote chamado &#8220;ruby-dev&#8221;, ao invés deste, utilize o &#8220;ruby1.8-dev&#8221;</p>
<p>Update2:</p>
<p>Para testar tudo:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rails Teste
&nbsp;
<span style="color: #7a0874; font-weight: bold;">cd</span> Teste<span style="color: #000000; font-weight: bold;">/</span>
&nbsp;
script<span style="color: #000000; font-weight: bold;">/</span>generate scaffold User nome:string idade:integer
&nbsp;
rake db:migrate
&nbsp;
script<span style="color: #000000; font-weight: bold;">/</span>server
&nbsp;
http:<span style="color: #000000; font-weight: bold;">//</span>localhost:<span style="color: #000000;">3000</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">users</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.gustavocaixeta.com/2008/11/instalando-ruby-e-rails-no-ubuntu-810-intrepid-ibex/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Vostro 1510 no Ubuntu 8.10 &#8211; Intrepid Ibex</title>
		<link>http://www.gustavocaixeta.com/2008/11/vostro-1510-no-ubuntu-810-intrepid-ibex/</link>
		<comments>http://www.gustavocaixeta.com/2008/11/vostro-1510-no-ubuntu-810-intrepid-ibex/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 22:54:11 +0000</pubDate>
		<dc:creator>Gustavo Caixeta</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[8.10]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[instalacao]]></category>
		<category><![CDATA[intrepid ibex]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[xubuntu]]></category>

		<guid isPermaLink="false">http://www.gustavocaixeta.com/?p=30</guid>
		<description><![CDATA[Após a instalação, praticamente tudo estava Ok.
- Vídeo Intel x3100 (1400&#215;900)
- Wireless Intel 4965AGN
- Som Intel  82801H (até teclas multimídia estavam funcionando, só não testei mic)
- Teclas de Brilho
Primeiro passo:
Baixar a lista de pacotes atualizada

1
sudo apt-get update

Atualizar o sistema

1
sudo apt-get upgrade

Instalar sensores para medir a temperatura do processador

1
sudo apt-get install lm-sensors

É necessário rodar o detector [...]]]></description>
			<content:encoded><![CDATA[<p>Após a instalação, praticamente tudo estava Ok.</p>
<p>- Vídeo Intel x3100 (1400&#215;900)</p>
<p>- Wireless Intel 4965AGN</p>
<p>- Som Intel  82801H (até teclas multimídia estavam funcionando, só não testei mic)</p>
<p>- Teclas de Brilho</p>
<p>Primeiro passo:</p>
<p>Baixar a lista de pacotes atualizada</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td 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> update</pre></td></tr></table></div>

<p>Atualizar o sistema</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td 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> upgrade</pre></td></tr></table></div>

<p>Instalar sensores para medir a temperatura do processador</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td 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> lm-sensors</pre></td></tr></table></div>

<p>É necessário rodar o detector de sensores, para verificar quais sensores sua máquina possui. Basicamente a instalação é &#8220;Yes&#8221;, &#8220;Yes&#8221; e na ultima pergunta, ele pergunta se deseja inserir o &#8220;coretemp&#8221; no /etc/modules</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> sensors-detect</pre></td></tr></table></div>

<p>Depois de detectar os sensores e reiniciar a primeira vez, o comando sensors deve retornar a temperatura do CPU</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">sensors</pre></td></tr></table></div>

<p>No xubuntu (xfce), eu instalo um programa para adicionar ao painel para acompanhar a temperatura.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td 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> xfce4-sensors-plugin</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.gustavocaixeta.com/2008/11/vostro-1510-no-ubuntu-810-intrepid-ibex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vostro 1510 no (x) Ubuntu Hardy 8.04</title>
		<link>http://www.gustavocaixeta.com/2008/10/vostro-1510-no-x-ubuntu-hardy-80/</link>
		<comments>http://www.gustavocaixeta.com/2008/10/vostro-1510-no-x-ubuntu-hardy-80/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 00:10:49 +0000</pubDate>
		<dc:creator>Gustavo Caixeta</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[1510]]></category>
		<category><![CDATA[8.04]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[hardy]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vostro]]></category>
		<category><![CDATA[xubuntu]]></category>

		<guid isPermaLink="false">http://www.gustavocaixeta.com/?p=16</guid>
		<description><![CDATA[Finalmente estou com meu note  
A primeira coisa a fazer e arancar o InVista  
As configurações são as seguintes:

Core 2 Duo T7250 2GHZ 2MB Cache
2 GB de Ram
HD 250GB 7200
Video Intel X3100
Wireless 4965AGN

Ele reconheceu tudo tranquilamente. Só tive um pouco de trabalho para verificar temperatura de CPU (via lm-sensors) e ainda não consegui [...]]]></description>
			<content:encoded><![CDATA[<p>Finalmente estou com meu note <img src='http://www.gustavocaixeta.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>A primeira coisa a fazer e arancar o InVista <img src='http://www.gustavocaixeta.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>As configurações são as seguintes:</p>
<ul>
<li>Core 2 Duo T7250 2GHZ 2MB Cache</li>
<li>2 GB de Ram</li>
<li>HD 250GB 7200</li>
<li>Video Intel X3100</li>
<li>Wireless 4965AGN</li>
</ul>
<p>Ele reconheceu tudo tranquilamente. Só tive um pouco de trabalho para verificar temperatura de CPU (via lm-sensors) e ainda não consegui configurar a tecla de função para controlar o volume.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gustavocaixeta.com/2008/10/vostro-1510-no-x-ubuntu-hardy-80/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
