mattpolito (owner)

Fork Of

Revisions

gist: 76232 Download_button fork
public
Public Clone URL: git://gist.github.com/76232.git
Embed All Files: show embed
Dreamhost gitosis install.sh #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# 1. Create dirs for unpacking your source code and installing your apps
mkdir $HOME/src
mkdir $HOME/apps
 
# 2. Install the latest version of git
cd $HOME/src
wget http://kernel.org/pub/software/scm/git/git-1.6.2.tar.gz
tar zxvf git-1.6.2.tar.gz
cd git-1.6.2
./configure --prefix=$HOME/apps NO_MMAP=1
make && make install
 
# 3. Create dir for local python modules
mkdir -p $HOME/apps/lib/python2.4/site-packages
export PYTHONPATH=$HOME/apps/lib/python2.4/site-packages
 
# 4. Install setuptools python module
cd $HOME/src
wget http://peak.telecommunity.com/dist/ez_setup.py
python2.4 ez_setup.py --prefix=$HOME/apps
 
# 5. Install gitosis
cd $HOME/src
git clone git://eagain.net/gitosis.git
cd gitosis
python2.4 setup.py install --prefix=$HOME/apps
 
# 6. Add new paths to shell environment
echo 'export PATH=$HOME/apps:$PATH' >> $HOME/.bashrc
echo 'export PATH=$HOME/apps:$PATH' >> $HOME/.bash_profile
echo 'export PYTHONPATH=$HOME/apps/lib/python2.4/site-packages' >> $HOME/.bashrc
echo 'export PYTHONPATH=$HOME/apps/lib/python2.4/site-packages' >> $HOME/.bash_profile
. ~/.bash_profile
 
# 7. Paste your public SSH key into a temporary file on your server. I'll assume it to be '$HOME/id_rsa.pub'
 
# 8. Initialise gitosis with your public key
gitosis-init < $HOME/id_rsa.pub