Created
August 3, 2011 09:26
-
-
Save padcom/1122244 to your computer and use it in GitHub Desktop.
Revisions
-
padcom revised this gist
Jul 5, 2012 . 1 changed file with 2 additions and 2 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,5 +1,5 @@ --- ruby-enterprise-1.8.7-2012.02/source/distro/google-perftools-1.7/src/tcmalloc.cc 2012-02-19 15:09:11.000000000 +0100 +++ ruby-enterprise-1.8.7-2012.02/source/distro/google-perftools-1.7/src/tcmalloc.cc 2012-07-05 13:34:17.677491684 +0200 @@ -1669,5 +1669,5 @@ MallocHook::InvokeNewHook(result, size); return result; -
padcom revised this gist
Jul 5, 2012 . 2 changed files with 11 additions and 0 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 @@ -30,6 +30,8 @@ cd ~/src wget -c http://rubyenterpriseedition.googlecode.com/files/ruby-enterprise-1.8.7-2012.02.tar.gz tar zxf ruby-enterprise-1.8.7-2012.02.tar.gz wget -c https://raw.github.com/gist/1122244/ruby-ee.patch patch -p0 < ruby-ee.patch sudo ruby-enterprise-1.8.7-2012.02/installer cd /opt sudo ln -s ruby-enterprise-1.8.7-2012.02/ ruby-enterprise 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,9 @@ --- src/ruby-enterprise-1.8.7-2012.02/source/distro/google-perftools-1.7/src/tcmalloc.cc 2012-02-19 15:09:11.000000000 +0100 +++ src/ruby-enterprise-1.8.7-2012.02/source/distro/google-perftools-1.7/src/tcmalloc.cc 2012-07-05 13:34:17.677491684 +0200 @@ -1669,5 +1669,5 @@ MallocHook::InvokeNewHook(result, size); return result; } -void *(*__memalign_hook)(size_t, size_t, const void *) = MemalignOverride; +void *(* volatile __memalign_hook)(size_t, size_t, const void *) = MemalignOverride; #endif // #ifndef TCMALLOC_FOR_DEBUGALLOCATION -
padcom revised this gist
Jul 5, 2012 . 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 @@ -8,7 +8,7 @@ MYSQL_ROOT_PASSWORD=password MYSQL_GITORIOUS_PASSWORD=password GITORIOUS_HOST=gitorious SYSADMIN=sysadmin SYSADMIN_EMAIL=git@$GITORIOUS_HOST SYSADMIN_PASSWORD=password #------------------------------------------------------------------------------ -
padcom revised this gist
Jul 5, 2012 . 1 changed file with 4 additions and 4 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 @@ -28,11 +28,11 @@ mkdir ~/src cd ~/src wget -c http://rubyenterpriseedition.googlecode.com/files/ruby-enterprise-1.8.7-2012.02.tar.gz tar zxf ruby-enterprise-1.8.7-2012.02.tar.gz sudo ruby-enterprise-1.8.7-2012.02/installer cd /opt sudo ln -s ruby-enterprise-1.8.7-2012.02/ ruby-enterprise sudo ln -s /opt/ruby-enterprise/bin/ruby /opt/ruby-enterprise/bin/rake /opt/ruby-enterprise/bin/gem /usr/local/bin sudo ln -s /opt/ruby-enterprise/bin/irb /usr/bin/irb -
padcom revised this gist
Jul 5, 2012 . 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 @@ -46,12 +46,12 @@ sudo ldconfig # MySQL echo "mysql-server-5.5 mysql-server/root_password password $MYSQL_ROOT_PASSWORD" | sudo debconf-set-selections echo "mysql-server-5.5 mysql-server/root_password_again password $MYSQL_ROOT_PASSWORD" | sudo debconf-set-selections echo "mysql-server-5.5 mysql-server/root_password seen true" | sudo debconf-set-selections echo "mysql-server-5.5 mysql-server/root_password_again seen true" | sudo debconf-set-selections sudo apt-get install -y mysql-client-5.5 mysql-server-5.5 libmysqlclient-dev mysql -u root --password=$MYSQL_ROOT_PASSWORD -e "CREATE DATABASE gitorious" mysql -u root --password=$MYSQL_ROOT_PASSWORD -e "CREATE USER 'gitorious'@'localhost' IDENTIFIED BY '$MYSQL_GITORIOUS_PASSWORD'" mysql -u root --password=$MYSQL_ROOT_PASSWORD -e "GRANT ALL PRIVILEGES ON gitorious.* TO 'gitorious'@'localhost'" -
padcom revised this gist
Jul 5, 2012 . 1 changed file with 2 additions and 2 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 @@ -28,7 +28,7 @@ mkdir ~/src cd ~/src wget -c http://rubyenterpriseedition.googlecode.com/files/ruby-enterprise-1.8.7-2011.03.tar.gz tar zxf ruby-enterprise-1.8.7-2011.03.tar.gz sudo ruby-enterprise-1.8.7-2011.03/installer cd /opt @@ -59,7 +59,7 @@ mysql -u root --password=$MYSQL_ROOT_PASSWORD -e "GRANT ALL PRIVILEGES ON gitori # Sphinx cd ~/src wget -c http://sphinxsearch.com/files/sphinx-0.9.9.tar.gz tar zxf sphinx-0.9.9.tar.gz cd sphinx-0.9.9 ./configure -
padcom revised this gist
Jul 5, 2012 . 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 @@ -18,7 +18,7 @@ SYSADMIN_PASSWORD=password # Binary packages sudo apt-get update sudo apt-get install build-essential zlib1g-dev libcurl4-openssl-dev apache2 apg geoip-bin libgeoip1 libgeoip-dev libpcre3 libpcre3-dev zlib1g zlib1g-dev libyaml-dev apache2-dev libonig-dev zip unzip memcached git-core git-svn git-doc git-cvs libreadline-dev sqlite3 libsqlite3-dev libmagick++4 libmagick++-dev libapache2-mod-xsendfile libxslt-dev libxml2-dev uuid uuid-dev imagemagick # Packages built from sources -
padcom revised this gist
Feb 3, 2012 . 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 @@ -18,7 +18,7 @@ SYSADMIN_PASSWORD=password # Binary packages sudo apt-get update sudo apt-get install build-essential zlib1g-dev libcurl4-openssl-dev apache2 apg geoip-bin libgeoip1 libgeoip-dev libpcre3 libpcre3-dev zlib1g zlib1g-dev libyaml-dev apache2-dev libonig-dev zip unzip memcached git-core git-svn git-doc git-cvs libreadline-dev sqlite3 libsqlite3-dev libmagick++3 libmagick++-dev libapache2-mod-xsendfile libxslt-dev libxml2-dev uuid uuid-dev imagemagick # Packages built from sources -
padcom revised this gist
Feb 3, 2012 . 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 @@ -133,7 +133,7 @@ sudo su git -c "echo 'export PATH=\$RUBY_HOME/bin:\$PATH' >> .bashrc" cd /var/www/gitorious sudo cat > config/broker.yml << EOF production: adapter: stomp EOF -
padcom revised this gist
Feb 3, 2012 . No changes.There are no files selected for viewing
-
padcom revised this gist
Feb 3, 2012 . 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 @@ -77,7 +77,7 @@ sudo usermod -a -G gitorious $SYSADMIN # Cloning gitorious project sudo git clone https://git.gitorious.org/gitorious/mainline.git /var/www/gitorious sudo chown -R $SYSADMIN:gitorious /var/www/gitorious sudo chmod -R g+sw /var/www/gitorious -
padcom revised this gist
Feb 2, 2012 . No changes.There are no files selected for viewing
-
padcom revised this gist
Feb 2, 2012 . 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 @@ -1,4 +1,4 @@ #!/bin/bash #------------------------------------------------------------------------------ # SETTINGS -
padcom revised this gist
Feb 2, 2012 . 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 @@ -165,7 +165,7 @@ production: archive_cache_dir: "/srv/git/tarballs" archive_work_dir: "/srv/git/tarballs-work" only_site_admins_can_create_projects: true hide_http_clone_urls: true is_gitorious_dot_org: false use_ssl: false EOF -
padcom revised this gist
Feb 2, 2012 . 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 @@ -8,7 +8,7 @@ MYSQL_ROOT_PASSWORD=password MYSQL_GITORIOUS_PASSWORD=password GITORIOUS_HOST=gitorious SYSADMIN=sysadmin SYSADMIN_EMAIL=[email protected] SYSADMIN_PASSWORD=password #------------------------------------------------------------------------------ -
padcom revised this gist
Feb 2, 2012 . 1 changed file with 5 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 @@ -203,12 +203,13 @@ sudo /etc/init.d/git-poller start sudo gem install --no-ri --no-rdoc passenger --version 3.0.11 sudo /opt/ruby-enterprise/bin/passenger-install-apache2-module cat > passenger.load << EOF LoadModule passenger_module /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-3.0.11/ext/apache2/mod_passenger.so PassengerRoot /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-3.0.11 PassengerRuby /opt/ruby-enterprise/bin/ruby EOF sudo mv passenger.load /etc/apache2/mods-available/ sudo a2enmod passenger sudo a2enmod rewrite sudo a2enmod deflate @@ -259,3 +260,6 @@ sudo a2dissite default-ssl sudo invoke-rc.d apache2 restart sudo chmod g-w /var/www/gitorious sudo chown -R git:gitorious /var/www/gitorious -
padcom revised this gist
Feb 2, 2012 . 1 changed file with 2 additions and 4 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 @@ -116,6 +116,7 @@ sudo bundle install --path vendor/cache sudo adduser --system --home /var/www/gitorious/ --no-create-home --shell /bin/bash git sudo usermod -a -G gitorious git sudo mkdir /srv/git sudo ln -s /srv/git /var/git sudo mkdir /srv/git/repositories sudo mkdir /srv/git/tarballs sudo mkdir /srv/git/tarballs-work @@ -192,7 +193,6 @@ sudo chmod -R g+w config/environment.rb script/poller log tmp sudo chmod ug+x script/poller sudo chmod g-w /var/www/gitorious sudo gem install stompserver sudo ln -s /opt/ruby-enterprise/bin/stompserver /usr/bin/stompserver sudo /etc/init.d/stomp start @@ -203,14 +203,12 @@ sudo /etc/init.d/git-poller start sudo gem install --no-ri --no-rdoc passenger --version 3.0.11 sudo /opt/ruby-enterprise/bin/passenger-install-apache2-module sudo cat > /etc/apache2/mods-available/passenger.load << EOF LoadModule passenger_module /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-3.0.11/ext/apache2/mod_passenger.so PassengerRoot /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-3.0.11 PassengerRuby /opt/ruby-enterprise/bin/ruby EOF sudo a2enmod passenger sudo a2enmod rewrite sudo a2enmod deflate -
padcom revised this gist
Feb 2, 2012 . 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 @@ -105,7 +105,7 @@ sudo update-rc.d -f git-poller start 99 2 3 4 5 . sudo update-rc.d -f stomp start 99 2 3 4 5 . sudo gem install --no-ri --no-rdoc bundler sudo ln -s /opt/ruby-enterprise/bin/bundle /usr/bin/bundle cd /var/www/gitorious sudo bundle install -
padcom revised this gist
Feb 2, 2012 . 1 changed file with 2 additions and 2 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 @@ -6,10 +6,10 @@ MYSQL_ROOT_PASSWORD=password MYSQL_GITORIOUS_PASSWORD=password GITORIOUS_HOST=gitorious SYSADMIN=sysadmin [email protected] SYSADMIN_PASSWORD=password #------------------------------------------------------------------------------ # INSTALLATION STARTS HERE -
padcom revised this gist
Feb 2, 2012 . 1 changed file with 1 addition and 17 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 @@ -10,7 +10,6 @@ GITORIOUS_HOST=gitorious.aplaline.com SYSADMIN=sysadmin [email protected] SYSADMIN_PASSWORD=qwe123 #------------------------------------------------------------------------------ # INSTALLATION STARTS HERE @@ -19,7 +18,7 @@ SYSADMIN_PASSWORD=qwe123 # Binary packages sudo apt-get update sudo apt-get install build-essential zlib1g-dev libcurl4-openssl-dev apache2 apg geoip-bin libgeoip1 libgeoip-dev libpcre3 libpcre3-dev zlib1g zlib1g-dev libyaml-dev apache2-dev libonig-dev zip unzip memcached git-core git-svn git-doc git-cvs libreadline-dev sqlite3 libsqlite3-dev libmagick++3 libmagick++-dev libapache2-mod-xsendfile libxslt-dev libxml2-dev uuid uuid-dev # Packages built from sources @@ -67,21 +66,6 @@ cd sphinx-0.9.9 make sudo make install # Memcached sudo update-rc.d memcached defaults -
padcom revised this gist
Feb 2, 2012 . 1 changed file with 1 addition and 2 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 @@ -19,7 +19,7 @@ SYSADMIN_PASSWORD=qwe123 # Binary packages sudo apt-get update sudo apt-get install build-essential zlib1g-dev libcurl4-openssl-dev apache2 apg geoip-bin libgeoip1 libgeoip-dev libpcre3 libpcre3-dev zlib1g zlib1g-dev libyaml-dev apache2-dev libonig-dev zip unzip memcached git-core git-svn git-doc git-cvs libreadline-dev sqlite3 libsqlite3-dev libmagick++3 libmagick++-dev libapache2-mod-xsendfile libxslt-dev libxml2-dev uuid uuid-dev openjdk-6-jre # Packages built from sources @@ -42,7 +42,6 @@ sudo sed -e '$ a\export LD_LIBRARY_PATH=\"\/usr\/local\/lib\"' -i /etc/profile sudo sed -e '$ a\export LDFLAGS=\"-L\/usr\/local\/lib -Wl,-rpath,\/usr\/local\/lib\"' -i /etc/profile sudo sed -e '1 i\\/usr\/local\/lib' -i /etc/ld.so.conf source /etc/profile sudo ldconfig -
padcom revised this gist
Feb 2, 2012 . 1 changed file with 2 additions and 0 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 @@ -207,6 +207,7 @@ cd /var/www/gitorious sudo chown -R git:gitorious config/environment.rb script/poller log tmp sudo chmod -R g+w config/environment.rb script/poller log tmp sudo chmod ug+x script/poller sudo chmod g-w /var/www/gitorious #sudo /etc/init.d/activemq start sudo gem install stompserver @@ -276,3 +277,4 @@ sudo a2dissite default sudo a2dissite default-ssl sudo invoke-rc.d apache2 restart -
padcom revised this gist
Feb 2, 2012 . 1 changed file with 2 additions and 0 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 @@ -100,6 +100,8 @@ sudo chmod -R g+sw /var/www/gitorious sudo ln -s /var/www/gitorious/script/gitorious /usr/local/bin/gitorious cd /var/www/gitorious/ git submodule init git submodule update mv public/.htaccess public/.htaccess-DISABLED mkdir -p tmp/pids sudo chmod ug+x script/* -
padcom revised this gist
Feb 2, 2012 . 1 changed file with 8 additions and 3 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 @@ -206,14 +206,16 @@ sudo chown -R git:gitorious config/environment.rb script/poller log tmp sudo chmod -R g+w config/environment.rb script/poller log tmp sudo chmod ug+x script/poller #sudo /etc/init.d/activemq start sudo gem install stompserver sudo ln -s /opt/ruby-enterprise/bin/stompserver /usr/bin/stompserver sudo /etc/init.d/stomp start sudo env RAILS_ENV=production /etc/init.d/git-daemon start sudo /etc/init.d/git-poller start sudo gem install --no-ri --no-rdoc passenger --version 3.0.11 sudo /opt/ruby-enterprise/bin/passenger-install-apache2-module cd ~/src cat > passenger.load << EOF @@ -268,4 +270,7 @@ EOF sudo mv gitorious /etc/apache2/sites-available/ sudo a2ensite gitorious sudo a2dissite default sudo a2dissite default-ssl sudo invoke-rc.d apache2 restart -
padcom revised this gist
Feb 2, 2012 . 1 changed file with 9 additions and 4 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 @@ -35,6 +35,7 @@ sudo ruby-enterprise-1.8.7-2011.03/installer cd /opt sudo ln -s ruby-enterprise-1.8.7-2011.03/ ruby-enterprise sudo ln -s /opt/ruby-enterprise/bin/ruby /opt/ruby-enterprise/bin/rake /opt/ruby-enterprise/bin/gem /usr/local/bin sudo ln -s /opt/ruby-enterprise/bin/irb /usr/bin/irb sudo sed -e '$ a\export PATH=\/opt\/ruby-enterprise\/bin:$PATH' -i /etc/profile sudo sed -e '$ a\export LD_LIBRARY_PATH=\"\/usr\/local\/lib\"' -i /etc/profile @@ -119,8 +120,12 @@ sudo update-rc.d -f git-poller start 99 2 3 4 5 . sudo update-rc.d -f stomp start 99 2 3 4 5 . sudo gem install --no-ri --no-rdoc bundler sudo ln -s /opt/ruby-enterprise/bin/bundle cd /var/www/gitorious sudo bundle install sudo bundle pack sudo bundle install --path vendor/cache #sudo adduser git sudo adduser --system --home /var/www/gitorious/ --no-create-home --shell /bin/bash git @@ -159,7 +164,7 @@ EOF cat > config/gitorious.yml << EOF production: cookie_secret: `< /dev/urandom tr -dc A-Za-z0-9 | head -c64` repository_base_path: "/srv/git/repositories" extra_html_head_data: system_message: @@ -179,7 +184,7 @@ production: use_ssl: false EOF RAILS_ENV=production rake _0.8.7_ db:migrate cat | RAILS_ENV=production script/create_admin << EOF $SYSADMIN_EMAIL @@ -194,7 +199,7 @@ user.accept_terms user.save EOF RAILS_ENV=production rake _0.8.7_ ultrasphinx:bootstrap cd /var/www/gitorious sudo chown -R git:gitorious config/environment.rb script/poller log tmp @@ -207,7 +212,7 @@ sudo env RAILS_ENV=production /etc/init.d/git-daemon start sudo /etc/init.d/git-poller start sudo gem install --no-ri --no-rdoc passenger --version 3.0.11 sudo passenger-install-apache2-module cd ~/src -
padcom revised this gist
Feb 2, 2012 . 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 @@ -10,7 +10,7 @@ GITORIOUS_HOST=gitorious.aplaline.com SYSADMIN=sysadmin [email protected] SYSADMIN_PASSWORD=qwe123 #ACTIVEMQ_ARCHITECTIRE=x86-32 #------------------------------------------------------------------------------ # INSTALLATION STARTS HERE -
padcom revised this gist
Feb 2, 2012 . 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 @@ -31,7 +31,7 @@ cd ~/src wget http://rubyenterpriseedition.googlecode.com/files/ruby-enterprise-1.8.7-2011.03.tar.gz tar zxf ruby-enterprise-1.8.7-2011.03.tar.gz sudo ruby-enterprise-1.8.7-2011.03/installer cd /opt sudo ln -s ruby-enterprise-1.8.7-2011.03/ ruby-enterprise sudo ln -s /opt/ruby-enterprise/bin/ruby /opt/ruby-enterprise/bin/rake /opt/ruby-enterprise/bin/gem /usr/local/bin -
padcom revised this gist
Feb 2, 2012 . 1 changed file with 13 additions and 13 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 @@ -69,18 +69,18 @@ sudo make install # ActiveMQ #cd ~/src #wget http://www.idg.pl/mirrors/apache//activemq/apache-activemq/5.5.1/apache-activemq-5.5.1-bin.tar.gz #sudo tar xzvf apache-activemq-5.5.1-bin.tar.gz -C /usr/local/ #sudo sed "s/transportConnector name=\"openwire\" uri=\"tcp:\/\/0.0.0.0:61616\"/transportConnector name=\"stomp\" #uri=\"stomp:\/\/0.0.0.0:61613\"/" -i /usr/local/apache-activemq-5.5.1/conf/activemq.xml #sudo sh -c 'echo "export ACTIVEMQ_HOME=/usr/local/apache-activemq-5.5.1" >> /etc/activemq.conf' #sudo sh -c 'echo "export JAVA_HOME=/usr/" >> /etc/activemq.conf' #sudo adduser --system --no-create-home activemq #sudo chown -R activemq /usr/local/apache-activemq-5.5.1/data #cd ~/src #sudo ln -s /usr/local/apache-activemq-5.5.1/bin/linux-$ACTIVEMQ_ARCHITECTURE/activemq /etc/init.d/activemq #sudo update-rc.d activemq defaults # Memcached @@ -207,7 +207,7 @@ sudo env RAILS_ENV=production /etc/init.d/git-daemon start sudo /etc/init.d/git-poller start sudo gem --no-ri --no-rdoc install passenger --version 3.0.11 sudo passenger-install-apache2-module cd ~/src -
padcom revised this gist
Feb 2, 2012 . 1 changed file with 51 additions and 49 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 @@ -10,19 +10,32 @@ GITORIOUS_HOST=gitorious.aplaline.com SYSADMIN=sysadmin [email protected] SYSADMIN_PASSWORD=qwe123 ACTIVEMQ_ARCHITECTIRE=x86-32 #------------------------------------------------------------------------------ # INSTALLATION STARTS HERE #------------------------------------------------------------------------------ # Binary packages sudo apt-get update sudo apt-get install vim build-essential zlib1g-dev libcurl4-openssl-dev apache2 apg geoip-bin libgeoip1 libgeoip-dev libpcre3 libpcre3-dev zlib1g zlib1g-dev libyaml-dev apache2-dev libonig-dev zip unzip memcached git-core git-svn git-doc git-cvs libreadline-dev sqlite3 libsqlite3-dev libmagick++3 libmagick++-dev libapache2-mod-xsendfile libxslt-dev libxml2-dev uuid uuid-dev openjdk-6-jre # Packages built from sources mkdir ~/src # Ruby Enterprise cd ~/src wget http://rubyenterpriseedition.googlecode.com/files/ruby-enterprise-1.8.7-2011.03.tar.gz tar zxf ruby-enterprise-1.8.7-2011.03.tar.gz ruby-enterprise-1.8.7-2011.03/installer cd /opt sudo ln -s ruby-enterprise-1.8.7-2011.03/ ruby-enterprise sudo ln -s /opt/ruby-enterprise/bin/ruby /opt/ruby-enterprise/bin/rake /opt/ruby-enterprise/bin/gem /usr/local/bin sudo sed -e '$ a\export PATH=\/opt\/ruby-enterprise\/bin:$PATH' -i /etc/profile sudo sed -e '$ a\export LD_LIBRARY_PATH=\"\/usr\/local\/lib\"' -i /etc/profile sudo sed -e '$ a\export LDFLAGS=\"-L\/usr\/local\/lib -Wl,-rpath,\/usr\/local\/lib\"' -i /etc/profile @@ -32,8 +45,7 @@ sudo su source /etc/profile sudo ldconfig # MySQL echo "mysql-server-5.1 mysql-server/root_password password $MYSQL_ROOT_PASSWORD" | sudo debconf-set-selections echo "mysql-server-5.1 mysql-server/root_password_again password $MYSQL_ROOT_PASSWORD" | sudo debconf-set-selections @@ -45,6 +57,7 @@ mysql -u root --password=$MYSQL_ROOT_PASSWORD -e "CREATE DATABASE gitorious" mysql -u root --password=$MYSQL_ROOT_PASSWORD -e "CREATE USER 'gitorious'@'localhost' IDENTIFIED BY '$MYSQL_GITORIOUS_PASSWORD'" mysql -u root --password=$MYSQL_ROOT_PASSWORD -e "GRANT ALL PRIVILEGES ON gitorious.* TO 'gitorious'@'localhost'" # Sphinx cd ~/src wget http://sphinxsearch.com/files/sphinx-0.9.9.tar.gz @@ -54,28 +67,32 @@ cd sphinx-0.9.9 make sudo make install # ActiveMQ cd ~/src wget http://www.idg.pl/mirrors/apache//activemq/apache-activemq/5.5.1/apache-activemq-5.5.1-bin.tar.gz sudo tar xzvf apache-activemq-5.5.1-bin.tar.gz -C /usr/local/ sudo sed "s/transportConnector name=\"openwire\" uri=\"tcp:\/\/0.0.0.0:61616\"/transportConnector name=\"stomp\" uri=\"stomp:\/\/0.0.0.0:61613\"/" -i /usr/local/apache-activemq-5.5.1/conf/activemq.xml sudo sh -c 'echo "export ACTIVEMQ_HOME=/usr/local/apache-activemq-5.5.1" >> /etc/activemq.conf' sudo sh -c 'echo "export JAVA_HOME=/usr/" >> /etc/activemq.conf' sudo adduser --system --no-create-home activemq sudo chown -R activemq /usr/local/apache-activemq-5.5.1/data cd ~/src sudo ln -s /usr/local/apache-activemq-5.5.1/bin/linux-$ACTIVEMQ_ARCHITECTURE/activemq /etc/init.d/activemq sudo update-rc.d activemq defaults # Memcached sudo update-rc.d memcached defaults # Adding gitorious group sudo groupadd gitorious sudo usermod -a -G gitorious $SYSADMIN # Cloning gitorious project sudo git clone git://gitorious.org/gitorious/mainline.git /var/www/gitorious sudo chown -R $SYSADMIN:gitorious /var/www/gitorious sudo chmod -R g+sw /var/www/gitorious @@ -89,11 +106,17 @@ sudo chmod -R g+w config/ log/ public/ tmp/ sudo ln -s /var/www/gitorious/doc/templates/ubuntu/git-ultrasphinx /etc/init.d/git-ultrasphinx sudo ln -s /var/www/gitorious/doc/templates/ubuntu/git-daemon /etc/init.d/git-daemon sudo ln -s /var/www/gitorious/doc/templates/ubuntu/git-poller /etc/init.d/git-poller sudo ln -s /var/www/gitorious/doc/templates/ubuntu/stomp /etc/init.d/stomp sudo chmod +x /etc/init.d/git-ultrasphinx sudo chmod +x /etc/init.d/git-daemon sudo chmod +x /etc/init.d/git-poller sudo chmod +x /etc/init.d/stomp sudo update-rc.d -f git-daemon start 99 2 3 4 5 . sudo update-rc.d -f git-ultrasphinx start 99 2 3 4 5 . sudo update-rc.d -f git-poller start 99 2 3 4 5 . sudo update-rc.d -f stomp start 99 2 3 4 5 . sudo gem install --no-ri --no-rdoc bundler cd /var/www/gitorious @@ -102,18 +125,18 @@ sudo bundle install #sudo adduser git sudo adduser --system --home /var/www/gitorious/ --no-create-home --shell /bin/bash git sudo usermod -a -G gitorious git sudo mkdir /srv/git sudo mkdir /srv/git/repositories sudo mkdir /srv/git/tarballs sudo mkdir /srv/git/tarballs-work sudo chown -R git:gitorious /srv/git sudo su git -c "mkdir ~/.ssh" sudo su git -c "chmod 700 ~/.ssh" sudo su git -c "touch ~/.ssh/authorized_keys" sudo su git -c "touch .bashrc" sudo su git -c "echo 'export RUBY_HOME=/opt/ruby-enterprise' >> .bashrc" sudo su git -c "echo 'export GEM_HOME=\$RUBY_HOME/lib/ruby/gems/1.8/gems' >> .bashrc" sudo su git -c "echo 'export PATH=\$RUBY_HOME/bin:\$PATH' >> .bashrc" @@ -136,8 +159,8 @@ EOF cat > config/gitorious.yml << EOF production: cookie_secret: < `/dev/urandom tr -dc A-Za-z0-9 | head -c64` repository_base_path: "/srv/git/repositories" extra_html_head_data: system_message: gitorious_client_port: 80 @@ -148,8 +171,8 @@ production: mangle_email_addresses: true public_mode: false locale: en archive_cache_dir: "/srv/git/tarballs" archive_work_dir: "/srv/git/tarballs-work" only_site_admins_can_create_projects: true hide_http_clone_urls: false is_gitorious_dot_org: false @@ -180,39 +203,18 @@ sudo chmod ug+x script/poller sudo /etc/init.d/activemq start sudo env RAILS_ENV=production /etc/init.d/git-daemon start sudo /etc/init.d/git-poller start sudo gem --no-ri --no-rdoc install passenger sudo passenger-install-apache2-module cd ~/src cat > passenger.load << EOF LoadModule passenger_module /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-3.0.11/ext/apache2/mod_passenger.so PassengerRoot /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-3.0.11 PassengerRuby /opt/ruby-enterprise/bin/ruby EOF sudo mv passenger.load /etc/apache2/mods-available/ -
padcom revised this gist
Aug 3, 2011 . 1 changed file with 2 additions and 2 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 @@ -4,8 +4,8 @@ # SETTINGS #------------------------------------------------------------------------------ MYSQL_ROOT_PASSWORD=password MYSQL_GITORIOUS_PASSWORD=password GITORIOUS_HOST=gitorious.aplaline.com SYSADMIN=sysadmin [email protected]
NewerOlder