Gossa is a self-hosted photo album written in Go. In this tutorial, we will go through the steps to install Gossa on Elementary OS Latest.
Before we get started, make sure your system has the following prerequisites:
If any of the prerequisites are not met, you can install them by running the following commands:
sudo apt-get update
sudo apt-get install curl git
Gossa is written in Go, so we need to install Go to run it. To install Go, follow these steps:
curl -O https://dl.google.com/go/go1.16.7.linux-amd64.tar.gz
/usr/local
directory.sudo tar -xvf go1.16.7.linux-amd64.tar.gz -C /usr/local
/etc/profile
file.export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
source /etc/profile
go version
Now that we have installed Go, we can install Gossa. To do that, follow these steps:
git clone https://github.com/pldubouilh/gossa.git
gossa
directory.cd gossa
go build
/usr/local/bin
directory.sudo cp gossa /usr/local/bin/
gossa -h
If Gossa is installed correctly, you should see the help message.
Gossa needs a configuration file to run. We will create a basic configuration file to get started. Follow these steps:
sudo mkdir /etc/gossa
gossa.conf
.sudo nano /etc/gossa/gossa.conf
# Gossa configuration file
[server]
# Listening address
addr = ":8080"
# Base URL (with trailing slash)
baseurl = "/"
# Absolute path to the directory containing the photos
photosdir = "/path/to/photos"
# Absolute path to the database directory
dbdir = "/path/to/database"
# Secret key for sessions
secret = "secret"
Replace /path/to/photos
and /path/to/database
with the absolute path to your photo directory and database directory, respectively.
sudo mkdir /var/lib/gossa
sudo chown -R $USER:$USER /etc/gossa /var/lib/gossa
sudo chmod -R 755 /etc/gossa /var/lib/gossa
Now that Gossa is installed and configured, we can run it. Follow these steps:
gossa -conf /etc/gossa/gossa.conf
http://localhost:8080
to access the Gossa photo album.Congratulations! You have successfully installed Gossa on Elementary OS Latest. You can now upload your photos and start browsing them using Gossa.
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!