{"id":30745,"date":"2019-12-18T02:52:19","date_gmt":"2019-12-18T08:52:19","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=30745"},"modified":"2022-06-03T03:33:14","modified_gmt":"2022-06-03T08:33:14","slug":"how-to-install-gogs-on-debian-9","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gogs-on-debian-9\/","title":{"rendered":"How to Install Gogs on Debian 9"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-32081\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/how-to-install-gogs-on-debian9.jpg\" alt=\"\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/how-to-install-gogs-on-debian9.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/how-to-install-gogs-on-debian9-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/how-to-install-gogs-on-debian9-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>This guide will walk you through the process of installing Gogs on a <a href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\">Debian 9 VPS<\/a> with MariaDB as a database server.<\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-32082\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/setting-up-gogs-git-system-on-debian9.jpg\" alt=\"\" width=\"150\" height=\"150\" \/>Gogs is a free and open-source self-hosted Git service written in the Go programming language. It&#8217;s easy-to-install, cross-platform, and lightweight, and all of these attributes allow for Gogs to run on all sorts of hardware easily. This guide should work on other <a title=\"Linux VPS\" href=\"https:\/\/www.rosehosting.com\/linux-vps-hosting\/\" target=\"_blank\" rel=\"noopener noreferrer\">Linux VPS<\/a> systems as well, but it was tested and written for a <a title=\"Debian VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Debian 9 VPS<\/a>. Let&#8217;s begin with the installation.<br \/>\n<!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69dc224e2b3e1\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69dc224e2b3e1\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gogs-on-debian-9\/#Prerequisites\" >Prerequisites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gogs-on-debian-9\/#Step-1-Install-Required-packages\" >Step 1: Install Required packages<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gogs-on-debian-9\/#Step-2-Create-a-MariaDB-Database\" >Step 2: Create a MariaDB Database<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gogs-on-debian-9\/#Step-3-Install-Gogs\" >Step 3: Install Gogs<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gogs-on-debian-9\/#Step-4-Set-Up-Gogs\" >Step 4: Set Up Gogs<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>A <a href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\">Debian 9 Virtual Server<\/a><\/li>\n<li>A user account with sudo privileges, or access to the &#8216;root&#8217; user itself<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Step-1-Install-Required-packages\"><\/span>Step 1: Install Required packages<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Log in to your VPS via SSH as root or as a sudo user:<\/p>\n<pre>ssh userame@IP_Address -p Port_Number<\/pre>\n<p>Make sure you replace &#8220;IP_Address&#8221; and &#8220;Port_Number&#8221; to your server&#8217;s respective IP address and SSH port numbers.<\/p>\n<p>Once logged in, issue the following commands to update all installed packages to their latest available versions:<\/p>\n<pre>sudo apt-get update\r\nsudo apt-get upgrade<\/pre>\n<p>Afterwards, install the git package using the following command:<\/p>\n<pre>sudo apt-get install git<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-2-Create-a-MariaDB-Database\"><\/span>Step 2: Create a MariaDB Database<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Gogs can use MySQL\/MariaDB, PostgreSQL, MSSQL, TiDB and SQLite3 for its database backend.<\/p>\n<p>In this tutorial, we will use MariaDB. If the MySQL or MariaDB server is not installed on your server, you can install the latest MariaDB version by executing the following command:<\/p>\n<pre>sudo apt-get install mysql-server<\/pre>\n<p>When the MariaDB installation is complete, it is recommended to run the <code>mysql_secure_installation<\/code> script to improve the security of your database server:<\/p>\n<pre>sudo mysql_secure_installation<\/pre>\n<p>Answer the security questions as follows. If at any point you are asked for the root MariaDB password before proceeding, just press the [Enter] key, as no password is set by default:<\/p>\n<pre>Remove anonymous users? (Press y|Y for Yes, any other key for No) : <strong>Y<\/strong>\r\nDisallow root login remotely? (Press y|Y for Yes, any other key for No) : <strong>Y<\/strong>\r\nRemove test database and access to it? (Press y|Y for Yes, any other key for No) : <strong>Y<\/strong>\r\nReload privilege tables now? (Press y|Y for Yes, any other key for No) : <strong>Y<\/strong>\r\n<\/pre>\n<p>Log in to the MySQL shell using the MySQL root user and the password that you have previously set up:<\/p>\n<pre>mysql -u root -p<\/pre>\n<p>Create a MySQL database and user for Gogs, and grant permissions to the user by issuing the following commands:<\/p>\n<pre>MariaDB [(none)]&gt; CREATE SCHEMA `gogs` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;\r\nMariaDB [(none)]&gt; GRANT ALL PRIVILEGES ON gogs.* TO 'gogs'@'localhost' IDENTIFIED BY '<span style=\"color: #ff0000;\">strongpassword<\/span>';\r\nMariaDB [(none)]&gt; FLUSH PRIVILEGES;\r\nMariaDB [(none)]&gt; EXIT<\/pre>\n<p>Make sure you replace &#8216;<span style=\"color: #ff0000;\">strongpassword<\/span>&#8216; with an actual strong password.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-3-Install-Gogs\"><\/span>Step 3: Install Gogs<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Create a new system user that will run the Gogs server:<\/p>\n<pre>sudo adduser --home \/opt\/gogs --shell \/bin\/bash --gecos 'Gogs application' gogs<\/pre>\n<p>Next, download the Gogs binary from the <a href=\"https:\/\/github.com\/gogs\/gogs\/releases\" target=\"_blank\" rel=\"noopener noreferrer\">Gogs Github page<\/a> using &#8216;wget&#8217;:<\/p>\n<pre>wget https:\/\/github.com\/gogs\/gogs\/releases\/download\/v0.11.86\/linux_amd64.tar.gz<\/pre>\n<p>Extract the downloaded archive to the <code>\/opt\/gogs<\/code> directory:<\/p>\n<pre>sudo tar xvf linux_amd64.tar.gz --strip-components=1 -C \/opt\/gogs<\/pre>\n<p>Change the ownership of the directory to the Gogs user:<\/p>\n<pre>sudo chown -R gogs:gogs \/opt\/gogs\/<\/pre>\n<p>Next, copy the SystemD unit file. This allows us to create a SystemD service for Gogs:<\/p>\n<pre>sudo cp \/opt\/gogs\/scripts\/systemd\/gogs.service \/etc\/systemd\/system\/<\/pre>\n<p>Open the unit file using your text editor of choice. We&#8217;ll use nano.<\/p>\n<pre>sudo nano \/etc\/systemd\/system\/gogs.service<\/pre>\n<p>Once the file is open, edit it as follows:<\/p>\n<pre>[Unit]\r\n[Unit]\r\nDescription=Gogs\r\nAfter=syslog.target\r\nAfter=network.target\r\nAfter=mariadb.service mysqld.service postgresql.service memcached.service 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\nType=simple\r\nUser=gogs\r\nGroup=gogs\r\nWorkingDirectory=\/opt\/gogs\r\nExecStart=\/opt\/gogs\/gogs web\r\nRestart=always\r\nEnvironment=USER=gogs HOME=\/opt\/gogs\r\n\r\n# Some distributions may not support these hardening directives. If you cannot start the service due\r\n# to an unknown option, comment out the ones not supported by your version of systemd.\r\nProtectSystem=full\r\nPrivateDevices=yes\r\nPrivateTmp=yes\r\nNoNewPrivileges=true\r\n\r\n[Install]\r\nWantedBy=multi-user.target\r\n<\/pre>\n<p>Once you&#8217;re done editing the file, save it, then start and enable the Gogs service:<\/p>\n<pre>sudo systemctl daemon-reload\r\nsudo systemctl start gogs\r\nsudo systemctl enable gogs\r\n<\/pre>\n<p>Run the following command to verify that the Gogs service is started successfully:<\/p>\n<pre>sudo systemctl status gogs\r\n<\/pre>\n<pre>\u25cf gogs.service - Gogs\r\n   Loaded: loaded (\/etc\/systemd\/system\/gogs.service; enabled; vendor preset: enabled)\r\n   Active: active (running) since Mon 2019-05-13 02:57:32 CDT; 29s ago\r\n Main PID: 791 (gogs)\r\n   CGroup: \/system.slice\/gogs.service\r\n           \u2514\u2500791 \/opt\/gogs\/gogs web\r\n\r\nMay 13 02:57:32 vps gogs[791]: 2019\/05\/13 02:57:32 [ WARN] Custom config '\/opt\/gogs\/custom\/conf\/app.ini' not found, ignore this if you're running first time\r\nMay 13 02:57:32 vps gogs[791]: 2019\/05\/13 02:57:32 [TRACE] Custom path: \/opt\/gogs\/custom\r\nMay 13 02:57:32 vps gogs[791]: 2019\/05\/13 02:57:32 [TRACE] Log path: \/opt\/gogs\/log\r\nMay 13 02:57:32 vps gogs[791]: 2019\/05\/13 02:57:32 [TRACE] Log Mode: Console (Trace)\r\nMay 13 02:57:32 vps gogs[791]: 2019\/05\/13 02:57:32 [ INFO] Gogs 0.11.86.0130\r\nMay 13 02:57:32 vps gogs[791]: 2019\/05\/13 02:57:32 [ INFO] Cache Service Enabled\r\nMay 13 02:57:32 vps gogs[791]: 2019\/05\/13 02:57:32 [ INFO] Session Service Enabled\r\nMay 13 02:57:32 vps gogs[791]: 2019\/05\/13 02:57:32 [ INFO] SQLite3 Supported\r\nMay 13 02:57:32 vps gogs[791]: 2019\/05\/13 02:57:32 [ INFO] Run Mode: Development\r\nMay 13 02:57:33 vps gogs[791]: 2019\/05\/13 02:57:33 [ INFO] Listen: http:\/\/0.0.0.0:3000\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-4-Set-Up-Gogs\"><\/span>Step 4: Set Up Gogs<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Once the installation is complete, go to <code>http:\/\/server_ip:3000\/install<\/code> and fill in all of the required fields. Do not forget to replace &#8220;<span style=\"color: #ff0000;\">server_ip<\/span>&#8221; with your server&#8217;s public IP address:<\/p>\n<p><strong>Database Settings<\/strong><\/p>\n<ul>\n<li>Database Type: MySQL<\/li>\n<li>Host: <code>127.0.0.1:3306<\/code><\/li>\n<li>User: gogs<\/li>\n<li>Password: <span style=\"color: #ff0000;\">strongpassword<\/span><\/li>\n<li>Database Name: gogs<\/li>\n<\/ul>\n<p><strong>General Settings of Gogs<\/strong><\/p>\n<ul>\n<li>Application Name: Gogs<\/li>\n<li>Repository Root Path: <code>\/opt\/gogs\/gogs-repositories<\/code><\/li>\n<li>Run User: gogs<\/li>\n<li>Domain: <span style=\"color: #ff0000;\">SERVER_IP<\/span><\/li>\n<li>SSH Port: 22<\/li>\n<li>HTTP Port: 3000<\/li>\n<li>Application URL: http:\/\/<span style=\"color: #ff0000;\">SERVER_IP<\/span>:3000\/<\/li>\n<li>Log Path: <code>\/opt\/gogs\/log<\/code><\/li>\n<\/ul>\n<p>Once done, click on the install button and you&#8217;re good to go.<\/p>\n<p>Administrative access is automatically granted to the first registered user:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-30749\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/gogs-1024x367-1.jpg\" alt=\"\" width=\"1024\" height=\"367\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/gogs-1024x367-1.jpg 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/gogs-1024x367-1-150x54.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/gogs-1024x367-1-300x108.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/gogs-1024x367-1-768x275.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>That\u2019s it. You have successfully installed Gogs on your <a href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\">Debian 9 VPS<\/a>. For more information about how to manage your Gogs installation, please refer to the official Gogs documentation.<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-32083\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/help-with-setup-install-gogs-expert-support-for-debian9.jpg\" alt=\"\" width=\"150\" height=\"150\" \/>Of course, you don\u2019t have to do any of this if you use one of our <a title=\"linux vps hosting\" href=\"https:\/\/www.rosehosting.com\/vps-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Linux VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to set up everything and install Gogs for you. They are available 24\/7 and will take care of your request immediately.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS<\/strong><\/span>. If you liked this post or found it helpful, please share it with your friends on the social networks using the share shortcuts below, or simply leave a comment down in the comments section. Thank you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This guide will walk you through the process of installing Gogs on a Debian 9 VPS with MariaDB as a &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Gogs on Debian 9\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gogs-on-debian-9\/#more-30745\" aria-label=\"Read more about How to Install Gogs on Debian 9\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":32081,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1700],"tags":[1002],"class_list":["post-30745","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","tag-gogs","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Gogs on Debian 9 | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Install Gogs on Debian 9 | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gogs-on-debian-9\/\" \/>\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 on Debian 9\" \/>\n<meta property=\"og:description\" content=\"How to Install Gogs on Debian 9 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gogs-on-debian-9\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2019-12-18T08:52:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:33:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/how-to-install-gogs-on-debian9.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gogs-on-debian-9\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gogs-on-debian-9\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Gogs on Debian 9\",\"datePublished\":\"2019-12-18T08:52:19+00:00\",\"dateModified\":\"2022-06-03T08:33:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gogs-on-debian-9\\\/\"},\"wordCount\":650,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gogs-on-debian-9\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/how-to-install-gogs-on-debian9.jpg\",\"keywords\":[\"gogs\"],\"articleSection\":[\"Debian\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gogs-on-debian-9\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gogs-on-debian-9\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gogs-on-debian-9\\\/\",\"name\":\"How to Install Gogs on Debian 9 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gogs-on-debian-9\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gogs-on-debian-9\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/how-to-install-gogs-on-debian9.jpg\",\"datePublished\":\"2019-12-18T08:52:19+00:00\",\"dateModified\":\"2022-06-03T08:33:14+00:00\",\"description\":\"How to Install Gogs on Debian 9 | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gogs-on-debian-9\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gogs-on-debian-9\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gogs-on-debian-9\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/how-to-install-gogs-on-debian9.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/how-to-install-gogs-on-debian9.jpg\",\"width\":742,\"height\":372},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gogs-on-debian-9\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Gogs on Debian 9\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install Gogs on Debian 9 | RoseHosting","description":"How to Install Gogs on Debian 9 | RoseHosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gogs-on-debian-9\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Gogs on Debian 9","og_description":"How to Install Gogs on Debian 9 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gogs-on-debian-9\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2019-12-18T08:52:19+00:00","article_modified_time":"2022-06-03T08:33:14+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/how-to-install-gogs-on-debian9.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gogs-on-debian-9\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gogs-on-debian-9\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Gogs on Debian 9","datePublished":"2019-12-18T08:52:19+00:00","dateModified":"2022-06-03T08:33:14+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gogs-on-debian-9\/"},"wordCount":650,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gogs-on-debian-9\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/how-to-install-gogs-on-debian9.jpg","keywords":["gogs"],"articleSection":["Debian"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-gogs-on-debian-9\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gogs-on-debian-9\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gogs-on-debian-9\/","name":"How to Install Gogs on Debian 9 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gogs-on-debian-9\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gogs-on-debian-9\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/how-to-install-gogs-on-debian9.jpg","datePublished":"2019-12-18T08:52:19+00:00","dateModified":"2022-06-03T08:33:14+00:00","description":"How to Install Gogs on Debian 9 | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gogs-on-debian-9\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-gogs-on-debian-9\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gogs-on-debian-9\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/how-to-install-gogs-on-debian9.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/09\/how-to-install-gogs-on-debian9.jpg","width":742,"height":372},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gogs-on-debian-9\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Gogs on Debian 9"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/30745","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=30745"}],"version-history":[{"count":1,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/30745\/revisions"}],"predecessor-version":[{"id":41675,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/30745\/revisions\/41675"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/32081"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=30745"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=30745"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=30745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}