Building your own Git Server with Gitea on AlmaLinux

Gitea is a self-hosted git server you can run on your Linux rig, enabling you to be in full control of hosting your own repositories. In this video, the process of setting up Gitea is shown on an AlmaLinux server. You'll see the process of setting up the server, installing Gitea, and even making your first commit to a repository that's being hosted on your new server.

Thank you to Linode for sponsoring this video!
- Get your own cloud server with Linode ➜ https://linode.com/learnlinuxtv

## Support LearnLinuxTV (commission earned):
- Support me on Patreon and get early access to new content! ➜ https://learnlinux.link/patron
- Check out my latest book, Mastering Ubuntu Server 3rd Edition ➜ http://ubuntuserverbook.com
- Check out Shells.com to spin up your very own Linux or Windows desktop in the cloud ➜ https://learnlinux.link/shells
- Affiliate store for Linux compatible hardware/accessories ➜ https://learnlinux.link/amazon
- Check out the Tiny Pilot KVM for your Homelab ➜ https://learnlinux.link/tinypilot

## Individual sections:
00:00 - Intro
00:37 - Check out Linode and get $100 in starter credit (sponsor)
02:03 - Creating an AlmaLinux instance on Linode
07:44 - Changing the hostname of the new server instance
09:42 - Installing all available updates on the server
11:27 - Creating system users for Gitea
14:33 - Installing git via dnf
15:22 - Installing sqlite
15:50 - Downloading gitea, marking it executable, installing binary
18:42 - Creating the directories that are required for Gitea
21:58 - Creating a systemd unit file for Gitea
26:00 - Disabling SELinux (prevents Gitea from working)
28:24 - Starting up Gitea
29:54 - Allowing access to Gitea through the firewall
31:15 - Setting up gitea from the configuration page
34:30 - Testing out Gitea

## Video-specific links:
- Official blog post (contains commands used in this video) ➜ https://www.learnlinux.tv/?p=1895
- Gitea installation documentation (inspired the commands that were used) ➜ https://docs.gitea.io/en-us/install-from-binary/
- Gitea systemd unit file sample ➜ https://github.com/go-gitea/gitea/blob/main/contrib/systemd/gitea.service

## Recommended evergreen videos:
- How to create a bootable flash drive for installing Linux ➜ https://linux.video/flash-usb
- Understanding Linux permissions ➜ https://linux.video/perms
- OpenSSH Guide ➜ https://linux.video/ssh
- LVM Deep-dive ➜ https://linux.video/lvm
- How to better secure OpenSSH ➜ https://linux.video/secure-ssh

## LearnLinuxTV Links:
- Main site ➜ https://www.learnlinux.tv
- Community ➜ https://community.learnlinux.tv

## About the host
- Personal blog ➜ https://www.jaylacroix.com
- Twitter ➜ https://learnlinux.link/twitter

## FAQ
- Which distro do I use? ➜ https://learnlinux.link/mydistro
- My recording gear (commissions earned) ➜ https://learnlinux.link/recording-stuff

Disclaimer: LearnLinuxTV provides technical content on YouTube that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). LearnLinuxTV is not responsible for any damages that may arise from any use of this content. The viewer is expected to follow best judgement and to make his/her/their best decisions while working with production or non-production systems and hardware.

#git #gitea #linux

Home