RELATED TAGS gitea, github, gitlab, git, server, remote, repository
QUESTIONS
How can I host my own git server?
What do I need to create my own remote git repository?
What do I need to create my own github/gitlab?
LINKS What is Gitea Gitea Tutorials Login
Login on the remote server via sshyou@local:$ssh root@{server-adress}
Or if you use a custom key:
you@local:$ssh-i{fullpath/to/private/key} root@{server-adress} Update root@server:$sudoaptupdate Install SQLite root@server:$sudoaptinstall sqlite3 Install Git root@server:$sudoaptinstall git Create GIT user
Create a new user: root@server:$adduser--system--shell/bin/bash--gecos'Git Version Control'--group--disabled-password--home/home/gitgit Make directories
Gitea needs a certain directory structure root@server:~$mkdir-p/var/lib/gitea/{custom,data,log}root@server:~$chown-Rgit:git /var/lib/gitea/root@server:~$chmod-R750 /var/lib/gitea/root@server:~$mkdir-p/etc/gitearoot@server:~$chownroot:git /etc/gitearoot@server:~$chmod770 /etc/gitea
Download gitea
Download gitea and make it executable:
root@server:~$wget-Ogiteahttps://dl.gitea.com/gitea/1.21.7/gitea-1.21.7-linux-amd64root@server:~$chmod+xgitearoot@server:~$cpgitea/usr/local/bin/gitea Create linux service
Download the service file and add it for creating the gitea service:
root@server:~$wgethttps://raw.githubusercontent.com/go-gitea/gitea/main/contrib/systemd/gitea.service-P/etc/systemd/system/root@server:~$systemctlenablegitearoot@server:~$systemctlstartgitea Verify Gitea is running
If the server is running it is possible to check the website via curl.
This command will output some raw html and is only for verification.
root@server:~$curllocalhost:3000 Check Server Provider to Open Gitea's Port
Depending on your type of server, you will need to change the firewall settings of your server provider.
Gitea is served on port 3000, so you need to enable this.
Open Gitea in Browser
Now on your local computer, open a browser and navigate to {server-address}:3000.
APP | VERSION gitea 1.19 | git 2.39 | Linux/Ubuntu 22
RELATED TAGS gitea, github, gitlab, git, server, remote, repository
QUESTIONS
How can I host my own git server?
What do I need to create my own remote git repository?
What do I need to create my own github/gitlab?