{"id":1159,"date":"2020-06-05T15:54:22","date_gmt":"2020-06-05T20:54:22","guid":{"rendered":"https:\/\/linuxhostsupport.com\/blog\/?p=1159"},"modified":"2020-06-05T15:54:22","modified_gmt":"2020-06-05T20:54:22","slug":"how-to-install-gitea-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-gitea-on-ubuntu-18-04\/","title":{"rendered":"How to Install Gitea on Ubuntu 18.04"},"content":{"rendered":"<div id=\"linux-1325629043\" class=\"linux-before-1st-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1339&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div><p>In this article, we will show you how to install and configure Gitea service on Ubuntu 18.04. One of the best alternatives for GitHub is Gitea. Git with a cup of tea, also known as Gitea, is an open-source application that is a fork of Gogs and is functionally very similar to GitHub, Bitbucket, and Gitlab.<\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-1165\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/06\/setup-gitea-on-ubuntu18.04-vps-git-alternative.jpg\" alt=\"\" width=\"120\" height=\"120\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/06\/setup-gitea-on-ubuntu18.04-vps-git-alternative.jpg 120w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/06\/setup-gitea-on-ubuntu18.04-vps-git-alternative-60x60.jpg 60w\" sizes=\"(max-width: 120px) 100vw, 120px\" \/>Gitea is written in the Go language and can be run anywhere that Go can be compiled, such as Linux, macOS, Windows, ARM and PowerPC architectures. Gitea has many features such as problems and time tracking, branch repository, file locking, and tagging, merging and more. By following the instructions below, you will install Nginx, MariaDB, Git, create a system user, install Gitea and configure Nginx as a reverse proxy. Lets begin.<\/p>\n<p><!--more--><\/p>\n<h2>Step 1. Connect to your Server<\/h2>\n<p>Before we begin, you need to connect to your server via SSH as the root user. To do this, use the following command:<\/p>\n<pre>ssh root@IP_Address -p Port_Number<\/pre>\n<p>of course, you will need to replace <code>IP_Address<\/code> and <code>Port_Number<\/code> with your actual server IP address and SSH port number. The default SSH port is 22, but it may be different for your server.<\/p>\n<p>Once logged in, make sure that your server is up-to-date by running the following commands:<\/p>\n<pre>sudo apt update\r\nsudo apt upgrade<\/pre>\n<h2>Step 2. Install Nginx and Git<\/h2>\n<p>First, you need to install a web server to run Gitea. You can choose any web server that is available for Ubuntu 18.04 and install it on your server &#8211; however, in this tutorial we will be installing and using Nginx as our web server. It&#8217;s a very versatile and extremely popular web server, similar to Apache.<\/p>\n<p>By executing the following command, you can install the Nginx Web server on your VPS.<\/p>\n<pre>sudo apt -y install nginx<\/pre>\n<p>When the installation will finish you can start Nginx and also enable it to start on server boot with these commands.<\/p>\n<pre>sudo systemctl start nginx.service\r\nsudo systemctl enable nginx.service<\/pre>\n<p>We can also install a couple of dependencies that we&#8217;ll need in order to continue with the Gitea installation.<\/p>\n<pre>sudo apt -y install git wget<\/pre>\n<p>You can verify the installed git version with the command:<\/p>\n<pre>git --version<\/pre>\n<pre>Output: \r\ngit version 2.17.1<\/pre>\n<h2>Step 3. Install MariaDB Database Server<\/h2>\n<p>Gitea supports the following databases: MariaDB\/MySQL, PostgreSQL, SQLite, and TiDB. However, in this tutorial, we will install and use the MariaDB server and client. To install the MariaDB server on your Ubuntu 18.04 Server, run the command:<\/p>\n<pre>sudo apt -y install mariadb-server mariadb-client<\/pre>\n<p>Once MariaDB is installed on your server, you can use the commands below so you can stop, start, and enable the MariaDB service.<\/p>\n<pre>sudo systemctl stop mariadb.service\r\nsudo systemctl start mariadb.service\r\nsudo systemctl enable mariadb.service<\/pre>\n<p>The next command is optional. You can run the command if you want to secure the MariaDB server by disallowing remote root access, removing the test database and creating a root password.<\/p>\n<pre>sudo mysql_secure_installation<\/pre>\n<p>When prompted, answer the questions below by following the guide.<\/p>\n<pre>Enter current password for root (enter for none): Just press the [Enter] key, no password is set\r\nSet root password? [Y\/n]: Y\r\nNew password: Enter your password\r\nRe-enter new password: Repeat your password\r\nRemove anonymous users? [Y\/n]: Y\r\nDisallow root login remotely? [Y\/n]: Y\r\nRemove test database and access to it? [Y\/n]: Y\r\nReload privilege tables now? [Y\/n]: Y<\/pre>\n<p>Restart the MariaDB server so that the changes will take effect.<\/p>\n<pre>sudo systemctl restart mariadb.service<\/pre>\n<h2>Step 4. Create a Database<\/h2>\n<p>You should now be able to log in to the MariaDB server with the command:<\/p>\n<pre>sudo mysql -u root -p<\/pre>\n<p>Then type the password you created above to sign on. Once you are in the MariaDB shell, you can use the following command and create a database called &#8216;gitea&#8217; for the Gitea application.<\/p>\n<pre>CREATE DATABASE gitea;<\/pre>\n<p>Next, create a database user called &#8216;giteauser&#8217; and replace <code>New_Str0n9_Pas$worD<\/code> with your own password.<\/p>\n<pre>CREATE USER 'giteauser'@'localhost' IDENTIFIED BY 'New_Str0n9_Pas$worD';<\/pre>\n<p>To grant the user &#8216;giteauser&#8217; with full access to the database &#8216;gitea&#8217; run the command:<\/p>\n<pre>GRANT ALL ON gitea.* TO 'giteauser'@'localhost' IDENTIFIED BY 'New_Str0n9_Pas$worD' WITH GRANT OPTION;<\/pre>\n<p>Now we can use flush privileges operation to reload the grant tables and after that, we can exit from the MariaDB shell.<\/p>\n<pre>FLUSH PRIVILEGES;\r\nEXIT;<\/pre>\n<h2>Step 5. Prepare the Gitea Environment<\/h2>\n<p>Now we need to create a git user that can manage Gitea on the system. To do that, run the command below:<\/p>\n<pre>sudo adduser \\\r\n--system \\\r\n--shell \/bin\/bash \\\r\n--gecos 'Git Version Control' \\\r\n--group \\\r\n--disabled-password \\\r\n--home \/home\/git \\\r\ngit<\/pre>\n<p>With the following commands, we will create the necessary directory structure and give them appropriate permissions.<\/p>\n<pre>sudo mkdir -p \/var\/lib\/gitea\/{custom,data,indexers,public,log}\r\nsudo chown git:git \/var\/lib\/gitea\/{data,indexers,log}\r\nsudo chmod 750 \/var\/lib\/gitea\/{data,indexers,log}\r\nsudo mkdir \/etc\/gitea\r\nsudo chown root:git \/etc\/gitea\r\nsudo chmod 770 \/etc\/gitea<\/pre>\n<h2>Step 6. Install Gitea<\/h2>\n<p>The current latest version of Gitea is 1.9, however, you can always check for a newer version so you can download and install it. Download Gitea version 1.9 with the following command:<\/p>\n<pre>sudo wget -O gitea https:\/\/dl.gitea.io\/gitea\/1.9\/gitea-1.9-linux-amd64<\/pre>\n<p>Once the file will be downloaded, make it executable and move it into the <code>\/usr\/local\/bin directory<\/code>.<\/p>\n<pre>sudo chmod +x gitea\r\nsudo mv gitea \/usr\/local\/bin\/gitea<\/pre>\n<h2>Step 7. Create a Service file to Start Gitea Automatically<\/h2>\n<p>We&#8217;ll also show you how to create a Gitea systemd script. Run the following command to create a new Gitea service:<\/p>\n<pre>sudo nano \/etc\/systemd\/system\/gitea.service<\/pre>\n<p>Then copy and paste the content below into the open file.<\/p>\n<pre>[Unit]\r\nDescription=Gitea (Git with a cup of tea)\r\nAfter=syslog.target\r\nAfter=network.target\r\n#After=mysqld.service\r\n#After=postgresql.service\r\n#After=memcached.service\r\n#After=redis.service\r\n\r\n[Service]\r\n# Modify these two values and uncomment them if you have\r\n# repos with lots of files and get an HTTP error 500 because\r\n# of that\r\n###\r\n#LimitMEMLOCK=infinity\r\n#LimitNOFILE=65535\r\nRestartSec=2s\r\nType=simple\r\nUser=git\r\nGroup=git\r\nWorkingDirectory=\/var\/lib\/gitea\/\r\nExecStart=\/usr\/local\/bin\/gitea web -c \/etc\/gitea\/app.ini\r\nRestart=always\r\nEnvironment=USER=git HOME=\/home\/git GITEA_WORK_DIR=\/var\/lib\/gitea\r\n# If you want to bind Gitea to a port below 1024 uncomment\r\n# the two values below\r\n###\r\n#CapabilityBoundingSet=CAP_NET_BIND_SERVICE\r\n#AmbientCapabilities=CAP_NET_BIND_SERVICE\r\n\r\n[Install]\r\nWantedBy=multi-user.target<\/pre>\n<p>Save and close the file.<\/p>\n<p>In order for the changes to take effect, we&#8217;ll need to reload systemd. Start the new Gitea service, and if everything works as expected, you can enable this service:<\/p>\n<pre>sudo systemctl daemon-reload\r\nsudo systemctl enable gitea\r\nsudo systemctl start gitea<\/pre>\n<h2>Step 8. Configure Nginx as a Reverse Proxy<\/h2>\n<p>Since Nginx has been installed already, we can continue and show you how to create an Nginx server block with a reverse proxy for your domain that you want to use. In the following command, we will use nano as our editor, but if you do not prefer nano, you can use any editor of your choice and create a new server block called <code>git.conf<\/code><\/p>\n<pre>sudo nano \/etc\/nginx\/sites-available\/git.conf<\/pre>\n<p>Then paste the configuration from below into the file, and replace <code>your_domain_name.com<\/code> with your actual domain name.<\/p>\n<pre>upstream gitea {\r\n    server 127.0.0.1:3000;\r\n}\r\n\r\nserver {\r\n    listen 80 default_server;\r\n    server_name your_domain_name.com;\r\n    root \/var\/lib\/gitea\/public;\r\n    access_log off;\r\n    error_log off;\r\n\r\n    location \/ {\r\n      try_files maintain.html $uri $uri\/index.html @node;\r\n    }\r\n\r\n    location @node {\r\n      client_max_body_size 0;\r\n      proxy_pass http:\/\/gitea;\r\n      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\r\n      proxy_set_header X-Real-IP $remote_addr;\r\n      proxy_set_header Host $http_host;\r\n      proxy_set_header X-Forwarded-Proto $scheme;\r\n      proxy_max_temp_file_size 0;\r\n      proxy_redirect off;\r\n      proxy_read_timeout 120;\r\n    }\r\n}\r\n<\/pre>\n<p>After you finish editing the file, save and close it.<\/p>\n<p>Once you have configured the Nginx server block, you can enable it by executing the following command:<\/p>\n<pre>sudo ln -s \/etc\/nginx\/sites-available\/git.conf \/etc\/nginx\/sites-enabled<\/pre>\n<p>Remove the default Nginx server block with:<\/p>\n<pre>sudo rm \/etc\/nginx\/sites-enabled\/default<\/pre>\n<p>Restart Nginx so the changes will take effect.<\/p>\n<pre>sudo systemctl reload nginx.service<\/pre>\n<p>Now, open your preferred web browser and type your domain, and append slash install (<code>\/install<\/code>) to the URL:<\/p>\n<p><code>http:\/\/your_domain_name.com\/install<\/code><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1160\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/06\/gitea_install-597x1024-1.png\" alt=\"\" width=\"597\" height=\"1024\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/06\/gitea_install-597x1024-1.png 597w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/06\/gitea_install-597x1024-1-175x300.png 175w\" sizes=\"(max-width: 597px) 100vw, 597px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Follow the onscreen instructions to complete the Gitea setup.<\/p>\n<p>That&#8217;s it! In this article, we showed you how to install Nginx, MariaDB, Git, create a system user, install Gitea and configure Nginx as a reverse proxy. Now you can start exploring this useful application.<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-1166\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/06\/best-managed-gitea-support-for-ubuntu-servers.jpg\" alt=\"\" width=\"120\" height=\"120\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/06\/best-managed-gitea-support-for-ubuntu-servers.jpg 120w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/06\/best-managed-gitea-support-for-ubuntu-servers-60x60.jpg 60w\" sizes=\"(max-width: 120px) 100vw, 120px\" \/>Of course, if you are one of our <a href=\"https:\/\/linuxhostsupport.com\/monthly-server-management.html\">Managed Linux Server Support<\/a>\u00a0customers, you don\u2019t have to install Gitea on your Ubuntu 18.04 Server \u2013 simply ask our admins, sit back, and relax. Our admins will install and configure Gitea for you immediately.<\/p>\n<p><code>PS<\/code>. If you liked this post about <strong>how to install Gitea on an Ubuntu 18.04 Server<\/strong>, please share it with your friends on the social networks using the share buttons below, or simply leave a comment in the comments section. Thank you.<\/p><div id=\"linux-1070057061\" class=\"linux-after-8th-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1340&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will show you how to install and configure Gitea service on Ubuntu 18.04. One of the best alternatives for GitHub is Gitea. Git with a cup of tea, also known as Gitea, is an open-source application that is a fork of Gogs and is functionally very similar to GitHub, Bitbucket, and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1164,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[152,20],"class_list":["post-1159","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-gitea","tag-ubuntu"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install Gitea on Ubuntu 18.04 | LinuxHostSupport<\/title>\n<meta name=\"description\" content=\"In this article, we will show you how to install and configure Gitea service on Ubuntu 18.04. One of the best alternatives for GitHub is Gitea. Git with a\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-gitea-on-ubuntu-18-04\/\" \/>\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 Ubuntu 18.04 | LinuxHostSupport\" \/>\n<meta property=\"og:description\" content=\"In this article, we will show you how to install and configure Gitea service on Ubuntu 18.04. One of the best alternatives for GitHub is Gitea. Git with a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-gitea-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxHostSupport\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/linuxhostsupport\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-05T20:54:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/06\/how-to-install-gitea-on-ubuntu18.04.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"410\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:site\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-gitea-on-ubuntu-18-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-gitea-on-ubuntu-18-04\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\"},\"headline\":\"How to Install Gitea on Ubuntu 18.04\",\"datePublished\":\"2020-06-05T20:54:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-gitea-on-ubuntu-18-04\\\/\"},\"wordCount\":995,\"commentCount\":2,\"image\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-gitea-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/how-to-install-gitea-on-ubuntu18.04.jpg\",\"keywords\":[\"gitea\",\"ubuntu\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-gitea-on-ubuntu-18-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-gitea-on-ubuntu-18-04\\\/\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-gitea-on-ubuntu-18-04\\\/\",\"name\":\"How to Install Gitea on Ubuntu 18.04 | LinuxHostSupport\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-gitea-on-ubuntu-18-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-gitea-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/how-to-install-gitea-on-ubuntu18.04.jpg\",\"datePublished\":\"2020-06-05T20:54:22+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\"},\"description\":\"In this article, we will show you how to install and configure Gitea service on Ubuntu 18.04. One of the best alternatives for GitHub is Gitea. Git with a\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-gitea-on-ubuntu-18-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-gitea-on-ubuntu-18-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-gitea-on-ubuntu-18-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/how-to-install-gitea-on-ubuntu18.04.jpg\",\"contentUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/how-to-install-gitea-on-ubuntu18.04.jpg\",\"width\":750,\"height\":410},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-gitea-on-ubuntu-18-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Gitea on Ubuntu 18.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/\",\"name\":\"LinuxHostSupport\",\"description\":\"Linux Tutorials and Guides\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/author\\\/r0s3admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Gitea on Ubuntu 18.04 | LinuxHostSupport","description":"In this article, we will show you how to install and configure Gitea service on Ubuntu 18.04. One of the best alternatives for GitHub is Gitea. Git with a","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:\/\/linuxhostsupport.com\/blog\/how-to-install-gitea-on-ubuntu-18-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Gitea on Ubuntu 18.04 | LinuxHostSupport","og_description":"In this article, we will show you how to install and configure Gitea service on Ubuntu 18.04. One of the best alternatives for GitHub is Gitea. Git with a","og_url":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-gitea-on-ubuntu-18-04\/","og_site_name":"LinuxHostSupport","article_publisher":"https:\/\/www.facebook.com\/linuxhostsupport","article_published_time":"2020-06-05T20:54:22+00:00","og_image":[{"width":750,"height":410,"url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/06\/how-to-install-gitea-on-ubuntu18.04.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@lnxhostsupport","twitter_site":"@lnxhostsupport","twitter_misc":{"Written by":"admin","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-gitea-on-ubuntu-18-04\/#article","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-gitea-on-ubuntu-18-04\/"},"author":{"name":"admin","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"headline":"How to Install Gitea on Ubuntu 18.04","datePublished":"2020-06-05T20:54:22+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-gitea-on-ubuntu-18-04\/"},"wordCount":995,"commentCount":2,"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-gitea-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/06\/how-to-install-gitea-on-ubuntu18.04.jpg","keywords":["gitea","ubuntu"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-install-gitea-on-ubuntu-18-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-gitea-on-ubuntu-18-04\/","url":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-gitea-on-ubuntu-18-04\/","name":"How to Install Gitea on Ubuntu 18.04 | LinuxHostSupport","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-gitea-on-ubuntu-18-04\/#primaryimage"},"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-gitea-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/06\/how-to-install-gitea-on-ubuntu18.04.jpg","datePublished":"2020-06-05T20:54:22+00:00","author":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"description":"In this article, we will show you how to install and configure Gitea service on Ubuntu 18.04. One of the best alternatives for GitHub is Gitea. Git with a","breadcrumb":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-gitea-on-ubuntu-18-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-install-gitea-on-ubuntu-18-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-gitea-on-ubuntu-18-04\/#primaryimage","url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/06\/how-to-install-gitea-on-ubuntu18.04.jpg","contentUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/06\/how-to-install-gitea-on-ubuntu18.04.jpg","width":750,"height":410},{"@type":"BreadcrumbList","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-gitea-on-ubuntu-18-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxhostsupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Gitea on Ubuntu 18.04"}]},{"@type":"WebSite","@id":"https:\/\/linuxhostsupport.com\/blog\/#website","url":"https:\/\/linuxhostsupport.com\/blog\/","name":"LinuxHostSupport","description":"Linux Tutorials and Guides","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/1159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/comments?post=1159"}],"version-history":[{"count":5,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/1159\/revisions"}],"predecessor-version":[{"id":1168,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/1159\/revisions\/1168"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media\/1164"}],"wp:attachment":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media?parent=1159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/categories?post=1159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/tags?post=1159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}