Skip to content

Instantly share code, notes, and snippets.

@arcaneshabang
Last active May 11, 2018 15:09
Show Gist options
  • Select an option

  • Save arcaneshabang/74acebb7262d0657a233b36b732de0bd to your computer and use it in GitHub Desktop.

Select an option

Save arcaneshabang/74acebb7262d0657a233b36b732de0bd to your computer and use it in GitHub Desktop.
Raspi Git
- optional: get fresh raspbian mini
-- recommendation: use jessie image for compatibility! *¹
-- source: https://www.raspberrypi.org/downloads/raspbian/
- optional: convenient linux-addons:
apt install mlocate
alias ll='ls -lattr'
- mandatory or optional: prepare the system
-- info: this should be available anyways, or installed via dependencies, but anyways:
apt install curl openssh-server ca-certificates postfix apt-transport-https
- mandatory: prepare git repository
-- source: https://hackernoon.com/create-your-own-git-server-using-raspberry-pi-and-gitlab-f64475901a66
-- source: https://howtoraspberrypi.com/private-git-raspberry-gitlab/
curl https://packages.gitlab.com/gpg.key | sudo apt-key add -
----8<---- Option A ----8<----
sudo curl -sS https://packages.gitlab.com/install/repositories/gitlab/raspberry-pi2/script.deb.sh | sudo bash
----8<---- Option B ----8<----
curl -o /etc/apt/sources.list.d/gitlab_ce.list "https://packages.gitlab.com/install/repositories/gitlab/raspberry-pi2/config_file.list?os=debian&dist=jessie"
----8<---- Option ENDS ----8<----
apt-get update
apt-get install gitlab-ce
- mandatory: configure git
gitlab-ctl reconfigure
- optional: access the git frontend
-- https://[hostname]/
-- credentials: root <set in reconfigure> or default:5iveL! Fe
*¹) There is a compatibility issue with raspbian jessie and stretch:
-- source: https://gitlab.com/gitlab-org/omnibus-gitlab/issues/2767
there is no gitlab-ce package availabe for stretch today, 11.05.2018, but for jessie.
installing the jessie-packages to a stretch system caused the system to be inaccessable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment