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.
Before installing Gossa, make sure you have installed the following packages:
sudo apt update
sudo apt install git golang
Clone the Gossa repository from GitHub using the git command:
sudo git clone https://github.com/pldubouilh/gossa.git /opt/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
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.
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.
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!