<?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>ditoinfo in english &#187; ubuntu</title>
	<atom:link href="http://danteregis.com/category/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://danteregis.com</link>
	<description>talking about programming and computer stuff</description>
	<lastBuildDate>Tue, 09 Jun 2009 21:57:13 +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>how to install ruby on rails and lighttpd on ubuntu</title>
		<link>http://danteregis.com/2007/03/how-to-install-ruby-on-rails-and-lighttpd-on-ubuntu/</link>
		<comments>http://danteregis.com/2007/03/how-to-install-ruby-on-rails-and-lighttpd-on-ubuntu/#comments</comments>
		<pubDate>Tue, 06 Mar 2007 05:39:46 +0000</pubDate>
		<dc:creator>Dante Regis</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://ditoinfo.wordpress.com/2007/03/06/how-to-install-ruby-on-rails-and-lighttpd-on-ubuntu/</guid>
		<description><![CDATA[Hey folks. It&#8217;s interesting how difficult it was for me to get Rails up and running on Lighttpd. I&#8217;ve tried lot&#8217;s and lot&#8217;s of tutorials, but none of them seemed fit to me. I came up with this solution, wich is actually a merge of lot&#8217;s tips. Feel free to contribute, and I hope that [...]]]></description>
			<content:encoded><![CDATA[<p>Hey folks. It&#8217;s interesting how difficult it was for me to get Rails up and running on Lighttpd. I&#8217;ve tried lot&#8217;s and lot&#8217;s of tutorials, but none of them seemed fit to me. I came up with this solution, wich is actually a merge of lot&#8217;s tips. Feel free to contribute, and I hope that this helps you out.</p>
<p>1) First, include UNIVERSE on your sources.list. It is located on /etc/apt/sources.list. If you are unsure, take a look at <a href="http://www.ubuntu-nl.org/source-o-matic/" target="_blank">this web-site</a>. It may help you out. Remember to <strong>sudo</strong>, or be root to do everything<span id="more-20"></span></p>
<p>2) Then update your package list and upgrade your machine.<br />
<code><br />
apt-get update<br />
apt-get upgrade<br />
</code></p>
<p>3) Install the build-essential package. It has the most-used tools to compile programs from source.<br />
<code><br />
apt-get install build-essential<br />
</code></p>
<p>4) Install ruby and everything it needs.<br />
<code><br />
apt-get install ruby1.8 ruby1.8-dev irb1.8 rdoc1.8 libyaml-ruby libzlib-ruby libopenssl-ruby<br />
</code></p>
<p>5) Create simbolic links for ruby. The installation made before create binaries with unfriendly names (e.g. ruby1.8). So, we create links to be able to use &#8220;ruby&#8221; and &#8220;irb&#8221; from the console:<br />
<code><br />
ln -s /usr/bin/ruby1.8 /usr/bin/ruby<br />
ln -s /usr/bin/irb1.8 /usr/bin/irb<br />
</code></p>
<p>6) Download and install RubyGems<br />
<code><br />
cd ~<br />
mkdir ruby_install/ruby_gems<br />
cd ruby_install/ruby_gems<br />
wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz<br />
tar xvzf rubygems-0.9.0.tgz<br />
cd rubygems-0.9.0<br />
ruby setup.rb<br />
</code></p>
<p>7) Install Rails with RubyGems<br />
<code><br />
gem install rails --include-dependencies<br />
</code><br />
PS: Sometimes, on machines behind network proxies, the above command will not work. On this case, you can manually install each of Rails components. They can be downloaded from <a href="http://www.rubyforge.org">rubyforge.org</a> and must be installed on this order:</p>
<ul>
<li>Rake</li>
<li>ActiveSupport</li>
<li>ActiveRecord</li>
<li>ActionPack</li>
<li>ActionMailer</li>
<li>ActionWebService</li>
<li>Rails</li>
</ul>
<p>8 ) Install RedCloth if you plan on using textilize.<br />
<code><br />
gem install redcloth<br />
</code></p>
<p>9) Now, it&#8217;s time to install FastCGI<br />
<code><br />
apt-get install libfcgi libfcgi-dev libfcgi-ruby1.8<br />
gem install fcgi<br />
</code></p>
<p>10) Install MySQL client libraries (if you are using MySQL)<br />
<code><br />
apt-get install libmysqlclient15-dev libmysql-ruby1.8<br />
gem install mysql<br />
</code><br />
PS: When gem install asks you whitch version of mysql to install, just choose the greater version number for your system.</p>
<p>11) Install lighttdp<br />
<code><br />
apt-get install lighttpd<br />
</code></p>
<p>12) Save a backup copy of your /etc/lighttpd/lighttpd.conf</p>
<p>13) Use this lighttpd.conf. Remember to change <strong>var.railsdir</strong><br />
server.modules           = ( &#8220;mod_rewrite&#8221;, &#8220;mod_accesslog&#8221;, &#8220;mod_fastcgi&#8221;, &#8220;mod_compress&#8221;, &#8220;mod_expire&#8221; )</p>
<p>server.pid-file = “/var/run/lighttpd.pid”</p>
<p>var.railsdir = &#8220;/home/web/test&#8221;</p>
<p>server.error-handler-404 = &#8220;/dispatch.fcgi&#8221;<br />
server.document-root     = var.railsdir + &#8220;/public/&#8221;</p>
<p>server.errorlog          = var.railsdir + &#8220;/log/lighttpd.error.log&#8221;<br />
accesslog.filename       = var.railsdir + &#8220;/log/lighttpd.access.log&#8221;</p>
<p>url.rewrite              = ( &#8220;^/$&#8221; =&gt; &#8220;index.html&#8221;, &#8220;^([^.]+)$&#8221; =&gt; &#8220;$1.html&#8221; )</p>
<p>compress.filetype        = ( &#8220;text/plain&#8221;, &#8220;text/html&#8221;, &#8220;text/css&#8221;, &#8220;text/javascript&#8221; )<br />
compress.cache-dir       = var.railsdir + &#8220;/tmp/cache&#8221;</p>
<p>expire.url               = ( &#8220;/favicon.ico&#8221;  =&gt; &#8220;access 3 days&#8221;,<br />
&#8220;/images/&#8221;      =&gt; &#8220;access 3 days&#8221;,<br />
&#8220;/stylesheets/&#8221; =&gt; &#8220;access 3 days&#8221;,<br />
&#8220;/javascripts/&#8221; =&gt; &#8220;access 3 days&#8221; )</p>
<p># Change *-procs to 2 if you need to use Upload Progress or other tasks that<br />
# *need* to execute a second request while the first is still pending.<br />
fastcgi.server      = ( &#8220;.fcgi&#8221; =&gt; ( &#8220;localhost&#8221; =&gt; (<br />
&#8220;min-procs&#8221;       =&gt; 4,<br />
&#8220;max-procs&#8221;       =&gt; 4,<br />
&#8220;socket&#8221;          =&gt; var.railsdir + &#8220;/tmp/sockets/fcgi.socket&#8221;,<br />
&#8220;bin-path&#8221;        =&gt; var.railsdir + &#8220;/public/dispatch.fcgi&#8221;,<br />
&#8220;bin-environment&#8221; =&gt; ( &#8220;RAILS_ENV&#8221; =&gt; &#8220;production&#8221; )<br />
) ) )</p>
<p>mimetype.assign = (<br />
&#8220;.css&#8221;        =&gt;  &#8220;text/css&#8221;,<br />
&#8220;.gif&#8221;        =&gt;  &#8220;image/gif&#8221;,<br />
&#8220;.htm&#8221;        =&gt;  &#8220;text/html&#8221;,<br />
&#8220;.html&#8221;       =&gt;  &#8220;text/html&#8221;,<br />
&#8220;.jpeg&#8221;       =&gt;  &#8220;image/jpeg&#8221;,<br />
&#8220;.jpg&#8221;        =&gt;  &#8220;image/jpeg&#8221;,<br />
&#8220;.js&#8221;         =&gt;  &#8220;text/javascript&#8221;,<br />
&#8220;.png&#8221;        =&gt;  &#8220;image/png&#8221;,<br />
&#8220;.swf&#8221;        =&gt;  &#8220;application/x-shockwave-flash&#8221;,<br />
&#8220;.txt&#8221;        =&gt;  &#8220;text/plain&#8221;<br />
)</p>
<p># Making sure file uploads above 64k always work when using IE or Safari<br />
# For more information, see http://trac.lighttpd.net/trac/ticket/360<br />
$HTTP["useragent"] =~ &#8220;^(.*MSIE.*)|(.*AppleWebKit.*)$&#8221; {<br />
server.max-keep-alive-requests = 0<br />
}</p>
<p>14) Set adequate permissions on your application&#8217;s folders:<br />
<code><br />
chmod -R 775 log/<br />
chmod -R 775 public/<br />
chmod -R 775 tmp/<br />
</code></p>
<p>15) You&#8217;re done.</p>
<p><strike>There&#8217;s a small catch on this stuff: You won&#8217;t be able to /etc/init.d/services/lighttpd stop or restart. For some reason, lighttpd loose it&#8217;s connection with init.d, and you can only stop it sending TERM signals from the command line:<br />
</strike> <code><strike><br />
$ sudo ps -A | grep lighttpd<br />
1234   lighttpd<br />
$ sudo kill -9 1234</strike><br />
</code></p>
<p>Using  server.pid-file = “/var/run/lighttpd.pid” will take care of the job! Config example updated. Thanks, raul.<br />
That&#8217;s it. I hope it helped you.<br />
Best</p>
]]></content:encoded>
			<wfw:commentRss>http://danteregis.com/2007/03/how-to-install-ruby-on-rails-and-lighttpd-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Powered by Ubuntu Stickers</title>
		<link>http://danteregis.com/2007/02/powered-by-ubuntu-stickers/</link>
		<comments>http://danteregis.com/2007/02/powered-by-ubuntu-stickers/#comments</comments>
		<pubDate>Sat, 24 Feb 2007 06:14:44 +0000</pubDate>
		<dc:creator>Dante Regis</dc:creator>
				<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://ditoinfo.wordpress.com/2007/02/24/powered-by-ubuntu-stickers/</guid>
		<description><![CDATA[The local Ubuntu teams of various countries are giving free* stickers stamped with &#8220;Powered by Ubuntu&#8221;. It&#8217;s quite like those Intel(r) Pentium(r) 4 Inside, &#8220;Designed for Windows XP&#8221; sort of thing.
Now, the asterisk (*) on &#8220;free&#8221; is there because you pay the posting expenses. You get an envelope and adress it to your self, for [...]]]></description>
			<content:encoded><![CDATA[<p>The local Ubuntu teams of various countries are giving free* stickers stamped with &#8220;Powered by Ubuntu&#8221;. It&#8217;s quite like those Intel(r) Pentium(r) 4 Inside, &#8220;Designed for Windows XP&#8221; sort of thing.<br />
Now, the asterisk (*) on &#8220;free&#8221; is there because you pay the posting expenses. You get an envelope and adress it to your self, for it will be used by the Ubuntu Team to send the stickers to you. Place on this envelope enough stamps to pay the trip. Then you get another envelope and fill you as the sender and the ubuntu team as the receiver. Place the first envelope (it&#8217;s stamped, isn&#8217;t it?) inside this new one. Stamp the new one and send to the Ubuntu Team.<br />
After a few weeks you should receive back 4 stickers like those described above.</p>
<p>For thoso who don&#8217;t want to go to another website, the Brazil&#8217;s comunity address is:</p>
<p>Comunidade UbuntuBR<br />
A/C Etiquetas Ubuntu<br />
Av. Rui Barbosa, 2095 cj63<br />
Santana &#8211; Sao Jose dos Campos/SP<br />
CEP: 12211-000</p>
<p>Pictures of the stickers and other comunities address are available at <a href="http://www.system76.com/index.php/cPath/53_64">System76</a>&#8217;s site.</p>
]]></content:encoded>
			<wfw:commentRss>http://danteregis.com/2007/02/powered-by-ubuntu-stickers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
