@@ -62,7 +62,7 @@ Test your installation by running:
6262.. code-block :: bash
6363
6464 labgrid-venv $ labgrid-client --help
65- usage: labgrid-client [-h] [-x URL ] [-c CONFIG] [-p PLACE] [-d] COMMAND ...
65+ usage: labgrid-client [-h] [-x ADDRESS ] [-c CONFIG] [-p PLACE] [-d] COMMAND ...
6666 ...
6767
6868 If the help for labgrid-client does not show up, open an `Issue
@@ -170,58 +170,11 @@ exporter, and learn how to access the exporter via the client.
170170Coordinator
171171~~~~~~~~~~~
172172
173- To start the coordinator, we will download the labgrid repository, create an
174- extra virtualenv and install the dependencies:
173+ We can simply start the coordinator:
175174
176175.. code-block :: bash
177176
178- $ sudo apt install libsnappy-dev
179- $ git clone https://github.com/labgrid-project/labgrid
180- $ cd labgrid
181- $ virtualenv -p python3 crossbar-venv
182- $ crossbar-venv/bin/pip install --upgrade pip
183- $ crossbar-venv/bin/pip install -r crossbar-requirements.txt
184- $ virtualenv -p python3 labgrid-venv
185- $ source labgrid-venv/bin/activate
186- labgrid-venv $ pip install --upgrade pip
187- labgrid-venv $ pip install .
188-
189- All necessary dependencies should be installed now.
190-
191- Copy and customize the crossbar config file ``.crossbar/config-anonymous.yaml ``
192- for your use case:
193-
194- .. code-block :: bash
195-
196- labgrid-venv $ cp .crossbar/config-anonymous.yaml .crossbar/my-config.yaml
197-
198- .. note :: crossbar is a network messaging framework for building distributed
199- applications, which labgrid plugs into.
200-
201- The path to the Python interpreter in the labgrid-venv needs to be configured
202- in crossbar's config, either manually or with the labgrid-venv being active
203- via:
204-
205- .. code-block :: bash
206-
207- labgrid-venv $ sed -i " s#^ executable: .*\$ # executable: ${VIRTUAL_ENV} /bin/python3#" .crossbar/my-config.yaml
208-
209- .. note :: For long running deployments a different ``workdir`` and port may be
210- used.
211- The crossbar config should reside in a ``.crossbar `` directory in the
212- ``workdir `` in this case.
213- For an example systemd service file, see
214- :ref: `remote-getting-started-systemd-files `.
215-
216- Now we can finally start the coordinator inside the repository:
217-
218- .. code-block :: bash
219-
220- $ crossbar-venv/bin/crossbar start --config my-config.yaml
221-
222- .. note :: If --config is specified as a relative path, the config is expected
223- in a .crossbar subdirectory (as is the case in the labgrid
224- repository).
177+ labgrid-venv $ labgrid-coordinator
225178
226179 Exporter
227180~~~~~~~~
@@ -375,25 +328,19 @@ Follow these instructions to install the systemd files on your machine(s):
375328 installation paths of your distribution.
376329#. Adapt the ``ExecStart `` paths of the service files to the respective Python
377330 virtual environments of the coordinator and exporter.
378- #. Create the coordinator configuration file referenced in the ``ExecStart ``
379- option of the :file: `labgrid-coordinator.service ` file by using
380- :file: `.crossbar/config-anonymous.yaml ` as a starting point. You most likely
381- want to make sure that the ``workdir `` option matches the path given via the
382- ``--cbdir `` option in the service file; see
383- :ref: `remote-getting-started-coordinator ` for further information.
384331#. Adjust the ``SupplementaryGroups `` option in the
385332 :file: `labgrid-exporter.service ` file to your distribution so that the
386333 exporter gains read and write access on TTY devices (for ``ser2net ``); most
387334 often, these groups are called ``dialout ``, ``plugdev `` or ``tty ``.
388335 Depending on your udev configuration, you may need multiple groups.
389- #. Set the coordinator URL the exporter should connect to by overriding the
336+ #. Set the coordinator address the exporter should connect to by overriding the
390337 exporter service file; i.e. execute ``systemctl edit
391338 labgrid-exporter.service `` and add the following snippet:
392339
393340 .. code-block ::
394341
395342 [Service]
396- Environment="LG_CROSSBAR=ws:// <your-host>:<your-port>/ws "
343+ Environment="LG_COORDINATOR= <your-host>[ :<your-port>] "
397344
398345 #. Create the ``labgrid `` user and group:
399346
0 commit comments