Gossa is an open-source photo album that allows you to store and manage your photos in one place. It is built on Golang and designed to be fast, simple, and lightweight. In this tutorial, we'll walk you through the steps to install Gossa on EndeavourOS Latest.
Before you proceed, make sure you have the following prerequisites:
First of all, update the package list and install the required dependencies:
sudo pacman -Syu
sudo pacman -S go git imagemagick
Now, clone the Gossa repository from GitHub:
git clone https://github.com/pldubouilh/gossa.git
Next, switch to the downloaded directory and retrieve the required modules:
cd gossa
go mod download
Finally, build and install Gossa:
go build
sudo mv gossa /usr/local/bin/
Create a configuration file for Gossa:
sudo nano /etc/gossa.yml
And copy the following content into it:
# Address to listen to.
address: "0.0.0.0:8080"
# Disable the upload feature.
disable_upload: false
# The directory in which the database and the uploaded files will be stored.
data_dir: "/var/lib/gossa"
# The allowed image file extensions.
allowed_extensions:
- ".jpg"
- ".jpeg"
- ".png"
- ".bmp"
# The maximum size of an image file (in bytes).
max_file_size: 10485760
# The maximum number of items displayed per page.
max_per_page: 40
# Set the static directory.
# In the example below, "/photos" will be the base URL for the photos.
static_dir: "/photos:/var/lib/gossa/photos"
Save and close the file.
To start Gossa, run:
sudo gossa &
Gossa should now be running on port 8080. You can access it by going to http://YOUR_SERVER_IP:8080 in your web browser.
By default, Gossa has no authentication, so anyone who can access the server can also access the photo album. Therefore, you should add some authentication to the server.
One way to do it is to use a reverse proxy with HTTPS support and authentication. You can use Nginx or Apache for this.
That's it! You now have Gossa installed on your EndeavourOS Latest server. You can use it to store and manage your photos. Remember to secure your installation by implementing proper authentication and security measures.
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!