Installation Guide for Debian Squeeze
Created by: fny
There might be a few dependencies I'm forgetting... but otherwise this worked perfectly. :)
1. Setup sudo
su
apt-get install sudo
# Run visudo to check for '%sudo ALL=(ALL) ALL'
usermod -a -G sudo [username]
exit
2. Install ruby 1.9.2-p290 as a self-built package
sudo apt-get install -y wget curl gcc checkinstall libxml2-dev libxslt-dev sqlite3 libsqlite3-dev libcurl4-openssl-dev libc6-dev libssl-dev libmysql++-dev make build-essential zlib1g-dev autoconf readline-common openssl
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz
tar xfvz ruby-1.9.2-p290.tar.gz
cd ruby-1.9.2-p290
autoconf
./configure --prefix=/usr/local --with-openssl-dir=/usr --with-readline-dir=/usr --with-zlib-dir=/usr
make
sudo checkinstall -D make install
Answer the prompts as you find fit.
Verify that the correct version of Ruby is installed ruby --version
You can uninstall ruby easily with dpkg -r ruby-1.9.2
3. Install Gitolite
Generate an ssh key: ssh-keygen -t rsa
Then follow given gitolite installation directions.
4. Install Packages for gitlabhq
sudo apt-get install python-dev python-pip sendmail-bin sendmail redis-server libicu-dev
sudo pip install pygments
sudo gem install bundler
The default sendmail.mc file in Squeeze may causes error when generating a configuration file during sendmail
installation. Pay attention to the output during the install. If you do see an error, replace /etc/mail/sendmail.mc with this gist and run sudo sendmailconfig
as necessary.
5. Install gitlabhq
Follow steps 4-7 on the gitlabhq Ubuntu installation wiki
Create a new project, say yes at the prompt; and we have a winner. :)