mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-04 10:34:49 +02:00
1.1 KiB
1.1 KiB
Install Gogs On Raspberry Pi
- Install
git
. - Download the latest binary from here.
- Create a new user called
git
. - Extract
raspi2.zip
to/home/git
. - Change the owner of
/home/git/gogs
togit
. - Create systemd unit file
gogs.service
. - Start and enable
gogs.service
. - Create a ssh port forwarding to
3000/tcp
. - Open http://localhost:3000 in web browser.
Install
sudo su
apt install -y git
cd /tmp
wget https://github.com/gogits/gogs/releases/download/v0.9.13/raspi2.zip
mkdir -p /home/git
useradd -m -d /home/git -s /bin/bash git
unzip raspi2.zip -d /home/git/
chown -R git:git /home/git
cp /home/git/gogs/scripts/systemd/gogs.service /etc/systemd/system/
systemctl daemon-reload && systemctl start gogs && systemctl enable gogs
rm raspi2.zip
Setup
In current SSH session, create a port forwarding to setup gogs.
- Press: ~C
- Type:
-L 3000:localhost:3000
- Open: http://localhost:3000/install
- Press: ~C
- Type:
-KL3000