It really is a no brainer to setup Linux, MySQL, Ruby, RubyGems, RMagick, Rails, etc. the 45th time you’ve done it. But it takes a bit of time to go through those 44 other times. So I decided to write down all my steps so I can consistently setup a box at will with little fuss. Take a look, it probably is very close to what you’re looking for:

Ubuntu / MySQL / Rails Stack Install Guide