<?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"
	>

<channel>
	<title>UahRai!</title>
	<atom:link href="http://www.gustavocaixeta.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gustavocaixeta.com</link>
	<description>rake -D blog</description>
	<pubDate>Mon, 17 Nov 2008 00:07:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>Instalando Ruby e Rails no Ubuntu 8.10 - 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>gcaixeta</dc:creator>
		
		<category><![CDATA[Uncategorized]]></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 - Interpreted object-oriented scripting language
rdoc1.8 - Generate documentation from Ruby script files
ri1.8 - Ruby Information at your fingertips
irb1.8 - 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 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 - Interpreted object-oriented scripting language<br />
rdoc1.8 - Generate documentation from Ruby script files<br />
ri1.8 - Ruby Information at your fingertips<br />
irb1.8 - interactive ruby</p>

<div class="wp_syntax"><div class="code"><pre class="bash 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 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 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 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: #c20cb9; font-weight: bold;">grep</span> gem
gem -<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <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 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 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>Ops, o primeiro problema, esqueci de instalar o ssl do ruby.</p>

<div class="wp_syntax"><div class="code"><pre class="bash 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><span style="color: #7a0874; font-weight: bold;">local</span><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><span style="color: #7a0874; font-weight: bold;">local</span><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 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 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 bash" style="font-family:monospace;">rake db:migrate</pre></div></div>

<p>ops, esqueci de instalar o sqlite3</p>

<div class="wp_syntax"><div class="code"><pre class="bash 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 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 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 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>Ops, 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 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 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 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>ops, faltou instalar o pacote dev do ruby</p>

<div class="wp_syntax"><div class="code"><pre class="bash 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 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>ops, faltou instalar o pacote de desenvolvimento do sqlite3</p>

<div class="wp_syntax"><div class="code"><pre class="bash 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 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 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>Finalmente!</p>

