How to Install Gossa on Debian Latest

Gossa is an open-source, self-hosted photo album written in Go. It helps to store and share your photos with your family, friends, and colleagues easily. In this tutorial, we will show you how to install Gossa on Debian latest.

Prerequisites

Step 1: Install Dependencies

Before installing Gossa, make sure you have installed the following packages:

sudo apt update
sudo apt install git golang

Step 2: Clone Gossa Repository

Clone the Gossa repository from GitHub using the git command:

sudo git clone https://github.com/pldubouilh/gossa.git /opt/gossa

Step 3: Install Gossa

Now that you have cloned the Gossa repository, navigate to the gossa directory and install it using the Go command:

cd /opt/gossa
sudo go build

Step 4: Configure Gossa

After installing Gossa, you need to configure the database settings. The database configuration needs to be edited in the configuration file config.toml.

sudo cp /opt/gossa/config.sample.toml /opt/gossa/config.toml
sudo nano /opt/gossa/config.toml

Edit the following lines:

[datastore]
driver="mysql"
sources="gossa:gossa@tcp(localhost:3306)/gossa" 

Replace the gossa:gossa with the database username and password of your choice, and replace the localhost:3306 with your database host and port.

Save the file and exit.

Step 5: Start Gossa

Start the Gossa server using the following command:

cd /opt/gossa
sudo ./gossa serve

By default, it listens at http://0.0.0.0:8080. You can access Gossa by visiting this URL in a web browser.

Conclusion

In this tutorial, you learned how to install Gossa on Debian latest. Now you have a fully self-hosted photo album application running on your Debian server. You can now upload and share your photos with ease!

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!