Created
December 17, 2008 20:24
Revisions
-
maran revised this gist
Mar 15, 2009 . 1 changed file with 107 additions and 106 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,107 +1,108 @@ #!/bin/bash # Unattended REE/Passenger installation # Source: http://weblog.brightlight-ict.nl/2008/12/unattended-passenger-ruby-enterprise-installation-on-ubuntu-8/ # 15/03/09 Updated to use latest r.e.e. and passenger 2.1 and rewrote bits thanks to the comments left on my blog. Thanks guys if [ "$(whoami)" != "root" ]; then echo "You need to be root to run this!" exit 2 fi VERSION="1.2" REEV="http://rubyforge.org/frs/download.php/51100/ruby-enterprise-1.8.6-20090201.tar.gz" REEF="ruby-enterprise-1.8.6-20090201.tar.gz" REEFF=${REEF%".tar.gz"} PASSENGER="2.1.2" export PASSENGER echo "#####################################" echo "Welcome, let's get this party rollin'" echo "#####################################" echo "Updating Aptitude" apt-get update echo "Installing build essentials" apt-get install build-essential zlib1g-dev libssl-dev wget libreadline5-dev -y echo "Installing GIT" apt-get install -y git-core echo "Installing apache" apt-get install -y apache2 echo "Installing apache headers" apt-get install -y apache2-prefork-dev echo "Installing Ruby Enterprise from following url" echo $REEV wget $REEV if [ -e $REEF ] then echo "File downloaded succesful" else echo "Error, file wasn't downloaded!" exit fi tar -zxvf $REEF # possible options perhaps for checker # --extra rails --no-tcmalloc if [ -d ./$REEFF ] then ./$REEFF/installer --auto /opt/ruby echo "Dir test" else echo "Dir not found, exiting.." exit fi echo "Creating ruby symlinks" ln -s /opt/ruby/bin/ruby /usr/bin/ruby ln -s /opt/ruby/bin/gem /usr/bin/gem ln -s /opt/ruby/bin/rake /usr/bin/rake ln -s /opt/ruby/bin/rails /usr/bin/rails echo "Installing other gems" gem install rails gem install will_paginate gem install shoulda gem install mysql echo "Installing passenger" gem install passenger -v=$PASSENGER echo "Config passenger" yes '' | /opt/ruby/bin/passenger-install-apache2-module echo "Copying passenger files" touch /etc/apache2/mods-available/passenger.load touch /etc/apache2/mods-available/passenger.conf echo "LoadModule passenger_module /opt/ruby/lib/ruby/gems/1.8/gems/passenger-$PASSENGER/ext/apache2/mod_passenger.so" >> /etc/apache2/mods-available/passenger.load echo "PassengerRoot /opt/ruby/lib/ruby/gems/1.8/gems/passenger-$PASSENGER PassengerRuby /opt/ruby/bin/ruby" >> /etc/apache2/mods-available/passenger.conf echo "Enabling passenger module" a2enmod passenger echo "Reloading apache" /etc/init.d/apache2 reload echo "##########################" echo "# Installation Complete" echo "##########################" sleep 2 echo "##########################" echo "# Installed Ruby Version #" echo "##########################" ruby -v echo "##########################" echo "# Installed Gems Version #" echo "##########################" gem -v /opt/ruby/bin/passenger-status -
Maran Hidskes revised this gist
Mar 15, 2009 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -75,7 +75,7 @@ echo "Installing passenger" gem install passenger -v=$PASSENGER echo "Config passenger" yes '' | /opt/ruby/bin/passenger-install-apache2-module echo "Copying passenger files" -
Maran Hidskes revised this gist
Mar 15, 2009 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -79,12 +79,12 @@ echo "Config passenger" echo "Copying passenger files" touch /etc/apache2/mods-available/passenger.load touch /etc/apache2/mods-available/passenger.conf echo "LoadModule passenger_module /opt/ruby/lib/ruby/gems/1.8/gems/passenger-$PASSENGER/ext/apache2/mod_passenger.so" >> /etc/apache2/mods-available/passenger.load echo "PassengerRoot /opt/ruby/lib/ruby/gems/1.8/gems/passenger-$PASSENGER PassengerRuby /opt/ruby/bin/ruby" >> /etc/apache2/mods-available/passenger.conf echo "Enabling passenger module" a2enmod passenger -
Maran Hidskes revised this gist
Mar 15, 2009 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -22,7 +22,7 @@ echo "Updating Aptitude" apt-get update echo "Installing build essentials" apt-get install build-essential zlib1g-dev libssl-dev wget libreadline5-dev -y echo "Installing GIT" apt-get install -y git-core -
Maran Hidskes revised this gist
Mar 15, 2009 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,7 +12,8 @@ REEV="http://rubyforge.org/frs/download.php/51100/ruby-enterprise-1.8.6-20090201 REEF="ruby-enterprise-1.8.6-20090201.tar.gz" REEFF=${REEF%".tar.gz"} PASSENGER="2.1.2" export PASSENGER echo "#####################################" echo "Welcome, let's get this party rollin'" echo "#####################################" -
Maran Hidskes revised this gist
Mar 15, 2009 . 1 changed file with 105 additions and 105 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,106 +1,106 @@ #!/bin/bash # Unattended REE/Passenger installation # Source: http://weblog.brightlight-ict.nl/2008/12/unattended-passenger-ruby-enterprise-installation-on-ubuntu-8/ if [ "$(whoami)" != "root" ]; then echo "You need to be root to run this!" exit 2 fi VERSION="1.2" REEV="http://rubyforge.org/frs/download.php/51100/ruby-enterprise-1.8.6-20090201.tar.gz" REEF="ruby-enterprise-1.8.6-20090201.tar.gz" REEFF=${REEF%".tar.gz"} PASSENGER="2.1.2" echo "#####################################" echo "Welcome, let's get this party rollin'" echo "#####################################" echo "Updating Aptitude" apt-get update echo "Installing build essentials" apt-get install build-essential zlib1g-dev libssl-dev wget -y echo "Installing GIT" apt-get install -y git-core echo "Installing apache" apt-get install -y apache2 echo "Installing apache headers" apt-get install -y apache2-prefork-dev echo "Installing Ruby Enterprise from following url" echo $REEV wget $REEV if [ -e $REEF ] then echo "File downloaded succesful" else echo "Error, file wasn't downloaded!" exit fi tar -zxvf $REEF # possible options perhaps for checker # --extra rails --no-tcmalloc if [ -d ./$REEFF ] then ./$REEFF/installer --auto /opt/ruby echo "Dir test" else echo "Dir not found, exiting.." exit fi echo "Creating ruby symlinks" ln -s /opt/ruby/bin/ruby /usr/bin/ruby ln -s /opt/ruby/bin/gem /usr/bin/gem ln -s /opt/ruby/bin/rake /usr/bin/rake ln -s /opt/ruby/bin/rails /usr/bin/rails echo "Installing other gems" gem install rails gem install will_paginate gem install shoulda gem install mysql echo "Installing passenger" gem install passenger -v=$PASSENGER echo "Config passenger" /opt/ruby/bin/passenger-install-apache2-module –auto echo "Copying passenger files" bash -c 'touch /etc/apache2/mods-available/passenger.load' bash -c 'touch /etc/apache2/mods-available/passenger.conf' bash -c 'echo "LoadModule passenger_module /opt/ruby/lib/ruby/gems/1.8/gems/passenger-${PASSENGER}/ext/apache2/mod_passenger.so" >> /etc/apache2/mods-available/passenger.load' bash -c 'echo "PassengerRoot /opt/ruby/lib/ruby/gems/1.8/gems/passenger-${PASSENGER} PassengerRuby /opt/ruby/bin/ruby" >> /etc/apache2/mods-available/passenger.conf' echo "Enabling passenger module" a2enmod passenger echo "Reloading apache" /etc/init.d/apache2 reload echo "##########################" echo "# Installation Complete" echo "##########################" sleep 2 echo "##########################" echo "# Installed Ruby Version #" echo "##########################" ruby -v echo "##########################" echo "# Installed Gems Version #" echo "##########################" gem -v /opt/ruby/bin/passenger-status -
Maran Hidskes revised this gist
Mar 15, 2009 . 1 changed file with 36 additions and 32 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,28 +1,36 @@ #!/bin/bash # Unattended REE/Passenger installation # Source: http://weblog.brightlight-ict.nl/2008/12/unattended-passenger-ruby-enterprise-installation-on-ubuntu-8/ if [ "$(whoami)" != "root" ]; then echo "You need to be root to run this!" exit 2 fi VERSION="1.2" REEV="http://rubyforge.org/frs/download.php/51100/ruby-enterprise-1.8.6-20090201.tar.gz" REEF="ruby-enterprise-1.8.6-20090201.tar.gz" REEFF=${REEF%".tar.gz"} PASSENGER="2.1.2" echo "#####################################" echo "Welcome, let's get this party rollin'" echo "#####################################" echo "Updating Aptitude" apt-get update echo "Installing build essentials" apt-get install build-essential zlib1g-dev libssl-dev wget -y echo "Installing GIT" apt-get install -y git-core echo "Installing apache" apt-get install -y apache2 echo "Installing apache headers" apt-get install -y apache2-prefork-dev echo "Installing Ruby Enterprise from following url" echo $REEV @@ -43,50 +51,46 @@ tar -zxvf $REEF if [ -d ./$REEFF ] then ./$REEFF/installer --auto /opt/ruby echo "Dir test" else echo "Dir not found, exiting.." exit fi echo "Creating ruby symlinks" ln -s /opt/ruby/bin/ruby /usr/bin/ruby ln -s /opt/ruby/bin/gem /usr/bin/gem ln -s /opt/ruby/bin/rake /usr/bin/rake ln -s /opt/ruby/bin/rails /usr/bin/rails echo "Installing other gems" gem install rails gem install will_paginate gem install shoulda gem install mysql echo "Installing passenger" gem install passenger -v=$PASSENGER echo "Config passenger" /opt/ruby/bin/passenger-install-apache2-module –auto echo "Copying passenger files" bash -c 'touch /etc/apache2/mods-available/passenger.load' bash -c 'touch /etc/apache2/mods-available/passenger.conf' bash -c 'echo "LoadModule passenger_module /opt/ruby/lib/ruby/gems/1.8/gems/passenger-${PASSENGER}/ext/apache2/mod_passenger.so" >> /etc/apache2/mods-available/passenger.load' bash -c 'echo "PassengerRoot /opt/ruby/lib/ruby/gems/1.8/gems/passenger-${PASSENGER} PassengerRuby /opt/ruby/bin/ruby" >> /etc/apache2/mods-available/passenger.conf' echo "Enabling passenger module" a2enmod passenger echo "Reloading apache" /etc/init.d/apache2 reload echo "##########################" echo "# Installation Complete" echo "##########################" @@ -99,4 +103,4 @@ echo "##########################" echo "# Installed Gems Version #" echo "##########################" gem -v /opt/ruby/bin/passenger-status -
maran created this gist
Dec 17, 2008 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,102 @@ #!/bin/bash VERSION="1.1" REEV="http://rubyforge.org/frs/download.php/48623/ruby-enterprise-1.8.6-20081215.tar.gz" REEF="ruby-enterprise-1.8.6-20081215.tar.gz" REEFF=${REEF%".tar.gz"} PASSENGER="2.0.6" echo "#####################################" echo "Welcome, let's get this party rollin'" echo "#####################################" echo "Updating Aptitude" sudo apt-get update echo "Installing build essentials" sudo apt-get install build-essential zlib1g-dev libssl-dev wget -y echo "Installing GIT" sudo apt-get install -y git-core echo "Installing apache" sudo apt-get install -y apache2 echo "Installing apache headers" sudo apt-get install -y apache2-prefork-dev echo "Installing Ruby Enterprise from following url" echo $REEV wget $REEV if [ -e $REEF ] then echo "File downloaded succesful" else echo "Error, file wasn't downloaded!" exit fi tar -zxvf $REEF # possible options perhaps for checker # --extra rails --no-tcmalloc if [ -d ./$REEFF ] then sudo ./$REEFF/installer --auto /opt/ruby echo "Dir test" else echo "Dir not found, exiting.." exit fi echo "Creating ruby symlinks" sudo ln -s /opt/ruby/bin/ruby /usr/bin/ruby sudo ln -s /opt/ruby/bin/gem /usr/bin/gem sudo ln -s /opt/ruby/bin/rake /usr/bin/rake sudo ln -s /opt/ruby/bin/rails /usr/bin/rails echo "Installing other gems" sudo gem install rails sudo gem install will_paginate sudo gem install shoulda sudo gem install mysql echo "Installing passenger" sudo gem install passenger -v=$PASSENGER echo "Config passenger" yes '' | sudo /opt/ruby/bin/passenger-install-apache2-module #sudo /opt/ruby/bin/passenger-install-apache2-module echo "Copying passenger files" sudo bash -c 'touch /etc/apache2/mods-available/passenger.load' sudo bash -c 'touch /etc/apache2/mods-available/passenger.conf' sudo bash -c 'echo "LoadModule passenger_module /opt/ruby/lib/ruby/gems/1.8/gems/passenger-2.0.6/ext/apache2/mod_passenger.so" >> /etc/apache2/mods-available/passenger.load' sudo bash -c 'echo "PassengerRoot /opt/ruby/lib/ruby/gems/1.8/gems/passenger-2.0.6 PassengerRuby /opt/ruby/bin/ruby" >> /etc/apache2/mods-available/passenger.conf' echo "Enabling passenger module" sudo a2enmod passenger echo "Reloading apache" sudo /etc/init.d/apache2 reload echo "Setting up test project [TODO]" #TODO echo "##########################" echo "# Installation Complete" echo "##########################" sleep 2 echo "##########################" echo "# Installed Ruby Version #" echo "##########################" ruby -v echo "##########################" echo "# Installed Gems Version #" echo "##########################" gem -v sudo /opt/ruby/bin/passenger-status