This is a creation in Article, where the information may have evolved or changed.
Overview
Self-build Git service solution There are many, yesterday I built a gitlab on the server, yes Gitlab is very powerful, the function is very complete, but installed in the Raspberry Pi card, installed on my VPS also very card, so I think of Gitea, although the function is not particularly powerful, but very complete, And the building is very convenient.
Download run
First of all, there are many Gitea installation methods, the simplest is to use a binary file installation, first download the binary file, note that the Raspberry Pi is armv7, so download the following file
wget https://dl.gitea.io/gitea/master/gitea-master-linux-arm-7
Download page at the following URL
https://dl.gitea.io/gitea/master/
Then rename it.
mv gitea-master-linux-arm-7 gitea
Give executable permission
chmod +x gitea
And then it works.
./gitea web -p 8899
Specify port after-p
Installation
Open your Raspberry Pi ip+ port in a browser like this
http://192.168.1.100:8899/install
Fill in some basic information
Since I am using MySQL database, reopen a session to connect to the Raspberry Pi, then create a new database called Gitea
➜~ Mysql-uroot-penter password:w elcome to the MySQL Monitor. Commands End With; or \g.your MySQL connection ID is 2Server version:5.5.56-log Source distributioncopyright (c), Oracle and/or I TS affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names trademarks of their respectiveowners. Type or ' \h ' for help . Type ' \c ' to clear the current input statement.mysql> create database Gitea; Query OK, 1 row Affected (0.00 sec) Mysql> |
Then fill in the database information
Then you can set up the mail server, the same I use Gmail, note that the SMTP address to add the port number, such as Gmail is the following
smtp.gmail.com:587
Restart the server, just rerun the first binary file.
After you have set up all the information, click Install Now, you can see the installation progress in the first session
I was very successful on the installation finished, the interface like below, also you can use the Ngrok proxy to the public network
It is also very important that Gitea Chinese is in place, praise
Finally stop the binary file, create a new session with screen to start the binary file
Welcome to Bboysoul's blog www.bboysoul.com
Has fun