Guide – How To Start – Gogs – Git Service on Ubuntu 20.04 LTS

Configuring and connecting to Gogs – Git Service on Ubuntu 20.04 LTS

  1. To start the server, run the VM through Azure Portal.
  1. Open port 3000 (TCP) in the network properties in the Azure firewall.
  1. Create a DNS name (there is no need to create a new DNS name if you have one).Go to the ‘Overview’ section in VM properties and configure the DNS name. The name will become, for example, ‘’.
  1. Open a browser on your PC and go to the DNS address http://domain_name:3000, where ‘domain_name’ is the address of your DNS name or DNS name configured on Azure in the step 3 (for example:
  1. The First-time run configuration page is displayed http:/domain_name:3000/install
  1. Select database type- SQLite3
  1. Enter the path: /home/git/gogs/gogs.db
  1. Enter new ‘Application name’ (e.g. ‘Gogs’)
  1. Enter the domain name from step 3
  1. Enter ‘Application URL’ (http://’domain_name’:3000/)
  1. Click “Install Gogs”
  1. Select ‘Register’ in the opened page
  1. Fill in the registration fields and click ‘Create New Account’
  1. First user is created as an administrator
  1. Now you can configure your server and create new users using Admin panel

Initial server setup with Centos

  1. To connect to a VM, you need the PuTTy application to connect via ssh. You can download it at the following link – Download
  1. Run Putty, enter the VM address in the “Host” field, and click “Open” to connect.
  1. In the window that appears, click Accept.
  1. Enter the username and password that was used to create the virtual machine (a password is not displayed when entering)
  1. Next window is displayed

More documentation about Gogs here – What is Gogs?

Website Built with

Up ↑

%d bloggers like this: