Gossa is a self-hosted photo gallery written in Go. It lets you organize and share your photos over the web.
In this tutorial, we will guide you through the steps to install Gossa on the latest version of Fedora CoreOS.
Before proceeding with the installation, you need to have:
Git is a version control system used for software development. We need it to clone the Gossa repository from GitHub.
To install Git on Fedora, run the following command in the terminal:
sudo dnf install git
To clone the Gossa repository, run the following command:
sudo git clone https://github.com/pldubouilh/gossa.git /opt/gossa
This command will clone the repository inside the /opt/gossa
directory.
Gossa has a few dependencies that need to be installed before we can run it.
To install the required packages, run the following command:
sudo dnf install npm make golang
This command will install Node.js, Make, and the Go programming language.
To build Gossa, navigate to the gossa
directory and run the following commands:
cd /opt/gossa
sudo make build
This command will build the Go executable for Gossa.
Gossa requires a PostgreSQL database to store its data. To install PostgreSQL, run:
sudo dnf install postgresql-server postgresql-contrib
To initialize the PostgreSQL database, run the following command:
sudo postgresql-setup --initdb
Next, start the PostgreSQL service:
sudo systemctl start postgresql
To create a new user and database for Gossa, run the following commands:
sudo -u postgres createuser --pwprompt gossauser
sudo -u postgres createdb -O gossauser gossadb
This command will create a new PostgreSQL user called gossauser
with a password and a database called gossadb
. After running the command, you will be prompted to enter a password for the gossauser
user.
To configure Gossa, navigate to the gossa
directory and create a new configuration file.
cd /opt/gossa
sudo cp config/cfg.example.yaml config/cfg.yaml
Next, open the config/cfg.yaml
file with your favorite text editor and modify it to match your PostgreSQL credentials.
database:
driver: postgres
host: localhost
port: 5432
user: gossauser
password: password
dbname: gossadb
Replace gossauser
and password
with the PostgreSQL credentials you created in the previous step.
To start Gossa, navigate to the gossa
directory and run the following command:
cd /opt/gossa
sudo ./gossa serve
This command will start the Gossa server. You can now access Gossa by pointing your web browser to http://localhost:8080/
.
In this tutorial, we have shown you how to install Gossa on the latest version of Fedora CoreOS. With Gossa, you can easily manage and share your photos over the web.
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!