How to Install Goshorly on Fedora Server Latest

Goshorly is an open source URL shortening service developed in Golang. In this tutorial, we will discuss the installation process of Goshorly on Fedora Server Latest.

Prerequisites

Before starting with the installation process of Goshorly, you must ensure that the following prerequisites are met:

Installation Steps

  1. Login to your Fedora Server Latest instance using the sudo user.

  2. Update the system packages using the following command:

    $ sudo dnf update -y
    
  3. Install Golang on the system using the following command:

    $ sudo dnf install golang -y
    
  4. Set up the GOPATH environment variable using the following command:

    $ export GOPATH=$HOME/go
    $ export PATH=$GOPATH/bin:$PATH
    
  5. Clone the Goshorly repository from the Git server using the following command:

    $ go get gitea.hackmi.ch/Phil/goshorly.git
    
  6. Navigate to the Goshorly directory using the following command:

    $ cd $GOPATH/src/gitea.hackmi.ch/Phil/goshorly
    
  7. Install the required Golang packages using the following command:

    $ go get ./...
    
  8. Build the Goshorly binary using the following command:

    $ go build
    
  9. Run the Goshorly service using the following command:

    $ ./goshorly
    
  10. Verify that the Goshorly service is running by opening a web browser and entering the following URL:

    http://localhost:8080
    

    You should see the Goshorly homepage.

Congratulations! You have successfully installed Goshorly on Fedora Server Latest. You can now use it as your own URL shortening service.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!