How to Install Gossa on POP! OS Latest

Introduction

Gossa is an open-source, self-hosted photo album that runs on your web server. It is built with Go language and designed with simplicity in mind. Gossa lets you create beautiful galleries of your photos and share them with your friends and family. This tutorial will guide you through the process of downloading and installing Gossa on POP! OS Latest.

Prerequisites

Before we begin, ensure you have the following:

  • A server running POP! OS Latest
  • A user account with sudo privileges
  • A running webserver
  • A domain name or a valid IP address

Step 1: Downloading Gossa

  1. Launch your terminal and log in to your server with ssh.
ssh your_username@your_server_ip
  1. Clone the Gossa repository from Github to your local machine with the following command:
git clone https://github.com/pldubouilh/gossa.git
  1. Change the directory to the cloned Gossa directory and the release directory:
cd gossa && cd release
  1. Build the Gossa binary:
make build

Step 2: Configuring Gossa

  1. Create a configuration file for Gossa in the same directory:
nano config.yaml
  1. Paste the following configuration code inside the config.yaml file:
##
# Gossa Configuration File
##

# Database Parameters
database:
  driver: sqlite3
  dsn: "./gossa.db"

# Base URL of your Gossa installation
baseurl: http://yourdomain.com

# Local directory where your photos are located
photodir: /var/www/html/photos

# Thumbnail, display, and cache parameters
images:
  thumbnail:
    width: 250
    height: 250
  display:
    width: 800
    height: 800
  cache:
    max: 1000
    size: 300m

# Authentication Parameters
auth:
  type: basic
  users: 
    - name: gossa
      password: mypassword
  • Replace yourdomain.com with your domain name or IP address.
  • Replace /var/www/html/photos with your photo directory path.
  • Replace mypassword with a strong password of your choice.
  1. Save and exit the config.yaml file by pressing CTRL + X, then Y, and ENTER.

Step 3: Running Gossa

  1. Run the following command in the terminal to start Gossa:
./gossa
  1. Open your web browser and enter the following URL:
http://yourdomain.com:8080
  1. Log in with the username and password you created in the config.yaml file.

  2. Now you can start uploading photos and create galleries on Gossa.

Conclusion

Congratulations! You have successfully installed and configured Gossa on POP! OS Latest. Now you can create beautiful galleries of your photos and share them with your friends and family.