{"id":13278,"date":"2025-01-16T05:44:05","date_gmt":"2025-01-16T05:44:05","guid":{"rendered":"https:\/\/greenwebpage.com\/community\/?p=13278"},"modified":"2025-01-16T05:48:18","modified_gmt":"2025-01-16T05:48:18","slug":"how-to-install-gogs-git-on-ubuntu-24-04","status":"publish","type":"post","link":"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/","title":{"rendered":"How to Install Gogs Git on Ubuntu 24.04: In Just 8 Steps"},"content":{"rendered":"\n<p><a href=\"https:\/\/gogs.io\/\">Gogs<\/a><strong> <\/strong>is a self-hosted Git service that allows you to create your personal platform for managing code versions. It works similarly to GitHub, but it runs on your own server, allowing you to have full control over all your repositories and manage them privately without relying on others. It is a lightweight tool that is an ideal choice for Linux users, including Ubuntu 24.04. The reason is it provides them the opportunity to set up and run a stable and extensible Git service most painlessly.<\/p>\n\n\n\n<p>\n  Read this guide to find:\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-13278-_heading=h.gjdgxs\"><\/a><strong>How to Install Gogs Git on Ubuntu 24.04<\/strong><\/h2>\n\n\n\n<p>\n  For installing <strong>Gogs <\/strong>on Ubuntu 24.04, follow the below steps-by-step instructions:\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13278-_heading=h.30j0zll\"><\/a><strong>Step 1: Install Database Server on Ubuntu 24.04<\/strong><\/h3>\n\n\n\n<p><strong>Gogs<\/strong> support different database servers like MySQL, MariaDB, PostgreSQL, and MySQLite3. Thus, you must ensure installing one of those database servers on your system. As an example, we are going with installing<strong> MariaDB server<\/strong> on the Ubuntu system from the following command:<\/p>\n\n\n\n<pre>sudo apt install mariadb-server mariadb-client -y<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"812\" height=\"514\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-1.png\" alt=\"\" class=\"wp-image-13279\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-1.png 812w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-1-300x190.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-1-768x486.png 768w\" sizes=\"(max-width: 812px) 100vw, 812px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13278-_heading=h.1fob9te\"><\/a><strong>Step 2: Create Gogs Database<\/strong><\/h3>\n\n\n\n<p>\n  After installing the <strong>MariaDB<\/strong> server, it\u2019s time to create a <strong>Gogs <\/strong>database on Ubuntu. Users can perform it by executing the <strong>MariaDB<\/strong> monitor via the below command:\n<\/p>\n\n\n\n<pre>sudo mysql<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"809\" height=\"259\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-2.png\" alt=\"\" class=\"wp-image-13280\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-2.png 809w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-2-300x96.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-2-768x246.png 768w\" sizes=\"(max-width: 809px) 100vw, 809px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  Then use the below-given command to change the storage behavior of the InnoDB tables to improve the performance and easy management of disk space:\n<\/p>\n\n\n\n<pre>SET GLOBAL innodb_file_per_table = ON;<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"810\" height=\"131\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-3.png\" alt=\"\" class=\"wp-image-13281\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-3.png 810w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-3-300x49.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-3-768x124.png 768w\" sizes=\"(max-width: 810px) 100vw, 810px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  Once done, ensure there is no database exit previously with the name <strong>gogs <\/strong>to avoid conflicts with the newly created <strong>gogs <\/strong>database. You can run the below-given command to drop the database that existed previously with the name <strong>gogs<\/strong>:\n<\/p>\n\n\n\n<pre>DROP DATABASE IF EXISTS gogs;<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"811\" height=\"128\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-4.png\" alt=\"\" class=\"wp-image-13282\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-4.png 811w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-4-300x47.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-4-768x121.png 768w\" sizes=\"(max-width: 811px) 100vw, 811px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  After that, use the provided command below to create a database having name <strong>gogs <\/strong>and desired character set and collation:\n<\/p>\n\n\n\n<pre>CREATE DATABASE IF NOT EXISTS gogs CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"814\" height=\"157\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-5.png\" alt=\"\" class=\"wp-image-13283\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-5.png 814w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-5-300x58.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-5-768x148.png 768w\" sizes=\"(max-width: 814px) 100vw, 814px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  Once the database is created, you can configure its permission by setting a password for the created database on MySQL, you can do this through the below-given command:\n<\/p>\n\n\n\n<p>GRANT ALL PRIVILEGES ON gogs.* TO &#8216;gogs&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8220;password&#8221;;<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"813\" height=\"128\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-6.png\" alt=\"\" class=\"wp-image-13284\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-6.png 813w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-6-300x47.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-6-768x121.png 768w\" sizes=\"(max-width: 813px) 100vw, 813px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Note: <\/strong>Ensure to replace the database password with a strong password.\n<\/p>\n\n\n\n<p>\n  Then flush the privilege table using the below-given command:\n<\/p>\n\n\n\n<pre>FLUSH PRIVILEGES;<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"810\" height=\"105\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-7.png\" alt=\"\" class=\"wp-image-13285\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-7.png 810w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-7-300x39.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-7-768x100.png 768w\" sizes=\"(max-width: 810px) 100vw, 810px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  Once everything is done, exit your database using the following command:\n<\/p>\n\n\n\n<pre>EXIT<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"813\" height=\"86\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-8.png\" alt=\"\" class=\"wp-image-13286\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-8.png 813w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-8-300x32.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-8-768x81.png 768w\" sizes=\"(max-width: 813px) 100vw, 813px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13278-_heading=h.3znysh7\"><\/a><strong>Step 3: Download and Extract the Gogs Source File<\/strong><\/h3>\n\n\n\n<p>\n  Next, navigate to the <a href=\"https:\/\/github.com\/gogs\/gogs\/releases\"><strong>Gogs GitHub release page<\/strong><\/a><strong>,<\/strong> and find the latest version of<strong> Gogs<\/strong> tar.gz source file. Then download it on the Ubuntu system, either directly or through the wget command from the terminal. Ensure downloading the tar.gz source file according to your architecture (i386 or amd64). Here, at the time of writing, the latest version of <strong>Gogs<\/strong> was 0.13.0, which can be downloaded directly on the amd64 system through the following command:\n<\/p>\n\n\n\n<pre>\n  wget https:\/\/github.com\/gogs\/gogs\/releases\/download\/v0.13.0\/gogs_0.13.0_linux_amd64.tar.gz\n<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"812\" height=\"349\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-9.png\" alt=\"\" class=\"wp-image-13287\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-9.png 812w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-9-300x129.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-9-768x330.png 768w\" sizes=\"(max-width: 812px) 100vw, 812px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  The above command will download the <strong>Gogs<\/strong> source file in the current directory of your system:\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"812\" height=\"151\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-10.png\" alt=\"\" class=\"wp-image-13288\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-10.png 812w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-10-300x56.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-10-768x143.png 768w\" sizes=\"(max-width: 812px) 100vw, 812px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  Now extract the content of the source file using the tar command with the desired flags and source file name:\n<\/p>\n\n\n\n<pre>\n  tar xvf gogs_0.13.0_linux_amd64.tar.gz\n<\/pre>\n\n\n\n<p><strong>Note: <\/strong>Ensure to replace the <strong>Gogs<\/strong> source file name if you have downloaded <strong>Gogs<\/strong> another version on Ubuntu.\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"812\" height=\"518\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-11.png\" alt=\"\" class=\"wp-image-13289\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-11.png 812w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-11-300x191.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-11-768x490.png 768w\" sizes=\"(max-width: 812px) 100vw, 812px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13278-_heading=h.2et92p0\"><\/a><strong>Step 4: Add a User Git to Ubuntu<\/strong><\/h3>\n\n\n\n<p>\n  To run<strong> <\/strong>the<strong> Gogs<\/strong> service on Ubuntu, you are required to create a user <strong>git <\/strong>on Ubuntu, it can be done through the below-given command:\n<\/p>\n\n\n\n<pre>\n  sudo adduser git\n<\/pre>\n\n\n\n<p>\n  When you run the above <strong>adduser<\/strong> command, it will ask you to set up a password for your created user. Do it, then choose the new values for your created user, such as add Full Name, Room Number, and more. You can skip these values by using the Enter button, then reply with <strong>Y <\/strong>to confirm the information you provided is correct:\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"810\" height=\"469\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-12.png\" alt=\"\" class=\"wp-image-13290\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-12.png 810w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-12-300x174.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-12-768x445.png 768w\" sizes=\"(max-width: 810px) 100vw, 810px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13278-_heading=h.tyjcwt\"><\/a><strong>Step 5: Setting Up Gogs Service on Systemd<\/strong><\/h3>\n\n\n\n<p>\n  Now, to set up the <strong>Gogs <\/strong>service on systemd, first create a directory for <strong>Gogs<\/strong> logs using the following command:\n<\/p>\n\n\n\n<pre>\n  sudo mkdir \/var\/log\/gogs\n<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"809\" height=\"88\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-13.png\" alt=\"\" class=\"wp-image-13291\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-13.png 809w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-13-300x33.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-13-768x84.png 768w\" sizes=\"(max-width: 809px) 100vw, 809px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  After that, change the ownership of the <strong>Gogs <\/strong>logs folder to the git user as well as group via the below command:\n<\/p>\n\n\n\n<pre>\n  sudo chown -R git:git \/var\/log\/gogs\/\n<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"809\" height=\"86\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-14.png\" alt=\"\" class=\"wp-image-13292\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-14.png 809w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-14-300x32.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-14-768x82.png 768w\" sizes=\"(max-width: 809px) 100vw, 809px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  Once done, copy the <strong>Gogs<\/strong> service script to systemd directory on Ubuntu using the following command:\n<\/p>\n\n\n\n<pre>\n  sudo cp gogs\/scripts\/systemd\/gogs.service \/etc\/systemd\/system\n<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"813\" height=\"93\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-15.png\" alt=\"\" class=\"wp-image-13293\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-15.png 813w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-15-300x34.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-15-768x88.png 768w\" sizes=\"(max-width: 813px) 100vw, 813px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  By default, <strong>Gogs <\/strong>uses port <strong>3000 <\/strong>for HTTP communication, however, you can change the port by first opening the<strong> gogs.service<\/strong> file using the below-given command:\n<\/p>\n\n\n\n<pre>\n  sudo nano \/etc\/systemd\/system\/gogs.service\n<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"814\" height=\"516\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-16.png\" alt=\"\" class=\"wp-image-13294\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-16.png 814w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-16-300x190.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-16-768x487.png 768w\" sizes=\"(max-width: 814px) 100vw, 814px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  Then add<strong> -port <\/strong>followed by your desired port number in front of the <strong>ExecStart=\/home\/git\/gogs\/gogs web <\/strong>line inside the file. Here, we are changing the default port number of<strong> Gogs<\/strong> for HTTP communication to 3006:\n<\/p>\n\n\n\n<pre>\n  ExecStart=\/home\/git\/gogs\/gogs web -port 3006\n<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"813\" height=\"515\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-17.png\" alt=\"\" class=\"wp-image-13295\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-17.png 813w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-17-300x190.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-17-768x486.png 768w\" sizes=\"(max-width: 813px) 100vw, 813px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  After that, save the <strong>Gogs<\/strong> service file using <strong>CTRL+X<\/strong>, add<strong> Y <\/strong>and press Enter to exit. Once done, move the <strong>gogs<\/strong> source directory to<strong> \/home\/git<\/strong> location using the following command:\n<\/p>\n\n\n\n<pre>\n  sudo mv gogs \/home\/git\/\n<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"814\" height=\"89\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-18.png\" alt=\"\" class=\"wp-image-13296\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-18.png 814w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-18-300x33.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-18-768x84.png 768w\" sizes=\"(max-width: 814px) 100vw, 814px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  After that, modify the ownership of the <strong>git<\/strong> source directory along with all of its components to the user <strong>git<\/strong> as well as group <strong>git<\/strong> through the below command:\n<\/p>\n\n\n\n<pre>\n  sudo chown -R git:git \/home\/git\/\n<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"814\" height=\"90\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-19.png\" alt=\"\" class=\"wp-image-13297\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-19.png 814w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-19-300x33.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-19-768x85.png 768w\" sizes=\"(max-width: 814px) 100vw, 814px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13278-_heading=h.3dy6vkm\"><\/a><strong>Step 6: Initializing and Enabling Gogs Service<\/strong><\/h3>\n\n\n\n<p>\n  Once you set up the <strong>Gogs <\/strong>service, it\u2019s now time to reload the service daemon through the following command: \n<\/p>\n\n\n\n<pre>\n  sudo systemctl daemon-reload\n<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"813\" height=\"81\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-20.png\" alt=\"\" class=\"wp-image-13298\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-20.png 813w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-20-300x30.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-20-768x77.png 768w\" sizes=\"(max-width: 813px) 100vw, 813px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  Then start the <strong>Gogs <\/strong>service on Ubuntu through the below-given command:\n<\/p>\n\n\n\n<pre>\n  sudo systemctl start gogs\n<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"814\" height=\"89\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-21.png\" alt=\"\" class=\"wp-image-13299\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-21.png 814w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-21-300x33.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-21-768x84.png 768w\" sizes=\"(max-width: 814px) 100vw, 814px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  Ensure enabling the<strong> Gogs <\/strong>service<strong> <\/strong>at system startup by executing the following command:\n<\/p>\n\n\n\n<pre>\n  sudo systemctl enable gogs\n<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"818\" height=\"120\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-22.png\" alt=\"\" class=\"wp-image-13300\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-22.png 818w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-22-300x44.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-22-768x113.png 768w\" sizes=\"(max-width: 818px) 100vw, 818px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  Now, users can verify the <strong>Gogs<\/strong> service status through the below command:\n<\/p>\n\n\n\n<pre>\n  sudo systemctl status gogs\n<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"812\" height=\"494\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-23.png\" alt=\"\" class=\"wp-image-13301\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-23.png 812w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-23-300x183.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-23-768x467.png 768w\" sizes=\"(max-width: 812px) 100vw, 812px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13278-_heading=h.1t3h5sf\"><\/a><strong>Step 7: Finish the Gogs Installation<\/strong><\/h3>\n\n\n\n<p>\n  Now, open the web browser on any system and enter the following address:\n<\/p>\n\n\n\n<pre>\n  http:\/\/ubuntu-ip:3000\/install\n<\/pre>\n\n\n\n<p>\n  Ensure to replace the <strong>ubuntu-ip<\/strong> with the IP address of your Ubuntu system, and change the port number if you have set up a different port number. \n<\/p>\n\n\n\n<p><strong>Note: <\/strong>You can find the Ubuntu IP address via <strong>hostname -I<\/strong> command; also, make sure that you use the Database type according to the database server you have used in the previous steps. If you have followed the previous steps, choose <strong>MySQL<\/strong> database as Database type:\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1540\" height=\"829\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-24.png\" alt=\"\" class=\"wp-image-13302\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-24.png 1540w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-24-300x161.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-24-1024x551.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-24-768x413.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-24-1536x827.png 1536w\" sizes=\"(max-width: 1540px) 100vw, 1540px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1072\" height=\"790\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-25.png\" alt=\"\" class=\"wp-image-13303\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-25.png 1072w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-25-300x221.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-25-1024x755.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-25-768x566.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-25-160x117.png 160w\" sizes=\"(max-width: 1072px) 100vw, 1072px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Additional Tips:<\/strong> If you fail to access the <strong>Gogs<\/strong> interface after entering the following address in another browser, then allow the connection to a specific port using Firewall. You must install Firewall on Ubuntu first using the following command:\n<\/p>\n\n\n\n<pre>\n  sudo apt install ufw -y\n<\/pre>\n\n\n\n<p>\n  Then allow the connection to a specific port using the following command:\n<\/p>\n\n\n\n<pre>\n  sudo ufw allow port\/tcp\n<\/pre>\n\n\n\n<p>\n  After that, enable the UFW and reload it using the below-given commands one at a time:\n<\/p>\n\n\n\n<pre>\n  sudo ufw enable\n<\/pre><pre>\n  sudo ufw reload\n<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"814\" height=\"240\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-26.png\" alt=\"\" class=\"wp-image-13304\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-26.png 814w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-26-300x88.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-26-768x226.png 768w\" sizes=\"(max-width: 814px) 100vw, 814px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  Then reload the address again to access the <strong>Gogs <\/strong>web interface outside the Ubuntu server. \n<\/p>\n\n\n\n<p>\n  After accessing the <strong>Gogs<\/strong> web interface, fill in the required information like Database Type, <strong>gogs<\/strong> database password, and keep the other settings the same. Once done, simply click on the <strong>Install Gogs <\/strong>button:\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1038\" height=\"737\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-27.png\" alt=\"\" class=\"wp-image-13305\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-27.png 1038w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-27-300x213.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-27-1024x727.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-27-768x545.png 768w\" sizes=\"(max-width: 1038px) 100vw, 1038px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  You may experience a <strong>404 Not Found<\/strong> error, but don\u2019t worry go ahead and register yourself on <strong>Gogs, and <\/strong>complete the <strong>Sign-Up<\/strong> details:\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1194\" height=\"865\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-28.png\" alt=\"\" class=\"wp-image-13306\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-28.png 1194w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-28-300x217.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-28-1024x742.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-28-768x556.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-28-160x117.png 160w\" sizes=\"(max-width: 1194px) 100vw, 1194px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  Then <strong>Sign In <\/strong>to the account you created earlier:\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"803\" height=\"448\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-29.png\" alt=\"\" class=\"wp-image-13307\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-29.png 803w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-29-300x167.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-29-768x428.png 768w\" sizes=\"(max-width: 803px) 100vw, 803px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  If everything goes fine, you will be able to access the <strong>Gogs<\/strong> dashboard on the browser:\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1064\" height=\"593\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-30.png\" alt=\"\" class=\"wp-image-13308\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-30.png 1064w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-30-300x167.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-30-1024x571.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-30-768x428.png 768w\" sizes=\"(max-width: 1064px) 100vw, 1064px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13278-_heading=h.4d34og8\"><\/a><strong>Step 8: Test Gogs Self-Hosted Service<\/strong><\/h3>\n\n\n\n<p>\n  To ensure <strong>Gogs<\/strong> is running perfectly, let\u2019s create a sample repository using the <strong>New Repository<\/strong> option:\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1095\" height=\"595\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-31.png\" alt=\"\" class=\"wp-image-13309\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-31.png 1095w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-31-300x163.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-31-1024x556.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-31-768x417.png 768w\" sizes=\"(max-width: 1095px) 100vw, 1095px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  Add your repository name:\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1143\" height=\"718\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-32.png\" alt=\"\" class=\"wp-image-13310\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-32.png 1143w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-32-300x188.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-32-1024x643.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-32-768x482.png 768w\" sizes=\"(max-width: 1143px) 100vw, 1143px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  Scroll down and ensure that you select the option <strong>Initialize this repository with the selected files and templates<\/strong>, then click the <strong>Create Repository<\/strong> button:\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"863\" height=\"590\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-33.png\" alt=\"\" class=\"wp-image-13311\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-33.png 863w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-33-300x205.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-33-768x525.png 768w\" sizes=\"(max-width: 863px) 100vw, 863px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  You can then add a new file or upload your file from the system to the GitHub repository:\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1252\" height=\"739\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-34.png\" alt=\"\" class=\"wp-image-13312\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-34.png 1252w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-34-300x177.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-34-1024x604.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-34-768x453.png 768w\" sizes=\"(max-width: 1252px) 100vw, 1252px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  After that, you can clone the created<strong> sample-repo<\/strong> using the git clone command followed by the URL to your created Git repository: \n<\/p>\n\n\n\n<pre>\n  git clone http:\/\/192.168.221.130:3000\/linux\/sample-repo.git\n<\/pre>\n\n\n\n<p><strong>Note: <\/strong>Don\u2019t forget to change the port number if you have used a different port number for running Gogs on Ubuntu. \n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1453\" height=\"351\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-35.png\" alt=\"\" class=\"wp-image-13313\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-35.png 1453w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-35-300x72.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-35-1024x247.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/word-image-13278-35-768x186.png 768w\" sizes=\"(max-width: 1453px) 100vw, 1453px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  In this way, you can work with <strong>Gogs <\/strong>on Ubuntu 24.04.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-13278-_heading=h.2s8eyo1\"><\/a><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p><strong>Gogs <\/strong>is a robust service for creating your personal Git repositories and having full control over data and repositories. You can install <strong>Gogs<\/strong> on Ubuntu 24.04 by first installing database servers like MariaDB, MySQL, PostgreSQL, or MySQLite3. After that, create your database for <strong>Gogs<\/strong> using the database name and a password; then add a user git, create a logs\u2019 folder, change the ownership of the logs directory, provide full ownership to the directory, and copy the <strong>Gogs<\/strong> service file to systemd. Additionally, move the <strong>gogs<\/strong> source directory to <strong>\/home\/git, <\/strong>and change the ownership to git user and group.<\/p>\n\n\n\n<p>\n  Once everything is done, initiate the daemon, start and enable the <strong>Gogs <\/strong>service, and access the <strong>Gogs <\/strong>web page using the IP address of your Ubuntu system. Ensure adding the default port number <strong>3000<\/strong> with the IP address, in case you haven\u2019t changed it from the <strong>Gogs<\/strong> service file. \n<\/p>\n\n\n\t\t\t\t\t\t\t<h3 style=\"margin-bottom:20px;display:block;width:100%;margin-top:10px\">Frequently Asked Questions <\/h3>\r\n\t\t\t\t\t\t<style>\r\n\t\t\t\t<style>\r\n#wpsm_accordion_13315 .wpsm_panel-heading{\r\n\tpadding:0px !important;\r\n}\r\n#wpsm_accordion_13315 .wpsm_panel-title {\r\n\tmargin:0px !important; \r\n\ttext-transform:none !important;\r\n\tline-height: 1 !important;\r\n}\r\n#wpsm_accordion_13315 .wpsm_panel-title a{\r\n\ttext-decoration:none;\r\n\toverflow:hidden;\r\n\tdisplay:block;\r\n\tpadding:0px;\r\n\tfont-size: 18px !important;\r\n\tfont-family: Open Sans !important;\r\n\tcolor:#000000 !important;\r\n\tborder-bottom:0px !important;\r\n}\r\n\r\n#wpsm_accordion_13315 .wpsm_panel-title a:focus {\r\noutline: 0px !important;\r\n}\r\n\r\n#wpsm_accordion_13315 .wpsm_panel-title a:hover, #wpsm_accordion_13315 .wpsm_panel-title a:focus {\r\n\tcolor:#000000 !important;\r\n}\r\n#wpsm_accordion_13315 .acc-a{\r\n\tcolor: #000000 !important;\r\n\tbackground-color:#e8e8e8 !important;\r\n\tborder-color: #ddd;\r\n}\r\n#wpsm_accordion_13315 .wpsm_panel-default > .wpsm_panel-heading{\r\n\tcolor: #000000 !important;\r\n\tbackground-color: #e8e8e8 !important;\r\n\tborder-color: #e8e8e8 !important;\r\n\tborder-top-left-radius: 0px;\r\n\tborder-top-right-radius: 0px;\r\n}\r\n#wpsm_accordion_13315 .wpsm_panel-default {\r\n\t\tborder:1px solid transparent !important;\r\n\t}\r\n#wpsm_accordion_13315 {\r\n\tmargin-bottom: 20px;\r\n\toverflow: hidden;\r\n\tfloat: none;\r\n\twidth: 100%;\r\n\tdisplay: block;\r\n}\r\n#wpsm_accordion_13315 .ac_title_class{\r\n\tdisplay: block;\r\n\tpadding-top: 12px;\r\n\tpadding-bottom: 12px;\r\n\tpadding-left: 15px;\r\n\tpadding-right: 15px;\r\n}\r\n#wpsm_accordion_13315  .wpsm_panel {\r\n\toverflow:hidden;\r\n\t-webkit-box-shadow: 0 0px 0px rgba(0, 0, 0, .05);\r\n\tbox-shadow: 0 0px 0px rgba(0, 0, 0, .05);\r\n\t\tborder-radius: 4px;\r\n\t}\r\n#wpsm_accordion_13315  .wpsm_panel + .wpsm_panel {\r\n\t\tmargin-top: 5px;\r\n\t}\r\n#wpsm_accordion_13315  .wpsm_panel-body{\r\n\tbackground-color:#ffffff !important;\r\n\tcolor:#000000 !important;\r\n\tborder-top-color: #e8e8e8 !important;\r\n\tfont-size:16px !important;\r\n\tfont-family: Open Sans !important;\r\n\toverflow: hidden;\r\n\t\tborder: 2px solid #e8e8e8 !important;\r\n\t}\r\n\r\n#wpsm_accordion_13315 .ac_open_cl_icon{\r\n\tbackground-color:#e8e8e8 !important;\r\n\tcolor: #000000 !important;\r\n\tfloat:right !important;\r\n\tpadding-top: 12px !important;\r\n\tpadding-bottom: 12px !important;\r\n\tline-height: 1.0 !important;\r\n\tpadding-left: 15px !important;\r\n\tpadding-right: 15px !important;\r\n\tdisplay: inline-block !important;\r\n}\r\n\r\n\t\t\t\r\n\t\t\t<\/style>\t\r\n\t\t\t<\/style>\r\n\t\t\t<div class=\"wpsm_panel-group\" id=\"wpsm_accordion_13315\" >\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_13315 \" href=\"javascript:void(0)\" data-target=\"#ac_13315_collapse1\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tWhat is Gogs?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_13315_collapse1\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tGogs is a lightweight, self-hosted Git service written in Go, designed to be simple, fast, and easy to deploy.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_13315 \" href=\"javascript:void(0)\" data-target=\"#ac_13315_collapse2\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tHow do I install Gogs on Ubuntu 24.04?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_13315_collapse2\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tInstall Gogs by downloading the latest release from GitHub, extracting the package, and configuring it with a web browser.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_13315 \" href=\"javascript:void(0)\" data-target=\"#ac_13315_collapse3\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tWhat dependencies are required for Gogs installation?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_13315_collapse3\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tGogs requires a working Go environment, a web server like <code>Nginx<\/code> or <code>Apache<\/code>, and a database like <code>MySQL<\/code> or <code>PostgreSQL<\/code>.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_13315 \" href=\"javascript:void(0)\" data-target=\"#ac_13315_collapse4\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tCan I run Gogs with a MySQL database?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_13315_collapse4\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tYes, Gogs supports both <code>MySQL<\/code> and <code>PostgreSQL<\/code>. You can configure the database during the setup process.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_13315 \" href=\"javascript:void(0)\" data-target=\"#ac_13315_collapse5\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tWhat ports need to be open for Gogs to work?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_13315_collapse5\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tBy default, Gogs uses port 3000 for HTTP access. Ensure that this port is open and accessible.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\r\n<script type=\"text\/javascript\">\r\n\t\r\n\t\tfunction do_resize(){\r\n\r\n\t\t\tvar width=jQuery( '.wpsm_panel .wpsm_panel-body iframe' ).width();\r\n\t\t\tvar height=jQuery( '.wpsm_panel .wpsm_panel-body iframe' ).height();\r\n\r\n\t\t\tvar toggleSize = true;\r\n\t\t\tjQuery('iframe').animate({\r\n\t\t\t    width: toggleSize ? width : 640,\r\n\t\t\t    height: toggleSize ? height : 360\r\n\t\t\t  }, 250);\r\n\r\n\t\t\t  toggleSize = !toggleSize;\r\n\t\t}\r\n\t\t\r\n<\/script>\t\n\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"<p>Gogs is a self-hosted Git service that allows you to create your personal platform for managing code versions. It works similarly to GitHub, but it runs on your own server, allowing you to have full control over all your repositories and manage them privately without relying on others. It is a lightweight tool that is [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":13318,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[623,622,624,317],"class_list":["post-13278","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-git","tag-gogs","tag-repository","tag-ubuntu-24-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Install Gogs Git on Ubuntu 24.04: In Just 8 Steps - Greenwebpage Community<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-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 Gogs Git on Ubuntu 24.04: In Just 8 Steps - Greenwebpage Community\" \/>\n<meta property=\"og:description\" content=\"Gogs is a self-hosted Git service that allows you to create your personal platform for managing code versions. It works similarly to GitHub, but it runs on your own server, allowing you to have full control over all your repositories and manage them privately without relying on others. It is a lightweight tool that is [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Greenwebpage Community\" \/>\n<meta property=\"article:published_time\" content=\"2025-01-16T05:44:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-16T05:48:18+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/Install-Gogs-Git-on-Ubuntu-24.04-1.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Karim Buzdar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Karim Buzdar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"14 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/\"},\"author\":{\"name\":\"Karim Buzdar\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\"},\"headline\":\"How to Install Gogs Git on Ubuntu 24.04: In Just 8 Steps\",\"datePublished\":\"2025-01-16T05:44:05+00:00\",\"dateModified\":\"2025-01-16T05:48:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/\"},\"wordCount\":1357,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/Install-Gogs-Git-on-Ubuntu-24.04-1.jpeg\",\"keywords\":[\"Git\",\"Gogs\",\"Repository\",\"Ubuntu 24.04\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/\",\"name\":\"How to Install Gogs Git on Ubuntu 24.04: In Just 8 Steps - Greenwebpage Community\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/Install-Gogs-Git-on-Ubuntu-24.04-1.jpeg\",\"datePublished\":\"2025-01-16T05:44:05+00:00\",\"dateModified\":\"2025-01-16T05:48:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/#primaryimage\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/Install-Gogs-Git-on-Ubuntu-24.04-1.jpeg\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/Install-Gogs-Git-on-Ubuntu-24.04-1.jpeg\",\"width\":1020,\"height\":600,\"caption\":\"Install Gogs Git on Ubuntu 24.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/greenwebpage.com\/community\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Gogs Git on Ubuntu 24.04: In Just 8 Steps\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"name\":\"Greenwebpage Community\",\"description\":\"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.\",\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/greenwebpage.com\/community\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\",\"name\":\"Greenwebpage Community\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"width\":512,\"height\":512,\"caption\":\"Greenwebpage Community\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\",\"name\":\"Karim Buzdar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"caption\":\"Karim Buzdar\"},\"sameAs\":[\"https:\/\/greenwebpage.com\"],\"url\":\"https:\/\/greenwebpage.com\/community\/author\/karim\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Gogs Git on Ubuntu 24.04: In Just 8 Steps - Greenwebpage Community","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:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Gogs Git on Ubuntu 24.04: In Just 8 Steps - Greenwebpage Community","og_description":"Gogs is a self-hosted Git service that allows you to create your personal platform for managing code versions. It works similarly to GitHub, but it runs on your own server, allowing you to have full control over all your repositories and manage them privately without relying on others. It is a lightweight tool that is [&hellip;]","og_url":"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/","og_site_name":"Greenwebpage Community","article_published_time":"2025-01-16T05:44:05+00:00","article_modified_time":"2025-01-16T05:48:18+00:00","og_image":[{"width":1020,"height":600,"url":"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/Install-Gogs-Git-on-Ubuntu-24.04-1.jpeg","type":"image\/jpeg"}],"author":"Karim Buzdar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Karim Buzdar","Est. reading time":"14 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/#article","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/"},"author":{"name":"Karim Buzdar","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8"},"headline":"How to Install Gogs Git on Ubuntu 24.04: In Just 8 Steps","datePublished":"2025-01-16T05:44:05+00:00","dateModified":"2025-01-16T05:48:18+00:00","mainEntityOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/"},"wordCount":1357,"commentCount":0,"publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/Install-Gogs-Git-on-Ubuntu-24.04-1.jpeg","keywords":["Git","Gogs","Repository","Ubuntu 24.04"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/","url":"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/","name":"How to Install Gogs Git on Ubuntu 24.04: In Just 8 Steps - Greenwebpage Community","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/#website"},"primaryImageOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/#primaryimage"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/Install-Gogs-Git-on-Ubuntu-24.04-1.jpeg","datePublished":"2025-01-16T05:44:05+00:00","dateModified":"2025-01-16T05:48:18+00:00","breadcrumb":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/#primaryimage","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/Install-Gogs-Git-on-Ubuntu-24.04-1.jpeg","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/01\/Install-Gogs-Git-on-Ubuntu-24.04-1.jpeg","width":1020,"height":600,"caption":"Install Gogs Git on Ubuntu 24.04"},{"@type":"BreadcrumbList","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-gogs-git-on-ubuntu-24-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/greenwebpage.com\/community\/"},{"@type":"ListItem","position":2,"name":"How to Install Gogs Git on Ubuntu 24.04: In Just 8 Steps"}]},{"@type":"WebSite","@id":"https:\/\/greenwebpage.com\/community\/#website","url":"https:\/\/greenwebpage.com\/community\/","name":"Greenwebpage Community","description":"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.","publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/greenwebpage.com\/community\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/greenwebpage.com\/community\/#organization","name":"Greenwebpage Community","url":"https:\/\/greenwebpage.com\/community\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","width":512,"height":512,"caption":"Greenwebpage Community"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8","name":"Karim Buzdar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","caption":"Karim Buzdar"},"sameAs":["https:\/\/greenwebpage.com"],"url":"https:\/\/greenwebpage.com\/community\/author\/karim\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/13278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/comments?post=13278"}],"version-history":[{"count":4,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/13278\/revisions"}],"predecessor-version":[{"id":13320,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/13278\/revisions\/13320"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media\/13318"}],"wp:attachment":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media?parent=13278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/categories?post=13278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/tags?post=13278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}