-
Notifications
You must be signed in to change notification settings - Fork 0
V1.2 easy setup for ubuntu
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo useradd gitlabhq -m
sudo passwd gitlabhq
sudo adduser gitlabhq admin
When prompted to accept the authenticity of the RSA key fingerprint type yes
ssh gitlabhq@localhost
sudo aptitude install git-core curl gcc libxml2-dev libxslt-dev sqlite3 libsqlite3-dev libcurl4-openssl-dev libreadline5-dev libc6-dev libssl-dev libmysql++-dev make build-essential zlib1g-dev python-dev python-setuptools postfix gitosis -y
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz
tar zxvf ruby-1.9.2-p290.tar.gz
cd ruby-1.9.2-p290
./configure
make
sudo make install
cd ~
ruby --version
sudo gem update --system
echo "gem: --no-rdoc --no-ri" > ~/.gemrc
sudo aptitude install gitosis -y
sudo adduser --system --shell /bin/sh --gecos 'git version control' --group --disabled-password --home /home/git git
sudo usermod -a -G git gitlabhq
When prompted for the file in which to save the file, press Enter When prompted for a passphrase, press Enter When prompted to confirm the passphrase again, press Enter
ssh-keygen -t rsa
Now run the gitosis-init command as the newly created git user account and give it the gitlabhq users public key we just created
sudo -H -u git gitosis-init < ~/.ssh/id_rsa.pub
sudo cp /home/gitlabhq/.ssh/id_rsa.pub /home/git/.ssh/id_rsa.pub
We need to change the permissions on the gitosis admin repo hook
sudo chmod 755 /home/git/repositories/gitosis-admin.git/hooks/post-update
sudo gem install rails
cd ~
git clone git://github.com/gitlabhq/gitlabhq.git
cd gitlabhq/
nano Rakefile
To prevent the Rake::DSL error, add the following two lines right after the last comment. Use Control + X, then Y to save and exit
require 'rake/dsl_definition'
require 'rake'
sudo easy_install pygments
sudo gem install bundler
sudo bundle install
Now connect to your localhost again and accept the fingerprint When prompted authenticate the RSA key fingerprint, type yes
ssh localhost
exit
bundle exec rake db:setup RAILS_ENV=production
bundle exec rake db:seed_fu RAILS_ENV=production
rails s -e production
Verify that the server is up and running now by connecting using your web browser
- Login Email: [email protected]
- Login Password: 5iveL!fe `