NEWS COMMUNITY STORE LABS GITEA SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE LABS GITEA TOGGLE FULLSCREEN VOLLBILD AN/AUS image/svg+xml image/svg+xml image/svg+xml QUICK INSTALL
Install gitea on a linux server
image/svg+xml image/svg+xml Install gitea on a linux server image/svg+xml
quick-tip img:not(.icon) quick-tip img:not(.icon) quick-tip img[data-info] 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?


LINKS
What is Gitea
Gitea Tutorials
    Login
Login on the remote server via ssh you@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:$sudo apt update

    Install SQLite
root@server:$sudo apt install sqlite3

    Install Git
root@server:$sudo apt install git

    Create GIT user
Create a new user:
root@server:$adduser --system --shell /bin/bash --gecos 'Git Version Control' --group --disabled-password --home /home/git git

    Make directories
Gitea needs a certain directory structure
root@server:~$mkdir -p /var/lib/gitea/{custom,data,log} root@server:~$chown -R git:git /var/lib/gitea/ root@server:~$chmod -R 750 /var/lib/gitea/ root@server:~$mkdir -p /etc/gitea root@server:~$chown root:git /etc/gitea root@server:~$chmod 770 /etc/gitea

    Download gitea
Download gitea and make it executable: root@server:~$wget -O gitea https://dl.gitea.com/gitea/1.21.7/gitea-1.21.7-linux-amd64 root@server:~$chmod +x gitea root@server:~$cp gitea /usr/local/bin/gitea

    Create linux service
Download the service file and add it for creating the gitea service: root@server:~$wget https://raw.githubusercontent.com/go-gitea/gitea/main/contrib/systemd/gitea.service -P /etc/systemd/system/ root@server:~$systemctl enable gitea root@server:~$systemctl start gitea

    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:~$curl localhost: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?


LINKS
What is Gitea
Gitea Tutorials
GITEA Overview






All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...