aboutsummaryrefslogtreecommitdiff
path: root/docs/admin/04_dbus.rst
blob: 0e6e47b03b4f226603a2ea46fd6a6aef487156fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Installation with D-Bus activation
==================================

The recommended way to install the RWA Session Service is as
systemd unit file started by the D-Bus daemon automatically.

As a first step use ``apt`` to globally install the dependencies as debian packages:

::

	sudo apt install python3 python3-venv python3-pip x11vnc libcairo2-dev libdbus-glib-1-dev libgirepository1.0-dev wget \
        python3-flask python3-requests python3-port-for python3-websockify python3-dbus python3-gi python3-psutil python3-dynaconf

Then make sure the source code is located in ``/opt/rwa-session-service``, so the service can reach it.

As last thing, you have to create a symlink (or copy the file) to ``org.ArcticaProject.RWA.service``.

::

    sudo ln -s /opt/rwa-session-service/org.ArcticaProject.RWA.service /usr/share/dbus-1/services/org.ArcticaProject.RWA.service

With this installed, you can easily send commands to the dbus daemon, which then automatically will check if there is
already running a service or if the service has to be started – no further action is required by you.