How to Install wger on EndeavourOS Latest

wger is a free, open-source and web-based fitness workout and exercise tracking software that aims to help users to manage their fitness goals. In this tutorial, we will learn how to install wger on EndeavourOS Latest.

Prerequisites

Before we begin, ensure that you have the following:

Step 1: Install Python

wger is developed using Python, so before we install wger, we need to install Python on our system. To install Python, run the following command:

sudo pacman -S python

Step 2: Install PostgreSQL

wger uses PostgreSQL as its primary database server. To install PostgreSQL, run the following command:

sudo pacman -S postgresql

After the installation completes, we need to create a new PostgreSQL database and user account for wger.

sudo su postgres
createuser -P wgeruser
createdb -O wgeruser wgerdb
exit

Step 3: Install wger

Next, we will install wger itself. We can either install it from the official repository:

sudo pacman -S wger

or install from the AUR:

git clone https://aur.archlinux.org/wger.git
cd wger
makepkg -si

Step 4: Configure wger

Once we have installed wger, we need to configure it. We will first create a new configuration file:

sudo cp /etc/wger/wger.example.cfg /etc/wger/wger.cfg

Then, we need to edit the configuration file and set the PostgreSQL database settings to match our previously created database:

sudo nano /etc/wger/wger.cfg

Change this setting:

SQLALCHEMY_DATABASE_URI = 'postgresql://wger@localhost/wgerdb'

to:

SQLALCHEMY_DATABASE_URI = 'postgresql://wgeruser:p@ssword@localhost/wgerdb'

Save and exit the file.

Step 5: Start wger

Finally, we can start wger by running the following command:

sudo systemctl start wger

To enable wger at system boot:

sudo systemctl enable wger

Once you have started wger, you can now access it by opening a web browser and navigating to http://localhost:8000. You should now be able to create an account and begin tracking your fitness goals with wger.

Congratulations, you have now installed wger on EndeavourOS Latest!

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!