Skip to content

Instantly share code, notes, and snippets.

@vongrippen
Created January 18, 2011 23:02
Show Gist options
  • Save vongrippen/785337 to your computer and use it in GitHub Desktop.
Save vongrippen/785337 to your computer and use it in GitHub Desktop.
Public Dreamhost Gitosis Setup
mkdir -p $HOME/lib/python2.5/site-packages; export PYTHONPATH=$HOME/lib/python2.5/site-packages
mkdir ~/src; cd ~/src
git clone git://eagain.net/gitosis.git
cd gitosis
python setup.py install --prefix=$HOME
echo "export PYTHONPATH=$HOME/lib/python2.5/site-packages/" >> .bashrc
echo "export PYTHONPATH=$HOME/lib/python2.5/site-packages/" >> .bash_profile
echo "export PATH=$HOME/bin:$PATH" >> .bashrc
echo "export PATH=$HOME/bin:$PATH" >> .bash_profile
if [ ! -e ~/.ssh/id_rsa.pub ]
then
mkdir -p ~/.ssh
ssh-keygen -N "" -q -f ~/.ssh/id_rsa
fi
. ~/.bash_profile; gitosis-init < ~/.ssh/id_rsa.pub
chmod 750 $HOME/repositories/gitosis-admin.git/hooks/post-update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment