In this tutorial, we will guide you through the installation process of Pretix, an open-source event ticketing system, on OpenSUSE Latest. Pretix allows you to sell tickets and handle registrations for your events in a hassle-free manner. Let’s get started!
Before installation, make sure that your system meets the following requirements:
Points to Note:
For this tutorial, we will use PostgreSQL. If you are using MariaDB, you may need to make adjustments.
In case you have not installed Apache and PostgreSQL, use the following command to install them:
sudo zypper install apache2 postgresql-server postgresql postgresql-contrib
You should have basic knowledge of using the terminal and the Linux environment.
First, you need to set up your Pretix installation by creating a new user and group. Open the Terminal and enter the following commands:
sudo useradd -r -m -d /opt/pretix -s /bin/bash pretixuser
sudo usermod -a -G pretixuser wwwrun
Points to Note:
/opt/pretix
as the installation directory for Pretix. You can choose any directory to your preference.You can download the Pretix package from the official website using the following command:
cd /opt/pretix
sudo wget https://files.pretix.eu/releases/pretix-latest.tar.gz
sudo tar -xzf pretix-latest.tar.gz
sudo chown -R pretixuser:pretixuser pretix
Before proceeding with the installation, you need to install the dependencies for Pretix. Use the following command:
sudo zypper install gcc libffi-devel libxml2-devel libxslt-devel libjpeg8-devel libldap-2_4-devel nodejs14 npm12
Now, it’s time to install Pretix using the setup script.
cd /opt/pretix
sudo -H -u pretixuser bash
source /opt/pretix/venv/bin/activate
cd pretix/src
python3 -m pip install -U pip wheel
python3 -m pip install -U -r requirements.txt
python3 setup.py build_assets
python3 setup.py install
python3 setup.py migrate
python3 manage.py compilemessages
python3 manage.py collectstatic
Points to Note:
config.yml
located in /opt/pretix/pretix.cfg
/opt/pretix/pretix.cfg
.Now that you have installed Pretix, you need to configure Apache to serve it. Create a new Apache configuration file by running:
sudo nano /etc/apache2/conf.d/pretix.conf
Copy and paste the following content:
WSGIApplicationGroup %{GLOBAL}
WSGIDaemonProcess pretix user=pretixuser group=pretixuser home=/opt/pretix processes=2 threads=15 maximum-requests=2000
WSGIProcessGroup pretix
Alias /static /opt/pretix/src/pretix/static
Alias /media /opt/pretix/data/
<Directory /opt/pretix/src/pretix/static>
Require all granted
</Directory>
<Directory /opt/pretix/data>
Require all granted
</Directory>
<Directory /opt/pretix/src/pretix/>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIScriptAlias / /opt/pretix/src/pretix/wsgi.py
Save and close the file.
Now, enable and start the Apache service:
sudo systemctl enable apache2
sudo systemctl start apache2
Finally, open your web browser and enter http://localhost
or your server’s IP address. You should see the Pretix login screen. Use your administrator credentials to log in and start managing your events.
Congratulations! You have successfully installed Pretix on OpenSUSE 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!