jcanfield
8/12/2010 - 1:13 AM

devtools.sh

sudo aptitude update
sudo tasksel install lamp-server
#!/bin/bash
# A script which will transform a ubuntu desktop install in a web development environment

# Enable partner repository ( SUN's Java is in this repository )
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"

sudo aptitude update

# the LAMP stack
sudo tasksel install lamp-server
# some utilities / chrome-browser / git / java and ruby
sudo aptitude install build-essential libsqlite3-dev php5-cli sun-java6-jre sun-java6-fonts ruby rdoc chromium-browser git-core phpmyadmin ruby-dev libxml2-dev libxslt1-dev
# ruby gem
cd /tmp
wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.6.tgz
tar -xzvf rubygems-1.3.6.tgz
cd rubygems-1.3.6
sudo ruby setup.rb
sudo ln -s /usr/bin/gem1.8 /usr/bin/gem
cd --
# ruby on rails / thin and juicer
sudo gem install thin juicer rails sqlite3-ruby
# Download aptana
gnome-open http://www.aptana.org/studio/download
wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.6.tgz
tar -xzvf rubygems-1.3.6.tgz
cd rubygems-1.3.6
sudo ruby setup.rb
sudo ln -s /usr/bin/gem1.8 /usr/bin/gem
sudo gem install thin juicer rails sqlite3-ruby
sudo aptitude install build-essential libsqlite3-dev php5-cli sun-java6-jre sun-java6-fonts ruby rdoc chromium-browser git-core phpmyadmin ruby-dev libxml2-dev libxslt1-dev