As requested, i’m going to explain how to install Gitosis on Dreamhost (i assume you are Git fan, and you know something about Gitosis).
Requirements: a Dreamhost (shared hosting) dedicated user with SSH access. (create it using Dreamhost control panel). I created an user called “gitdemo” for this tutorial.
Let’s start connecting to your user account and check Git version:
lussuria:~ marco$ ssh gitdemo@marcoborromeo.com
gitdemo@marcoborromeo.com’s password:
<…>
[moran]$ git –version
git version 1.5.6.5
Update Git to latest stable version:
[moran]$ cd && mkdir src && cd src
[moran]$ wget http://kernel.org/pub/software/scm/git/git-1.6.1.3.tar.gz
[moran]$ tar xzf git-1.6.1.3.tar.gz && cd git-1.6.1.3
[moran]$ ./configure –prefix=$HOME NO_MMAP=1
[moran]$ make && make install
Install Gitosis
[moran]$ cd && cd src
[moran]$ git clone git://eagain.net/gitosis.git
[moran]$ cd gitosis/
[moran]$ mkdir -p $HOME/lib/python2.4/site-packages
[moran]$ export PYTHONPATH=$HOME/lib/python2.4/site-packages
[moran]$ python setup.py install –prefix=$HOME
[moran]$ cd
Setup some environment variables:
[moran]$ cd
[moran]$ echo “export PYTHONPATH=$HOME/lib/python2.4/site-packages/” >> .bashrc
[moran]$ echo “export PYTHONPATH=$HOME/lib/python2.4/site-packages/” >> .bash_profile
[moran]$ echo “export PATH=$HOME/bin:$PATH” >> .bashrc
[moran]$ echo “export PATH=$HOME/bin:$PATH” >> .bash_profile
[moran]$ . ~/.bash_profile
You have now installed Git and Gitosis on your
Dreamhost shared hosting account.
To finish installation of Gitosis, create a temporary directory, copy into there you public key, and initialize Gitosis
[moran]$ cd && mkdir tmp
<copy/paste your public key into tmp/id_rsa.pub>
[moran]$ gitosis-init < tmp/id_rsa.pub
PLEASE NOTE: Gitosis, by default, closes you out from SSH access; to re-gain access to your user account used to host Gitosis, reconnect to Dreamhost server with an other user account, and become the Gitosis user using “su” command.
LOOKING FOR DREAMHOST PROMO CODES?
Get a $30.00 discount for yearly registrations and $15.00 for monthly ones using “DHGITOSIS” promo code!
Marco Borromeo on February 14th 2009 in Generic