---
title: First start and activation
url: https://doc2.pstreamer.tv/en/manual/first_start/index.html
lang: en
product: Perfect Streamer
version: 2.0.2.362
---

# First start and activation

## Temporary activation and startup

The temporary version has no limit on the number of streams. After installation the **pss** service is inactive, since activation is required to start it. To perform temporary activation, run the script:

```sh
$ /opt/pss/tools/activate.sh
```

The **pss** service will be started and set to start automatically. The script can be given the path to a license file; without an argument the bundled trial license is applied. The file itself is applied by the `pss_lic` utility, which also performs every other operation on the key — see [PSS Lic Perfect Streamer Toolkit v2.0 — the node license](../toolkit/pss_lic.md#toolkit-pss-lic).

You can check that it started successfully:

```sh
$ systemctl status pss
```

In case of problems, see the logs:

```sh
$ tail -n 20 /var/log/pss/main.log
$ journalctl -u pss -n 20
```

The two commands are not equivalent. If the service did not come up at all, the cause may lie earlier than the log itself — its directory is unreachable, `pss.properties` cannot be read — and then there will not be a line about it in *main.log*: the file may be left over from an earlier run and show old content. The service prints such a cause on a line beginning with `!!!`, and it is visible in the system journal, so it is the second command that shows it.

## Initial settings

Connect to the web interface through a browser:

*http://host:8808*

Login: *admin*

Password: *admin*

Two web interfaces are available: the new (main) one at the path */admin*, and the classic one at the path */classic*.

Default service ports:

| Service | HTTP | HTTPS |
| --- | --- | --- |
| Web interface and HTTP API | 8808 | 43981 |
| OTT distribution (HTTP server) | 43972 | 43982 |
| EPG server | 43973 | 43983 |

Right after the installation only the HTTP port of the web interface — `8808` — is available. It is set in the shipped *pss_default.json* file, from which the working *pss.json* is created at the very first start; that file describes no other service, so the remaining ports of the table are opened only after the corresponding service has been configured, and HTTPS — only after TLS has been enabled and a certificate installed. If the `web-server.bind-port` key is absent from the settings, the service uses the built-in fallback value `43971`.

Be sure to change the administrator login and password — in the administrator list of the web interface. Accounts are assigned roles: **Admin** (full access), **Restricted admin** (viewing and pausing streams), **Viewer** (viewing only).

Change the web-interface port if you need to, in the web-server settings. This does not need a restart of the service: it closes the old port and opens the new one itself, so the current connection drops and you have to reconnect on the new port.

Information about the current license is shown on the [License](../webui/administration.md#webui-license) screen.

## Permanent activation

The protection system supports software (SL) and USB (HL) keys. Activation is performed in one of two ways: on the “License” screen of the web interface ([License](../webui/administration.md#webui-license)) or from the console with the `pss_lic` utility ([PSS Lic Perfect Streamer Toolkit v2.0 — the node license](../toolkit/pss_lic.md#toolkit-pss-lic)). The console procedure is described below — it does not depend on the web interface being reachable, and it allows the required key to be named when there are several of them.

1. Export the C2V data for the activation request and send the file to the supplier:

   ```sh
   $ /opt/pss/tools/pss_lic c2v --out host.c2v
   ```
2. Apply the V2C file sent by the supplier and restart the service:

   ```sh
   $ /opt/pss/tools/pss_lic apply --in license.v2c
   $ sudo systemctl restart pss
   ```
3. Check the activation data on the [License](../webui/administration.md#webui-license) screen.

If the node sees several keys, the first step has to name the one you want — see [Exporting the data for the supplier](../toolkit/pss_lic.md#toolkit-pss-lic-export).

The key is chosen when the service starts, and the service does not revisit that choice while it runs. A USB key that is plugged in — whether the trial license is still active or has already expired — is therefore picked up only from the next start: restart the service through the web interface or with `sudo systemctl restart pss`.

## When the annual or trial license expires

The node gives warning of the expiry in advance: two weeks before the end of the term it raises an alert, and once the term has run out it escalates that alert to the level that requires administrator action and stops the service itself. The service will not come back up until a valid license is on the node, so trying to restart it by hand achieves nothing.

If the **pss** service cannot be started, enter the command:

```sh
$ journalctl -u pss -n 20
```

The following error means that the Perfect Streamer license has expired:

```sh
LDK Protection System: Feature has expired (H0041)
```

The node answers a licence found not to be genuine in the same way — by stopping a service that no longer comes up. In the log this is the neighbouring line: it begins the same way, `!!! Licensing error`, but what follows speaks not of an expired term but of a licence not found to be genuine. These two refusals have to be told apart by the text, not by the start of the line; the remedy for the second is to install a genuine licence on the node ([License](../webui/administration.md#webui-license), [PSS Lic Perfect Streamer Toolkit v2.0 — the node license](../toolkit/pss_lic.md#toolkit-pss-lic)).
