wger is a free, open-source workout manager and planner designed to make it easy to track your workouts, bodyweight, and progress. In this tutorial, we will guide you through the process of installing wger on OpenSUSE Latest.
Before proceeding with the installation, make sure your system is up-to-date by running the following command:
sudo zypper update
Also, ensure that you have a non-root user account with sudo privileges.
To install wger on your OpenSUSE Latest, you need to install the following dependencies:
To Install Node.js and npm, run the following command:
sudo zypper install nodejs npm
wger requires PostgreSQL as its backend database. To install PostgreSQL, run the following command:
sudo zypper install postgresql-server postgresql-contrib
Once installed, you need to initialize the PostgreSQL database and start the PostgreSQL service. Run the following commands to do so:
sudo systemctl enable postgresql
sudo systemctl start postgresql
sudo su - postgres
psql
You will now be logged in to the PostgreSQL shell. Next, create a new database user and database for wger:
CREATE USER wger PASSWORD 'password';
CREATE DATABASE wger OWNER wger;
\q
exit
To install wger, first clone the official GitHub repository using the following command:
git clone https://github.com/wger-project/wger.git
Next, navigate to the cloned directory:
cd wger
Now, install the required Python packages using pip:
pip3 install -r requirements.txt
Finally, install the required Node.js packages using npm:
npm install
Next, you need to configure wger by creating a config file. To do so, first copy the default configuration file:
cp settings/local-dist.py settings/local.py
Next, open the newly created settings/local.py
file using your favorite text editor:
nano settings/local.py
In the file, modify the DATABASES
section with the credentials for the PostgreSQL database that you created earlier:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'wger',
'USER': 'wger',
'PASSWORD': 'password',
'HOST': 'localhost',
'PORT': '',
}
}
Save and close the file.
Once you have completed the above steps, you can now start wger by running the following command:
python3 manage.py runserver
You can now access wger by opening a web browser and navigating to http://localhost:8000
. You will see the wger homepage, and you can start using wger by creating a new account.
In this tutorial, we have explained how to install wger on OpenSUSE Latest. wger is a powerful and useful tool for managing your workouts and tracking your progress, and with the help of this guide, you can readily install and set it up on your OpenSUSE Latest system.
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!