Created
August 13, 2012 20:05
-
-
Save jbrown/3343750 to your computer and use it in GitHub Desktop.
Installing git from source on Redhat
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
# Usage: curl -kL https://raw.github.com/gist/3343750/HASH/install.sh | bash | |
# git dependencies | |
yum install -y curl-devel expat-devel gettext-devel openssl-devel zlib-devel | |
# so we can compile git | |
yum install -y gcc gcc-c++ | |
# now download git from github | |
# https://github.com/git/git/downloads | |
curl -Lk https://github.com/git/git/tarball/v1.7.12-rc2 > git-1.7.12-rc2.tgz | |
tar xzvf git-1.7.12-rc2.tgz | |
cd git-git-2a13db6/ | |
make prefix=/usr/local all | |
sudo make prefix=/usr/local install |
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
ln -s /opt/skarven/todo/current/public /var/www/html/todo |
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
# assumes ssh/config connecting at e3 | |
cap git:create_repo | |
# prompts for project name | |
# Enter project name: foobar | |
# creates repo on icis at /home/e3/repos/foobar.git | |
git clone icis:repos/foobar.git |
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
#to download the cert | |
wget http://curl.haxx.se/ca/cacert.pem | |
#to let curl use it for the next calls | |
export CURL_CA_BUNDLE=~/cacert.pem | |
curl -L https://get.rvm.io | bash -s stable --ruby |
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
# on fw | |
# /etc/squid/spray.conf | |
0 /todo http://ui0.example.com:80/todo |
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
# /opt/skarven/etc/httpd/conf.d/todo.conf | |
RackBaseURI /todo | |
<Directory /var/www/html/todo> | |
Options -MultiViews FollowSymlinks | |
</Directory> | |
<Directory /opt/skarven/todo/public> | |
Options -MultiViews | |
Allow from * | |
</Directory> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment