{"id":45351,"date":"2023-05-17T12:30:00","date_gmt":"2023-05-17T17:30:00","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=45351"},"modified":"2023-06-02T03:34:56","modified_gmt":"2023-06-02T08:34:56","slug":"how-to-install-gitea-on-debian-11","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-on-debian-11\/","title":{"rendered":"How to Install Gitea on Debian 11"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"742\" height=\"372\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/how-to-install-gitea-on-debian-11.webp\" alt=\"how to install gitea on debian 11\" class=\"wp-image-45528\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/how-to-install-gitea-on-debian-11.webp 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/how-to-install-gitea-on-debian-11-300x150.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/how-to-install-gitea-on-debian-11-150x75.webp 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>Gitea is an open-source <a href=\"https:\/\/www.rosehosting.com\/git-hosting\/\">Git service<\/a> written in the Go language. It is a version control platform similar to GitHub. <\/p>\n\n\n\n<p>It is robust and scalable and offers many features, including issues and time tracking, repository branching, file locking, tagging, merging, and many others.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Since Gitea was created using the Go language, it supports a lot of operating systems, including Linux, macOS, and Windows, on architectures like amd64, i386, ARM, PowerPC, and others.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69e94da5eb422\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69e94da5eb422\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-on-debian-11\/#Prerequisites\" >Prerequisites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-on-debian-11\/#Step-1-Log-in-to-your-server\" >Step 1. Log in to your server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-on-debian-11\/#Step-2-Update-the-System-and-Create-a-User\" >Step 2. Update the System and Create a User<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-on-debian-11\/#Step-3-Install-MariaDB-and-Create-a-Database\" >Step 3. Install MariaDB and Create a Database<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-on-debian-11\/#Step-4-Download-and-Install-Gitea\" >Step 4. Download and Install Gitea<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-on-debian-11\/#Step-5-Create-Systemd-File\" >Step 5. Create Systemd File<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-on-debian-11\/#Step-7-Configure-Gitea\" >Step 7. Configure Gitea<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A Debian 11 VPS<\/li>\n\n\n\n<li>SSH root access or regular system user with sudo privileges<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-1-Log-in-to-your-server\"><\/span>Step 1. Log in to your server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Using your favorite SSH client, log in to your Debian 11 server.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ssh root@IP_Address -p Port_number<\/pre>\n\n\n\n<p>Replace IP_Address and Port_number with your server\u2019s actual IP address and SSH port number. You can also use another system user with sudo privileges instead of using &#8216;root&#8217; to log in to your VPS.<\/p>\n\n\n\n<p>This article will use &#8216;root&#8217; to execute the shell commands. If you want to use your regular user with sudo privileges to run the commands, make sure to append &#8216;sudo&#8217; in front of the commands.<\/p>\n\n\n\n<p>This tutorial is written for the Debian 11 server. To check your operating system, run this command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># lsb_release -a<\/pre>\n\n\n\n<p>You will get an output like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">No LSB modules are available.\nDistributor ID: Debian\nDescription: Debian GNU\/Linux 11 (bullseye)\nRelease: 11\nCodename: bullseye<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-2-Update-the-System-and-Create-a-User\"><\/span>Step 2. Update the System and Create a User<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Before starting, you have to ensure that your Debian 11 packages installed on the server are up to date. You can do this by running the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># apt update\n# apt upgrade<\/pre>\n\n\n\n<p>Now, let&#8217;s create a system user<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># adduser \\\n--system \\\n--shell \/bin\/bash \\\n--gecos 'Gitea Version Control' \\\n--group \\\n--disabled-password \\\n--home \/home\/git \\\ngit<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-3-Install-MariaDB-and-Create-a-Database\"><\/span>Step 3. Install MariaDB and Create a Database<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Gitea requires a database server to store its data. Gitea supports PostgreSQL, MySQL\/MariaDB, SQLite, and MSSQL. In this step, we are going to install MariaDB from the default Debian repository.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># apt install mariadb-server git<\/pre>\n\n\n\n<p>Once installed, the MariaDB server should be up and running. Execute the command below to create a database and user name and give the privilege to the user.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mysql -e \"create database gitea\"\nmysql -e \"grant all privileges on gitea.* to gitea@localhost identified by 'm0d1fyth15'\"<\/pre>\n\n\n\n<p>Replace m0d1fyth15 above with a stronger password.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-4-Download-and-Install-Gitea\"><\/span>Step 4. Download and Install Gitea<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Now, it is time to download the Gitea binary. We will download it using wget and store it in \/usr\/local\/bin.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># wget https:\/\/dl.gitea.com\/gitea\/1.19.1\/gitea-1.19.1-linux-amd64 -O \/usr\/local\/bin\/gitea<\/pre>\n\n\n\n<p>Check out more <a href=\"https:\/\/dl.gitea.com\/gitea\/\">recent versions of Gitea<\/a>.<\/p>\n\n\n\n<p>We would also need to run these commands.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># mkdir -p \/var\/lib\/gitea\/{custom,data,log}\n# chown -R git:git \/var\/lib\/gitea\/\n# chmod -R 750 \/var\/lib\/gitea\/\n# mkdir \/etc\/gitea\n# chown root:git \/etc\/gitea\n# chmod 770 \/etc\/gitea<\/pre>\n\n\n\n<p>Then, create a file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># nano \/etc\/gitea\/app.ini<\/pre>\n\n\n\n<p>Paste the following into the file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">DOMAIN = gitea.yourdomain.com\nROOT_URL = http:\/\/gitea.yourdomain.com\/<\/pre>\n\n\n\n<p>Save the file, then exit, and give the correct permission.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># chown git. \/etc\/gitea\/app.ini<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-5-Create-Systemd-File\"><\/span>Step 5. Create Systemd File<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>We do not need to type the content of the systemd file; simply download it from github.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># wget https:\/\/raw.githubusercontent.com\/go-gitea\/gitea\/main\/contrib\/systemd\/gitea.service -P \/etc\/systemd\/system\/<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"># systemctl daemon-reload<\/pre>\n\n\n\n<p>Time to run the service.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># systemctl enable --now gitea<\/pre>\n\n\n\n<p>Gitea service should be up and running now. To verify this, we can check with this command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># systemctl status gitea<\/pre>\n\n\n\n<p>It will return an output like this.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u25cf gitea.service - Gitea (Git with a cup of tea)\nLoaded: loaded (\/etc\/systemd\/system\/gitea.service; enabled; vendor preset: enabled)\nActive: active (running) since Sun 2023-04-16 06:09:30 EDT; 5s ago\nMain PID: 996 (gitea)\nTasks: 6 (limit: 2294)\nMemory: 114.0M\nCPU: 693ms\nCGroup: \/system.slice\/gitea.service\n\u2514\u2500996 \/usr\/local\/bin\/gitea web --config \/etc\/gitea\/app.ini\n\nApr 16 06:09:30 debian11 gitea[996]: 2023\/04\/16 06:09:30 ...s\/install\/setting.go:21:PreloadSettings() [I] AppPath: \/usr\/local\/bin\/gitea\nApr 16 06:09:30 debian11 gitea[996]: 2023\/04\/16 06:09:30 ...s\/install\/setting.go:22:PreloadSettings() [I] AppWorkPath: \/var\/lib\/gitea\nApr 16 06:09:30 debian11 gitea[996]: 2023\/04\/16 06:09:30 ...s\/install\/setting.go:23:PreloadSettings() [I] Custom path: \/var\/lib\/gitea\/custom\nApr 16 06:09:30 debian11 gitea[996]: 2023\/04\/16 06:09:30 ...s\/install\/setting.go:24:PreloadSettings() [I] Log path: \/var\/lib\/gitea\/log\nApr 16 06:09:30 debian11 gitea[996]: 2023\/04\/16 06:09:30 ...s\/install\/setting.go:25:PreloadSettings() [I] Configuration file: \/etc\/gitea\/app.ini\nApr 16 06:09:30 debian11 gitea[996]: 2023\/04\/16 06:09:30 ...s\/install\/setting.go:26:PreloadSettings() [I] Prepare to run install page\nApr 16 06:09:30 debian11 gitea[996]: 2023\/04\/16 06:09:30 ...s\/install\/setting.go:29:PreloadSettings() [I] SQLite3 is supported\nApr 16 06:09:30 debian11 gitea[996]: 2023\/04\/16 06:09:30 cmd\/web.go:220:listen() [I] [643bc95a-6] Listen: http:\/\/0.0.0.0:3000\nApr 16 06:09:30 debian11 gitea[996]: 2023\/04\/16 06:09:30 cmd\/web.go:224:listen() [I] [643bc95a-6] AppURL(ROOT_URL): http:\/\/localhost:3000\/\nApr 16 06:09:30 debian11 gitea[996]: 2023\/04\/16 06:09:30 ...s\/graceful\/server.go:62:NewServer() [I] [643bc95a-6] Starting new Web server: tcp:0.0.0.0:3000 on PID: 996<\/pre>\n\n\n\n<p>At this point, you should be able to access it at http:\/\/YOUR_SERVER_IP_ADDRESS:3000<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Step 6. Install and Configure Nginx<\/pre>\n\n\n\n<p>To access Gitea using your domain or subdomain name, we need to install a webserver and configure it as a reverse proxy. In this step, we are going to install Nginx as the webserver.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># nano \/etc\/nginx\/conf.d\/gitea.conf<\/pre>\n\n\n\n<p>Copy and paste the content below.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">server {\nlisten 80;\nserver_name gitea.yourdomain.com;\naccess_log \/var\/log\/nginx\/gitea_access.log;\nerror_log \/var\/log\/nginx\/gitea_error.log;\n\nlocation \/ {\nproxy_pass http:\/\/localhost:3000;\n}\n}<\/pre>\n\n\n\n<p>Save the file, exit, then restart nginx.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># systemctl restart nginx<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-7-Configure-Gitea\"><\/span>Step 7. Configure Gitea<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Now, it is time to install the Gitea service through the web browser. Navigate to your http:\/\/gitea.yourdomain.com, and you will see this.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"980\" height=\"1712\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-initial-configuration.webp\" alt=\"gitea initial configuration\" class=\"wp-image-45394\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-initial-configuration.webp 980w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-initial-configuration-172x300.webp 172w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-initial-configuration-586x1024.webp 586w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-initial-configuration-86x150.webp 86w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-initial-configuration-768x1342.webp 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-initial-configuration-879x1536.webp 879w\" sizes=\"(max-width: 980px) 100vw, 980px\" \/><\/figure>\n<\/div>\n\n\n<p>In this step, you need to provide the database credentials, and you can leave the already filled fields. Then, click on Install Gitea.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1510\" height=\"478\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-sign-in.webp\" alt=\"gitea sign in\" class=\"wp-image-45395\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-sign-in.webp 1510w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-sign-in-300x95.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-sign-in-1024x324.webp 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-sign-in-150x47.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-sign-in-768x243.webp 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-sign-in-1320x418.webp 1320w\" sizes=\"(max-width: 1510px) 100vw, 1510px\" \/><\/figure>\n<\/div>\n\n\n<p>You will be brought to this step, you can click on &#8216;Need an account? Register now link to register your first user.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1508\" height=\"480\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-register.webp\" alt=\"gitea register\" class=\"wp-image-45396\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-register.webp 1508w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-register-300x95.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-register-1024x326.webp 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-register-150x48.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-register-768x244.webp 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-register-1320x420.webp 1320w\" sizes=\"(max-width: 1508px) 100vw, 1508px\" \/><\/figure>\n<\/div>\n\n\n<p>Fill in all required fields, make sure to use a strong password, then click on Register Account<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1512\" height=\"447\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-account-created.webp\" alt=\"gitea account created\" class=\"wp-image-45397\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-account-created.webp 1512w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-account-created-300x89.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-account-created-1024x303.webp 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-account-created-150x44.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-account-created-768x227.webp 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/04\/gitea-account-created-1320x390.webp 1320w\" sizes=\"(max-width: 1512px) 100vw, 1512px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>The first account created has administrator privileges, so we can use this user to manage our Gitea website.<\/p>\n\n\n\n<p>That&#8217;s it. You have successfully installed Gitea on Debian 11.<\/p>\n\n\n\n<p>Congratulations! You successfully installed and configured Gitea on Debian 11. If you find installing and finishing this setup difficult, you can always <a href=\"https:\/\/www.rosehosting.com\/support\/\">contact our admins<\/a>, who will do the rest for you. We are available 24\/7. Always trust our epic support.<\/p>\n\n\n\n<p>PS. If you liked this post on how to install Gitea on Debian 11, please share it with your friends on social networks or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Gitea is an open-source Git service written in the Go language. It is a version control platform similar to GitHub. &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Gitea on Debian 11\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-on-debian-11\/#more-45351\" aria-label=\"Read more about How to Install Gitea on Debian 11\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":45528,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1700,1236,13],"tags":[48,1819,1603],"class_list":["post-45351","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","category-guides","category-tutorials","tag-debian","tag-gitea","tag-how-to-install","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Gitea on Debian 11 | RoseHosting<\/title>\n<meta name=\"description\" content=\"Gitea is a self-hosted Git service that is fast and easy to use. Learn how to install Gitea on Debian 11 with our step-by-step guide.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-on-debian-11\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Gitea on Debian 11\" \/>\n<meta property=\"og:description\" content=\"Gitea is a self-hosted Git service that is fast and easy to use. Learn how to install Gitea on Debian 11 with our step-by-step guide.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-on-debian-11\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-17T17:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-02T08:34:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/how-to-install-gitea-on-debian-11.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to Install Gitea on Debian 11\" \/>\n<meta name=\"twitter:description\" content=\"Gitea is a self-hosted Git service that is fast and easy to use. Learn how to install Gitea on Debian 11 with our step-by-step guide.\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitea-on-debian-11\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitea-on-debian-11\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Gitea on Debian 11\",\"datePublished\":\"2023-05-17T17:30:00+00:00\",\"dateModified\":\"2023-06-02T08:34:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitea-on-debian-11\\\/\"},\"wordCount\":682,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitea-on-debian-11\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/how-to-install-gitea-on-debian-11.webp\",\"keywords\":[\"debian\",\"gitea\",\"how to install\"],\"articleSection\":[\"Debian\",\"Guides\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitea-on-debian-11\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitea-on-debian-11\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitea-on-debian-11\\\/\",\"name\":\"How to Install Gitea on Debian 11 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitea-on-debian-11\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitea-on-debian-11\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/how-to-install-gitea-on-debian-11.webp\",\"datePublished\":\"2023-05-17T17:30:00+00:00\",\"dateModified\":\"2023-06-02T08:34:56+00:00\",\"description\":\"Gitea is a self-hosted Git service that is fast and easy to use. Learn how to install Gitea on Debian 11 with our step-by-step guide.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitea-on-debian-11\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitea-on-debian-11\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitea-on-debian-11\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/how-to-install-gitea-on-debian-11.webp\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/how-to-install-gitea-on-debian-11.webp\",\"width\":742,\"height\":372,\"caption\":\"how to install gitea on debian 11\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitea-on-debian-11\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Gitea on Debian 11\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install Gitea on Debian 11 | RoseHosting","description":"Gitea is a self-hosted Git service that is fast and easy to use. Learn how to install Gitea on Debian 11 with our step-by-step guide.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-on-debian-11\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Gitea on Debian 11","og_description":"Gitea is a self-hosted Git service that is fast and easy to use. Learn how to install Gitea on Debian 11 with our step-by-step guide.","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-on-debian-11\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2023-05-17T17:30:00+00:00","article_modified_time":"2023-06-02T08:34:56+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/how-to-install-gitea-on-debian-11.webp","type":"image\/webp"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_title":"How to Install Gitea on Debian 11","twitter_description":"Gitea is a self-hosted Git service that is fast and easy to use. Learn how to install Gitea on Debian 11 with our step-by-step guide.","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-on-debian-11\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-on-debian-11\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Gitea on Debian 11","datePublished":"2023-05-17T17:30:00+00:00","dateModified":"2023-06-02T08:34:56+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-on-debian-11\/"},"wordCount":682,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-on-debian-11\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/how-to-install-gitea-on-debian-11.webp","keywords":["debian","gitea","how to install"],"articleSection":["Debian","Guides","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-on-debian-11\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-on-debian-11\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-on-debian-11\/","name":"How to Install Gitea on Debian 11 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-on-debian-11\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-on-debian-11\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/how-to-install-gitea-on-debian-11.webp","datePublished":"2023-05-17T17:30:00+00:00","dateModified":"2023-06-02T08:34:56+00:00","description":"Gitea is a self-hosted Git service that is fast and easy to use. Learn how to install Gitea on Debian 11 with our step-by-step guide.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-on-debian-11\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-on-debian-11\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-on-debian-11\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/how-to-install-gitea-on-debian-11.webp","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/how-to-install-gitea-on-debian-11.webp","width":742,"height":372,"caption":"how to install gitea on debian 11"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-on-debian-11\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Gitea on Debian 11"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/45351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=45351"}],"version-history":[{"count":11,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/45351\/revisions"}],"predecessor-version":[{"id":46927,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/45351\/revisions\/46927"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/45528"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=45351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=45351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=45351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}