<div class="wp_syntax"><div class="code"><pre class="bash 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 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 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 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 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 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>

]]></content:encoded>
			<wfw:commentRss>http://www.gustavocaixeta.com/2008/11/instalando-ruby-e-rails-no-ubuntu-810-intrepid-ibex/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Vostro 1510 no Ubuntu 8.10 - 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>gcaixeta</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 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 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 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 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 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 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>
		</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>gcaixeta</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>
		</item>
		<item>
		<title>Software Freedom Day na Unesp de Rio Preto</title>
		<link>http://www.gustavocaixeta.com/2008/09/software-freedom-day-na-unesp-de-rio-preto/</link>
		<comments>http://www.gustavocaixeta.com/2008/09/software-freedom-day-na-unesp-de-rio-preto/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 00:16:34 +0000</pubDate>
		<dc:creator>gcaixeta</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.gustavocaixeta.com/?p=9</guid>
		<description><![CDATA[No último dia 20/set aconteceu na Unesp de São José do Rio Preto o &#8220;Software Freedom Day&#8221;.
Foi muito massa o evento, contando com a participação do pessoal da Unesp, alguns da Fatec e outros  
O evento começou as 13h, cheguei um pouco atrasado ehehe, mas não muito!
Do pessoal que eu já conheciam, estavam o [...]]]></description>
			<content:encoded><![CDATA[<p>No último dia 20/set aconteceu na Unesp de São José do Rio Preto o &#8220;Software Freedom Day&#8221;.</p>
<p>Foi muito massa o evento, contando com a participação do pessoal da Unesp, alguns da Fatec e outros <img src='http://www.gustavocaixeta.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>O evento começou as 13h, cheguei um pouco atrasado ehehe, mas não muito!</p>
<p>Do pessoal que eu já conheciam, estavam o <a href="http://eustaquiorangel.com/">TaQ</a>, <a href="http://blogs.sun.com/thiago/">Thiago Gonzaga</a>, Thiago Oliveira e alguns outros da Fatec.</p>
<p><a href="http://www.gustavocaixeta.com/wp-content/uploads/2008/10/dsc01199.jpg" rel="lightbox[9]"><img class="alignleft size-thumbnail wp-image-14" title="Pessoa do Evento de Software Livre" src="http://www.gustavocaixeta.com/wp-content/uploads/2008/10/dsc01199-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p>Também estava presente minha querida Josiane, que estava interessada em algo referente ao Open Solaris, para o projeto de pesquisa no qual ela está envolvida (um módulo para reconhecimento de voz para o kernel do opensolaris).</p>
<p>O mais legal do evento, é que vi coisas relacionadas a assuntos que ainda não tenho muito conhecimento, tais como:</p>
<h3>Configuração de Rede Wireless em Linux</h3>
<p>Como eu nunca tive wireless ehehe, nunca tive a chance de ver como funciona esse bixo de verdade. Havia uma placa broadcom em um note com Slack que deu um certo trabalho.  Legal que vi como configurar wireless sem ferramentas gráficas, o que influenciou minha escolha pelo xubuntu, ao invés do ubuntu para meu futuro notebook.</p>
<p>Acho que o Gnome tem firulas demais desnecessariamente. A única coisa que eu realmente uso do gnome é o gedit. Fora isso só os temas GTK que podem ser utilizados também com o XFCE do Xubuntu.</p>
<h3>Diagramas no RoR</h3>
<p>Logo quando cheguei o TaQ estava mostrando o Rails para o Thiago Oliveira, peguei só o finalzinho de um plugin que gera os gráficos dos relacionamentos do ActiveRecord.<br />
Se eu tivesse um trem desses no meu TCC&#8230; fiz um esquema de engenharia reversa pelo DBDesigner para colocar o diagrama do banco do MySQL na monografia.</p>
<h3>Compilação de Kernel do Linux</h3>
<p>Sempre tive medo de &#8220;Compilação de kernel&#8221; eheheh, no evento um carinha da Kess (cujo não me lembro o nome, sorry) mostrou a configuração do .config e o TaQ baixou os ultimos fontes do kernel (2.6.26.5) e compilou em meros 19min <img src='http://www.gustavocaixeta.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> .</p>
<p>Vimos que não é tão complicado compilar um Kernel, que é mais complicado configurar o .config que segundo aprendemos, uma vez configurado, deve-se fazer uma cópia da cópia da cópia da cópia da cópia da cópia da cópia da cópia da cópia da cópia <img src='http://www.gustavocaixeta.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<h3>KVM e Virtualização</h3>
<p>Neste ano que comecei a mecher com virtualização de Sistema Operacional. Já tinha utilizado o VMware, VirtualBox e o outro trem da Microsoft, alguma coisa PC.</p>
<p>O TaQ comentou sobre o KVM. Eu me lembrava de algo relacionado a integração de virtualização ao kernel do linux (2.6), mas sinceramente <img src='http://www.gustavocaixeta.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> eu achava que KVM era alguma GUI do xen para o KDE hehehe.</p>
<p>No meu futuro note, irei colocar ubuntu e virtualizar windows. Agora tenho que estudar mais sobre KVM para verificar o isolamento que isso garante. Não quero que o windows chegue muito perto do meu Linux ehehehe. Pelo o que andei lendo, se eu instalar o KVM o VirtualBox deixa de funcionar :/<br />
Em questão de desempenho o KVM <a href="http://www.youtube.com/watch?v=oF4n6E5gK3Y">se propõe</a> ser bem melhor que o VirtualBox.</p>
<p>Mas provavelmente devo ficar com o KVM, pois uma das metas deste ano é aprender mais sobre Linux, configuração de servidores e Deploy. (coisas básicas para um sysadmin manter uma futura startup)</p>
<h3>&#8230;</h3>
<p>Fora isso, rolou altos papos, galera jogando, pessoal mexendo em Linux, OpenSolaris, etc.<br />
a url com as <a href="http://www.softwarefreedomday.org/teams/centralandsouthamerica/brasil/OpenForce">informações do evento é essa</a>.</p>
<p>Pena que não aproveitei muito os &#8220;comes e bebes&#8221; <img src='http://www.gustavocaixeta.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> tinha acabado de comer uma marmita gigante antes de ir para o evento (por isso o atraso eheheh).</p>
<p><a href="http://picasaweb.google.com/thi.winnt/DiaDaLiberdadeDoSoftware#">Fotos do evento</a> <img src='http://www.gustavocaixeta.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gustavocaixeta.com/2008/09/software-freedom-day-na-unesp-de-rio-preto/feed/</wfw:commentRss>
		</item>
		<item>
		<title>rake -D blog</title>
		<link>http://www.gustavocaixeta.com/2008/09/rake-d-blog/</link>
		<comments>http://www.gustavocaixeta.com/2008/09/rake-d-blog/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 17:02:42 +0000</pubDate>
		<dc:creator>gcaixeta</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.gustavocaixeta.com/?p=3</guid>
		<description><![CDATA[Olá,
Começando novamente 
]]></description>
			<content:encoded><![CDATA[<p>Olá,</p>
<p>Começando novamente <img src='http://www.gustavocaixeta.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gustavocaixeta.com/2008/09/rake-d-blog/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
