Setting up GIT server




Setting up private Git server and Github like UI.

Environment

Server: Ubuntu 16 - 64bit
Client: Windows

Steps

- Install necessary S/W: git, sshd
$ sudo apt-get install git-core 

- Add user
$ sudo -i
$ adduser git
$ su - git
$ cd
$ mkdir .ssh && chmod 700 .ssh
$ touch .ssh/authorized_keys && chmod 600.ssh/authorized_keys

- decide on where repository will be
e.g.) /opt/git-repo
$ mkdir /opt/git-repo
$ chown -R git:git /opt/git-repo

- Install UI
https://gitea.io/en-us/
    docs, https://docs.gitea.io/en-us/

    GMAIL, smtp.gmail.com, port 587

Read/follow this to make this as a service, https://www.therandombits.com/313/gitea-run-as-systemd-service-in-ubuntu-16-04-lts/

More gitea configuration options, 
https://github.com/go-gitea/gitea/blob/master/custom/conf/app.ini.sample
https://docs.gitea.io/en-us/config-cheat-sheet/

No comments:

Powered by Blogger.