Last active
December 22, 2015 13:08
-
-
Save marcofanti/6476694 to your computer and use it in GitHub Desktop.
MAP pre-requisite install scripts
This file contains 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 characters
#install java | |
sudo yum -y install java-1.6.0-openjdk-devel.x86_64 | |
#install and configure MySQL | |
sudo /bin/rpm -Uvh --replacepkgs \ | |
http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm | |
sudo /bin/rpm -Uvh --replacepkgs \ | |
http://rpms.famillecollet.com/enterprise/remi-release-5.rpm | |
sudo /usr/bin/yum -d 0 -e 0 -y --enablerepo=remi install mysql mysql-server | |
awk 'NR==2{print "default-storage-engine=InnoDB\r\nmax_allowed_packet=60MB"}1' /etc/my.cnf > /tmp/my.cnf | |
sudo cp /tmp/my.cnf /etc/my.cnf | |
sudo /sbin/service mysqld start | |
/usr/bin/mysqladmin -u root password 'admin101#' | |
#dependencies needed by RVM | |
sudo yum -y install curl-devel | |
sudo yum -y install which gcc gcc-c++ make gettext-devel expat-devel zlib-devel openssl-devel | |
sudo yum -y install perl cpio gettext-devel wget bzip2 | |
sudo yum -y install sendmail mailx | |
sudo yum -y install libxml2 libxml2-devel libxslt libxslt-devel readline-devel patch git | |
echo '************* Done part 1 ***********' |
This file contains 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 characters
# install RVM | |
curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer -o /tmp/rvm-installer | |
chmod +x /tmp/rvm-installer | |
sudo su | |
export PATH=$PATH:/usr/sbin/ | |
rvm_bin_path=/usr/local/rvm/bin rvm_man_path=/usr/local/rvm/man /tmp/rvm-installer --version latest | |
exit | |
exit |
This file contains 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 characters
# install Ruby 1.8.7 | |
sudo rvm autolibs enable | |
sudo rvm install ruby-1.8.7-p370 | |
sudo rvm alias create default ruby-1.8.7-p370 | |
# install SQLITE (needed for gems) | |
sudo yum -y install curl-devel sqlite-devel | |
mkdir -p /tmp/sqlite-lite | |
pushd /tmp/sqlite-lite | |
wget http://www.sqlite.org/sqlite-autoconf-3070500.tar.gz | |
tar xvzf sqlite-autoconf-3070500.tar.gz | |
cd sqlite-autoconf-3070500 | |
./configure | |
make | |
sudo make install | |
popd | |
rm -rf /tmp/sqlite-lite | |
# install BUNDLER | |
sudo gem install bundler | |
# install PASSENGER | |
sudo yum -y install zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel | |
export rvmsudo_secure_path=1 | |
rvmsudo gem install --no-rdoc --no-ri rails passenger | |
source /usr/local/rvm/environments/ruby-1.8.7-p370 | |
rvmsudo /usr/local/rvm/gems/ruby-1.8.7-p370/bin/passenger-install-apache2-module | |
sudo chcon -R -h -t httpd_sys_content_t /usr/local/rvm/gems/ruby-1.8.7-p370 | |
# install TOMCAT6 | |
sudo wget http://jpackage.org/jpackage50.repo -P /etc/yum.repos.d/ | |
mkdir -p /tmp/tomcat6 | |
pushd /tmp/tomcat6 | |
wget https://github.com/downloads/pallet/pallet/jpackage-utils-compat-el5-0.0.1-1.noarch.rpm | |
sudo /bin/rpm -ivh --replacepkgs jpackage-utils-compat-el5-0.0.1-1.noarch.rpm | |
sudo yum -y install tomcat6 tomcat6-webapps tomcat6-admin-webapps | |
popd | |
rm -rf /tmp/tomcat6 | |
#install MOD_JK | |
mkdir -p /tmp/mod_jk | |
pushd /tmp/mod_jk | |
wget http://www.carfab.com/apachesoftware//tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.37-src.tar.gz | |
tar xvf tomcat-connectors-1.2.37-src.tar.gz | |
cd tomcat-connectors-1.2.37-src/native | |
./configure -with-apxs=/usr/sbin/apxs | |
make | |
sudo make install | |
popd | |
rm -rf /tmp/mod_jk | |
# | |
# sudo vi /etc/httpd/conf/httpd.conf | |
# | |
# /usr/lib64/httpd/modules/mod_jk.so | |
# | |
# install ANDROID | |
sudo mkdir -p /usr/local/android/sdk | |
wget http://dl.google.com/android/android-sdk_r21.0.1-linux.tgz -O - | sudo /bin/tar -xzC /usr/local/android/sdk --strip-components=1 | |
sudo /usr/local/android/sdk/tools/android update sdk --no-ui --filter tool,platform-tool | |
export PATH=$PATH:/usr/local/android/sdk/platform-tools | |
echo '************* Done part 3 ***********' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment