Installation
Reading the step by step instructions below is highly recommended.
CS:DM requires an accessible PostgreSQL database to work properly.
You can watch the following videos to see the installation steps:
Step 1: The database
A PostgreSQL database version 16 or later is required to use CS Demo Manager, the application will show the following screen until a connection has been established:
If you want to run the database in a Docker container please read this documentation.
- Windows
- macOS
- Linux
- Download the last PostgreSQL installer and launch it.
- Click on
Next
until you reach theSelect Components
step:
- The mandatory components are
PostgreSQL Server
andCommand Line Tools
, the others are optional. - Click on
Next
until you reach thePassword
step:
- Choose a password for the
postgres
user and remember it. You will need it later. - Click on
Next
until you reach thePort
step:
- It's recommended to use the default port
5432
but you can change it if you want. - Click on
Next
and when the installation is finished, click onFinish
.
- Download the last PostgreSQL installer and launch it.
- Click on
Next
until you reach theSelect Components
step:
- The mandatory components are
PostgreSQL Server
andCommand Line Tools
, the others are optional.
pgAdmin
is a GUI tool to manage the database, you may find it useful. - Click on
Next
until you reach thePassword
step:
- Choose a password for the
postgres
user and remember it. You will need it later. - Click on
Next
until you reach thePort
step:
- It's recommended to use the default port
5432
but you can change it if you want. - Click on
Next
and when the installation is finished, click onFinish
.
Instructions depends on your Linux distribution, please refer to the official documentation.
Once PostgreSQL is installed (run psql --version
to make sure it's installed), you have to change the postgres
user password:
sudo -u postgres psql
ALTER USER postgres PASSWORD 'mypassword';
\q
to quitpsql
Step 2: Setup psql
The psql
program is the PostgreSQL command-line interface used by CS Demo Manager to create the database automatically.
This step explains how to add psql
to your PATH
environment variable so that the application can find it and invoke it.
- Windows
- macOS
- Linux
- Make sure you installed the
Command Line Tools
component during the PostgreSQL installation. - Press
Windows+X
to open the the Power User Task Menu. - Click on
System
. - Click on
Advanced system settings
. - Click on
Environment Variables...
- Select the
Path
variable from theUser variables
panel at the top and click onEdit
- Click on
Browse
and select the folderC:\Program Files\PostgreSQL\16\bin
.cautionIf you changed the default PostgreSQL installation path (
C:\Program Files\PostgreSQL\VERSION\bin
), you have to select the correct folder. - Click on
OK
- Restart the application. Make sure to quit it entirely from the tray icon.
- Make sure you installed the
Command Line Tools
component during the PostgreSQL installation. - Open the macOS
Terminal
application, typepsql --version
and pressEnter
.
If the output is something likepsql (PostgreSQL) XX.XX
, you can skip this step, otherwise continue. - Still from the
Terminal
application, type the following command and pressEnter
:echo '\nexport PATH="/Library/PostgreSQL/16/bin:$PATH"' >> ~/.zshrc
caution- If you changed the default PostgreSQL installation path (
/Library/PostgreSQL/VERSION/bin
), you have to adjust the above command accordingly. - The above command assumes that the you are using the default macOS shell
zsh
(since Catalina).
If you are using another shell, you have to replace~/.zshrc
with the correct configuration file.
- If you changed the default PostgreSQL installation path (
- Quit completely the
Terminal
application. - Repeat the first step, this time the output should be something like
psql (PostgreSQL) XX.XX
. - Restart the application. Make sure to quit it entirely from the status bar menu.
It's automatically done during the PostgreSQL installation.
Step 3: The application
- Windows
- macOS
- Linux
- Download the last CS Demo Manager installer from GitHub and install it.
- Type the password you chose during the PostgreSQL installation and click on "Connect".
- Download the last CS Demo Manager installer from GitHub and install it.
- Type the password you chose during the PostgreSQL installation and click on "Connect".
- For RedHat Linux distributions only, enable the Gnome tray extension:
sudo dnf install gnome-shell-extension-appindicator
sudo dnf install gnome-extensions-app
- Reboot
- Open the
Extensions
application and enableAppIndicator and KStatusNotifierItem Support
.
- Download the last CS Demo Manager installer from GitHub and install it.
- Type the password you chose during the PostgreSQL installation and click on "Connect".
Troubleshooting
Can I use a remote database?
Yes, see the documentation.
PSQL binary not found
If you have the error message "PSQL binary not found" it means that the PostgreSQL psql
program is not in your PATH
environment variable.
Please follow the Step 2: Setup psql instructions to fix this issue.
ECONNREFUSED error
This error means the PostgreSQL server is not running or is not reachable.
You should:
- Make sure the postgresql service is running. On Windows you can do this by doing the following:
- Search for services from the Windows search bar and open the Services application.
- Find the service postgresql-x64 and ensure it's running. If it's missing, it means PostgreSQL is not installed.
- Make sure the port is correct. The default port is 5432, but you may have changed it during installation.
- Open a terminal (cmd.exe on Windows)
- Type
psql -h 127.0.0.1 -U postgres -p 5432
and press enter. If you have the same error, chances are the port is incorrect.
- Re-install PostgreSQL and make sure to set the port to 5432 during the installation.
If you are using a remote database, ensure the server is running, and the IP and port are correct.
The app tray icon is missing
On RedHat-based Linux distributions the system tray is not enabled by default.
You have to install the "Gnome extensions app" and enable it to see the tray icon as mentioned in the installation instructions.