Which Ubuntu version is recommended for Rails 3?

Hi,

I have developed a little tool on my windows desktop. Now I want to
move that to a linux server. Probably Ubuntu is the favored, or?

Which ubuntu version is the best for Rails 3 with Ruby 1.9.2?

I found a lot of installing guides for old Ruby and Rails versions,
but only one for Rails 3 and Ruby 1.9.2 with Ubuntu 10.4. Would you
recommend that or use an older ubuntu version?

Found here: http://toranbillups.com/blog/archive/2010/09/01/How-to-install-Rails-3.0-and-Ruby-1.9.2-on-Ubuntu

Cheers,
Sebastian

Any ubuntu will do - You can use the latest 11.04 or 10.10 or whatever.

Just run railsready script and you’re good to go on a fresh linux install.

https://github.com/joshfng/railsready

You can't go far with any of them, but Ubuntu 10.4 seems to be a popular
default with many rails vps vendors.

The most prevalent mix seems to be rvm, ruby 1.9.2, rails 3 and mysql or
postgres.

Any Ubuntu version would do.

On a production server you should probably stick to LTS releases, which is 10.04

On a development machine you can use the latest release, which is 11.04

Also, on a dev machine it would be better to use RVM (https://rvm.beginrescueend.com/) to install and manage your ruby versions.

It gives you tremendous flexibility on what Ruby and Rails versions you can use, and makes it trivial to discard any problematic ruby/rails installations you have had.

Rails 3 and Ubuntu 11.04 and Mysql: http://cicolink.blogspot.com/2011/06/how-to-install-ruby-on-rails-3-with.html

Rails 3 and Ubuntu 11.04 and SQlite3: http://cicolink.blogspot.com/2010/10/how-to-install-ruby-rails-and.html

excelstudio@gmail.com wrote:

"You can't go far with any of them, but Ubuntu 10.4 seems to be a
popular
default with many rails vps vendors."

What do you mean with that? Is ubuntu not a good choice at all?

Its a typo, I meant you can't go far wrong with either of them, but from
what I've seen with a lot of vps vendors, Ubuntu 10.4 is usually the
default, although you can switch to other versions newer or older.

These are the instructions I followed to get a good deployment on 10.4, they
start you with rvm so you can easily play with diff versions of
ruby/rails/gems:

http://www.web2linux.com/05/installing-rails-3-on-ubuntu-10-04-lucid-lynx/

After it you can go to:

http://modrails.com/install.html

and install Passenger and then the gem module for either apache or nginx.

During setup it will give you the option to let the module setup the
webserver with correct settings for passenger included.

"You can't go far with any of them, but Ubuntu 10.4 seems to be a
popular
default with many rails vps vendors."

What do you mean with that? Is ubuntu not a good choice at all?

Rails 3 and Ubuntu 11.04 and

Mysql:http://cicolink.blogspot.com/2011/06/how-to-install-ruby-on-rails-3-w…>>
.

I personally prefers linux backtrack for development and gnome env and him as e editor . Last version is based on Ubuntu. At the end of the day it doesn’t make any difference which Linux you use as long as you know what are you doing.

Thank you for clarification!!!

One last question:

I think I don't need to play around with different Ruby or Rails
version. I need Rails 3 with Ruby 1.9.2. So do I really need rvm?

I want to use sqlite3 as database. Is there any recommendation for the
web server: Apache or nginx?

Thanks at all,
Sebastian

On a server - No, rvm is not required

In my experience, Nginx is faster, but Apache is much easier to setup and get going.

You don't *need* RVM, but it makes life easier. It is an easy way to
install Ruby 1.9.2p180 to start with. Then, when a new version of Ruby
comes out, it will make it trivial to upgrade.

U should really consider on taking RVM.

When a newer Ruby version come out, you'll be able to maintain your projects with their current version and also install the new version along with the current version you're using.

Makes life a lot easier and it's not difficult to install.

If you want to keep up with the latest versions of ruby and rails rvm will simplify life. If however you want to settle on a version and spend your time developing your application you can just skip rvm.

YMMV
Norm