The office doc almost cover every aspect of instaling.So I'm not going to write down everything,only problem and solution.
offical doc url: http://github.com/gitlabhq/gitlabhq/blob/master/doc/install/installation.md
problem 1: when install the dependences,kali echo:Unable to locate package nodejs
So the answer lise in :http://stackoverflow.com/questions/18584035/installing-nodejs-on-debian-6
now,the download url of nodejs is :http://nodejs.org/dist/v0.12.0/node-v0.12.0.tar.gz
problem 2:when I install the ruby gem,I find that kali use the ruby,1.9 not the ruby 2.0/2.1, i just reinstall It as the gitlab doc ,not know whether this will cause problem,I don't care after all.
problem 3:kali install both postgresql and mysql,but postgresql service didn't start ,So just start it wehn u ru nthe order,but in this ,I forget to install libpq-dev,so just fllow the doc.
problem 4:git is in /usr/bin,don't change it to /usr/local/bin/git.
problem 5:remember to change the ruby source into http://ruby.taobao.org
that's all I can remember now.
well,I suddenly find anather problem ,If u install gitlab with the config :host localhost,then after u finish ,U will find that when pushing or cloning some projects,It will inform U:
Cloning into 'your project name'...
fatal: protocol error: bad line length character: API
solution to that :
#type this
cd /home/git/gitlab
#change the host into you local IP,or you internet domain
vim config/gitlab.yml
#after change that,cd to the gitlab-shell
cd /home/git/gitlab-shell
#change the http://localhost/ into http://your ip/your domain/
vim config.yml
#then u can restart gitlab, redis-server,nginx the problem solved.
good luck