Sunday 25 January 2015

Install Gitlab server on Ubuntu

From
http://www.turnkeylinux.org/gitlab
http://fortysomethinggeek.blogspot.sg/2012/10/install-git-server-in-5-10-minutes.html

From
https://bitnami.com/stack/gitlab

1. First approach: Download the virtualBox image:

https://bitnami.com/redirect/to/48167/bitnami-gitlab-7.6.2-0-ubuntu-14.04.zip

Default application login information (Please change to avoid unauthorized access.)

The default login information for GitLab cloud images is:

Username
    user@example.com
Password
    bitnami1

System account:

Username
    bitnami


2. Second approach:install bitnami gitlab

2.1 download installer file here:
https://bitnami.com/stack/gitlab/installer

2.2 add the executed properties and run
$ chmod + x bitnami-gitlab-7.13 ... .run
$ sudo ./bitnami-gitlab-7.13 ... .run

Note: not using SMTP and email sending

2.3 disable add new user with email notification
$ sudo nano /opt/gitlabxxx/apps/gitlab/htdocs/config/gitlab.yaml

uncomment and set:

email_enabled: false

2.4 restart
$sudo /opt/gitlabxxx/ctlscript.sh restart

For auto start when computer boots:

$ sudo nano /etc/rc.local
$ add the command line above before ending line: "exit 0"

2.5 disable sign up new user

- go to login with registered admin user during installation
- go to [admin area]
- go to [setting]

disable [signup_enabled]

2.6 add new user

- from admin account, add new user without password
- go to [admin area] -> [users], select the user and add password

2.7 change password

- user login through web page
- go to [profile] --> password --> update new password


3. Uninstall

$ cd /opt/gitlab-xxxx
$ sudo ./uninstall

An uninstall window will appear.

No comments:

Post a Comment