Personal Git server on BrainyPi
Description: Gogs aims to build a simple, stable and extensible self-hosted Git service that can be set up easily. This can be done with independent binary distribution across all platforms that Go supports, Linux, macOS, Windows and ARM-based systems.
Steps to Install:
Copy and paste the following lines into a terminal:
sudo apt update
sudo apt upgrade
sudo apt install mariadb-server git unzip
sudo mysql_secure_installationNow just press
enter
and answer some questions according to how you want the access to be set.Run the below commands.
sudo mysql -u root -p
CREATE DATABASE gogs;
GRANT ALL PRIVILEGES ON gogs.* TO 'goguser'@'localhost' IDENTIFIED BY 'pimylifeup';
FLUSH PRIVILEGES;
exit
sudo adduser --disabled-login git
cd /home/git
sudo wget https://dl.gogs.io/0.12.3/gogs_0.12.3_linux_armv7.zip -O gogs.zip
sudo unzip gogs.zip
sudo rm gogs.zip
sudo chown -R git:git /home/git
sudo systemctl enable /home/git/gogs/scripts/systemd/gogs.service
sudo systemctl start gogs.service
sudo systemctl status gogs.serviceGogs will be installed.
Useful for: Open Source, build a simple, stable and extensible self-hosted Git service that can be set up in the most painless way.
Link to original project: https://github.com/gogs/gogs
Link to Youtube Video: