Skip to content

Instantly share code, notes, and snippets.

View nachtsheim's full-sized avatar

Stephan Nachtsheim nachtsheim

  • iMi digital GmbH
  • Heidesheim
View GitHub Profile
@nachtsheim
nachtsheim / gitlab.sh
Last active August 29, 2015 13:57 — forked from cristianrasch/gitlab.sh
Updated for compatibility with Debian Wheezy 7.4
aptitude install -y git curl python-dev python-pip redis-server ruby1.9.1-full rubygems1.9.1 libxml2 libxml2-dev libxslt-dev libpq-dev
aptitude install -y mysql-server libmysqlclient-dev
adduser --system --shell /bin/sh --gecos 'git version control' --group --disabled-password --home /home/git git
adduser --disabled-login --gecos 'gitlab system' gitlab
usermod -a -G git gitlab
su - gitlab
ssh-keygen -q -N '' -t rsa -f /home/gitlab/.ssh/id_rsa
aptitude install gitolite
cp /home/gitlab/.ssh/id_rsa.pub /home/git/gitlab.pub
su - git