|
|
|
|
|
In this installation scenario you use our repo of .deb packages and manually provide dependencies.
|
|
|
|
|
|
## Dependencies
|
|
|
|
|
|
PrivMX Team Server requires nodejs 14 and mongodb >= 4.2 with replica set enabled. Please follow your system specific installation steps for both packages.
|
|
|
|
|
|
### nodejs 14
|
|
|
|
|
|
Website: https://nodejs.org/ (a Debian related info is [here](https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions)).
|
|
|
|
|
|
### mongodb >= 4.2
|
|
|
|
|
|
(You can use an existing mongodb installation - see [configuration file](Team-Server-configuration-file#external-mongodb))
|
|
|
|
|
|
Website: https://www.mongodb.com/ (a Debian related info is [here](https://docs.mongodb.com/manual/tutorial/install-mongodb-on-debian/)).
|
|
|
|
|
|
The "Replica set" in mongo is needed because we are using transactions (replica set can be enabled in a single instance mongo, too). For more info, please read [mongodb information](https://docs.mongodb.com/manual/administration/replica-set-deployment/) or our [shorter instruction](Enabling-mongodb-replica-set).
|
|
|
|
|
|
|
|
|
## Installing PrivMX Team Server
|
|
|
|
|
|
First install PrivMX repository key onto your system and then add the repo to your sources:
|
|
|
|
|
|
```
|
|
|
wget -qO - https://dev.privmx.com/deb/privmx-deb.gpg | sudo apt-key add -
|
|
|
echo 'deb https://dev.privmx.com/deb stable/' | sudo tee /etc/apt/sources.list.d/privmx-stable.list
|
|
|
```
|
|
|
|
|
|
And then, you can install the server:
|
|
|
|
|
|
```
|
|
|
sudo apt-get update
|
|
|
sudo apt-get install privmx-team-server
|
|
|
```
|
|
|
|
|
|
|
|
|
## Required configuration
|
|
|
|
|
|
Before you start your team server, you have to set your domain name and port in the [configuration file](Team-Server-configuration-file).
|
|
|
|
|
|
|
|
|
## First run
|
|
|
|
|
|
Start the service:
|
|
|
|
|
|
```
|
|
|
sudo service privmx-team-server start
|
|
|
```
|
|
|
|
|
|
After the system service starts for the first time, an activation token (ACToken) is generated by the Team Server - you can find it in file
|
|
|
```
|
|
|
/var/lib/privmx-team-server/{your-domain}-{date}.actoken
|
|
|
```
|
|
|
|
|
|
Run a client app on your computer to activate the server:
|
|
|
|
|
|
1. Download and install the PrivMX desktop application,
|
|
|
2. on the login screen, select "Use ACToken" and paste the token generated by your server.
|
|
|
3. Set an username and password for the first user (Team Keeper account) and complete the activation.
|
|
|
|
|
|
Happy PrivMXing! :)
|
|
|
|
|
|
|
|
|
|
|
|
### Updating PrivMX Team Server
|
|
|
|
|
|
Update your package list:
|
|
|
|
|
|
```
|
|
|
sudo apt-get update
|
|
|
```
|
|
|
|
|
|
Update PrivMX Team server:
|
|
|
|
|
|
```
|
|
|
sudo apt-get install privmx-team-server
|
|
|
```
|
|
|
|
|
|
Restart the service:
|
|
|
|
|
|
```
|
|
|
sudo service privmx-team-server restart
|
|
|
```
|
|
|
|
|
|
That's it!
|
|
|
|
|
|
|