A few corrections are included in this new version (0.4.1)
#!/bin/bash # Copyright (C) 2011 Quiliro Ordonez # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # You should have received a copy of the GNU Affero General Public # License along with this program. If not, see # <http://www.gnu.org/licenses/>. # quiliro [at] fsfla [dot] org # InstantHobo.bash version 0.4.1 # # This program installs Hobo stable version 1.3 on Trisquel distribution # of the GNU operating system by installing Ruby version 1.9.3-p0 from # source and by using apt-get it installs other binary software packages. # Have fun using and modifying this script. Please send me your updates # so I can share them with others. # Just make a text file named InstantHobo.bash and make it executable by # typing: # sudo chmod +x InstantHobo.bash # Then execute it by typing: # ./InstantHobo.bash # # Note: If you want to remove all gems before running this script, type: # sudo gem list | cut -d" " -f1 | xargs sudo gem uninstall -aIx # Keep hacking! # Additional Contributions by Arthur E. Baldwin # The mysql2.gem file is not designed to properly choose the correct # version number, so it is necessary to include the -v parameter and the # desired version number. Otherwise you will be using this script in # vain. # This script has been thoroughly tested primarily on Trisquel 5.0 and on # KUbuntu 11.10 (64 bit). We're leaving it up to others to test and # report their findings on other distros. echo "Updating package database" sudo apt-get update echo echo "Installing stable versions of Ruby and Rubygems" echo "as well as the git versioning system" sudo apt-get -y install ruby rubygems git-core echo echo "Setting the path for the hobo command for the current user" echo "PATH="/var/lib/gems/1.8/bin:$PATH"" >> $HOME/.profile source $HOME/.profile echo echo "Setting the path for the hobo command for future users" sudo sh -c 'echo "PATH="/var/lib/gems/1.8/bin:$PATH"" >> /etc/profile' echo echo "Updating currently installed gems" sudo gem update echo echo "Installing Apache web server" sudo apt-get -y install apache2 # Choosing the database echo echo " Choose database" echo " ------ --------" echo "Choose one of the following databases:" echo echo "[M]ySQL 5" echo "[S]QLite 3" echo read database case "$database" in "M" | "m" ) echo "Installing MySQL database management system server" sudo apt-get -y install mysql-server libmysqlclient-dev echo "Installing mysql2 gem" sudo gem install mysql2 -v 0.2.17 ;; "S" | "s" ) echo "Installing SQLite 3 database management system server" sudo apt-get -y install libsqlite3-dev echo "Installing sqlite3 gem" sudo gem install sqlite3 ;; esac echo echo "Installing the Hobo gem" sudo gem install hobo # End of script -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
