aboutsummaryrefslogtreecommitdiff
path: root/docs/admin/04_dbus.rst
blob: f58ae4911a08a5fe9447aaac9f1f5f0b80d600a1 (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.support.sessionservice``, so the service can reach it.

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

::

    sudo ln -s /opt/rwa-session-service/org.ArcticaProject.RWASupportSessionService.service /usr/share/dbus-1/services/org.ArcticaProject.RWASupportSessionService.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.