Skip to content

Commit eb2e0c9

Browse files
authored
Merge pull request #77 from babeloff/main
Changes Related to Installer Updates
2 parents f51379f + 897390b commit eb2e0c9

File tree

20 files changed

+176
-127
lines changed

20 files changed

+176
-127
lines changed

docs/HowToHelp/DevSetupPipVScode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ open VS Code Explorer to the location of the FreeTAKServer project
139139

140140

141141
### FTS YAML File
142-
In the folder containing FreeTakServer repo create a file:
142+
In the folder containing the FreeTakServer repo create a file:
143143
`FTSConfig.yaml`
144144

145145

docs/Installation/mechanism/Ansible/ZeroTouchInstall.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ This `ZTI` installs and configures FreeTAKHub components on a single device.
4040
### Services Status
4141
This command will output the status of these services
4242
```
43-
sudo systemctl status fts.service fts-ui.service mumble-server.service nodered.service mediamtx.service
43+
sudo systemctl status fts.service fts-ui.service mumble-server.service nodered.service rtsp-simple-server.service
4444
```
4545

46+
Note:: `rtsp-simple-server` is also known as `mediamtx`.
47+
4648
[how to start / stop / enable a service?](../../../Troubleshooting/Service.md)
4749

4850

@@ -220,7 +222,7 @@ wget -qO - bit.ly/freetakhub2 | sudo bash -s -- --legacy
220222

221223
??? tip "testing a forked repository."
222224
```console
223-
export MY_IPA=10.2.118.124
225+
export MY_IPA=10.2.118.126
224226
export MY_REPO=babeloff
225227
wget -qO - https://raw.githubusercontent.com/${MY_REPO}/FreeTAKHub-Installation/main/scripts/easy_install.sh | sudo bash -s -- --ip-addr ${MY_IPA} --repo https://github.com/${MY_REPO}/FreeTAKHub-Installation.git
226228
```

docs/Installation/mechanism/Manual/Installation.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# FreeTAK Server Installation
33
This guide will walk you through installing FreeTAKServer 2.x
44

5-
## 0. Document Goals
5+
## Document Goals
66

77
- Prepare host OS
88
- Install FreeTAKServer
@@ -13,15 +13,15 @@ This guide will walk you through installing FreeTAKServer 2.x
1313
- **TBD** ~~Install the [Video Service](../../../administration/brokered/Video/Installation.md)~~
1414

1515
---
16-
## Note: Linux Distributions
16+
### Note: Linux Distributions
1717

1818
The main supported OS is Ubuntu 22.04.
1919
Due to cross-compatibility, Debian 10 and the latest Raspbian also work.
2020

2121
Centos/RHEL/Fedora installation instructions are provided on a best-effort volunteer basis.
2222

2323
---
24-
## 1. Update OS Packages
24+
## Update OS Packages
2525

2626
Update OS Packages before proceeding with the installation
2727

@@ -46,7 +46,7 @@ sudo dnf update
4646
</details>
4747

4848
---
49-
## 2. Pre-requisite Software
49+
## Pre-requisite Software
5050

5151

5252
Install packages from the distro repo
@@ -100,7 +100,7 @@ source venv/bin/activate
100100
</details>
101101

102102
---
103-
## 3. Install Python Libraries
103+
## Install Python Libraries
104104

105105
<details>
106106
<summary>
@@ -128,7 +128,7 @@ pip install wheel pycairo
128128
</details>
129129

130130
---
131-
## 4. Remove Old Installation
131+
## Remove Old Installation
132132
**YOU MUST DO THIS IF:**
133133

134134
- Free TAK Server has been installed before
@@ -172,7 +172,7 @@ sudo rm /opt/FTS/FTSDataBase.db
172172
</details>
173173

174174
---
175-
## 5. Install FreeTAKServer
175+
## Install FreeTAKServer
176176
Install the FreeTAKServer and the associated Web UI
177177

178178
<details>
@@ -223,7 +223,7 @@ This will download and install version 0.2.0.13 of FreeTAKServer. If no version
223223
</details>
224224

225225
---
226-
## 6. Check Installation
226+
## Check Installation
227227

228228
The pip utility allows the user to check the installation and dependency status of a package.
229229

@@ -237,7 +237,7 @@ Otherwise, there was an issue with the pip installation,
237237
and you should investigate the pip-generated installation logs for more information.
238238

239239
---
240-
## 7. Configure and Run FreeTAKServer
240+
## Configure and Run FreeTAKServer
241241

242242
FTS versions older than 1.9 are not configured this way. For versions <1.9 you
243243
will need to locate older versions of this document in the repo history.
@@ -309,12 +309,12 @@ In virtualenv installations,
309309
it is inside the virtualenv directory.
310310

311311
The wizard creates the YAML configuration file under the location you selected,
312-
the default location is `/opt/FTSConfig.yaml`.
312+
the default location is `/opt/fts/FTSConfig.yaml`.
313313

314314
FreeTAKServer will then proceed start all the services.
315315

316316
---
317-
## 7. FTS Configuration
317+
## FTS Configuration
318318
### Manual `FTSConfig.yaml`
319319

320320
!!! warning
@@ -335,7 +335,8 @@ ConnectionMessage = f'Welcome to FreeTAKServer {version}. The Parrot is not dead
335335
```
336336

337337
---
338-
## 9. FTS-UI Configuration
338+
339+
## FTS-UI Configuration
339340

340341
Edit the `config.py` file in the `FreeTAKServer-UI` directory where it was installed by pip
341342

@@ -423,7 +424,7 @@ app.config['SYSSTATUSINTERVAL'] = '600000';
423424
app.config['DATAPACKAGESIZELIMIT'] = '15360000';
424425
```
425426

426-
### 10. Start UI
427+
### Start UI
427428

428429
In the terminal, navigate to the `FreeTAKServer-UI` directory wherever it was
429430
installed by the pip utility.
@@ -459,7 +460,7 @@ to that shown below.
459460
```
460461

461462
---
462-
## 11. Next Steps
463+
## Next Steps
463464

464465
### Create a service
465466

@@ -486,7 +487,7 @@ IP = '[FTS external IP]'
486487
APPIP = '[FTS-UI internal IP]'
487488
```
488489

489-
## 12. Check Installation
490+
## Check Installation
490491

491492
After finishing all the steps, make sure your configuration is acceptable and
492493
server running properly.

docs/Installation/mechanism/Manual/Manual.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if you are running as root, `/root` is a good choice.
3131
Original Value
3232
```python
3333
# this should be set before startup
34-
DBFilePath = str(r'/opt/FTSDataBase.db')
34+
DBFilePath = str(r'/opt/fts/FTSDataBase.db')
3535
```
3636

3737
As roots Home Folder

docs/Installation/platform/Cloud/AWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ If anything fails, check IP values in the following files:
6767

6868
### config.py
6969

70-
ZTI installs this file in /root/fts.venv/lib/python3.11/site-packages/FreeTAKServer-UI/config.py
70+
ZTI installs this file in /opt/fts.venv/lib/python3.11/site-packages/FreeTAKServer-UI/config.py
7171

7272
* APPIP: Internal IP
7373
* IP: Public IP

docs/Installation/platform/Windows/Windows_Manual_Install.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,14 @@ Configure the `FreeTakServer` by editing the `<site-packages>\FreeTAKServer\core
169169

170170
Path examples:
171171
* native Windows install: `C:\Software\python\Lib\site-packages\FreeTAKServer\core\configuration\MainConfig.py`
172-
* ZTI python virtual environment: `/root/fts.venv/lib/python3.11/site-packages/FreeTAKServer/core/configuration/MainConfig.py`
172+
* ZTI python virtual environment: `/opt/fts.venv/lib/python3.11/site-packages/FreeTAKServer/core/configuration/MainConfig.py`
173173
* conda env named `tak`: `C:\Users\user\micromamba\envs\tak\Lib\site-packages\FreeTAKServer\core\configuration\MainConfig.py`
174174

175175
Configure the `FreeTAKServer-UI` by editing the `<site-packages>\FreeTAKServer-UI\config.py` file.
176176

177177
Path examples:
178178
* native Windows install: `C:\Software\python\Lib\site-packages\FreeTAKServer-UI\config.py`
179-
* ZTI python virtual environment: `/root/fts.venv/lib/python3.11/site-packages/FreeTAKServer-UI/config.py`
179+
* ZTI python virtual environment: `/opt/fts.venv/lib/python3.11/site-packages/FreeTAKServer-UI/config.py`
180180
* conda env named `tak`: `C:\Users\user\micromamba\envs\tak\Lib\site-packages\FreeTAKServer-UI\config.py`
181181

182182
```text

docs/Troubleshooting/ManualConfiguration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ if you are running as root, `/root` is a good choice.
3131
Original Value
3232
```python
3333
# this should be set before startup
34-
DBFilePath = str(r'/opt/FTSDataBase.db')
34+
DBFilePath = str(r'/opt/fts/FTSDataBase.db')
3535
```
3636

3737
As roots Home Folder
3838

3939
```python
4040
# this should be set before startup
41-
DBFilePath = str(r'/root/FTSDataBase.db')
41+
DBFilePath = str(r'/opt/fts/FTSDataBase.db')
4242
```
4343
### MySQL database
4444
FTS supports an abstraction layer, so it's easy to use a different database like MySQL.

docs/Troubleshooting/Service.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ While they can grow to be complex, they are usually very simple.
3232
### background
3333
The main directive is ExecStart, which specifies the command that should be run when the service is started. The command is
3434
```bash
35-
/usr/bin/python3 /root/fts.venv/lib/python3.11/site-packages/FreeTAKServer-UI/run.py.
35+
/usr/bin/python3 /opt/fts.venv/lib/python3.11/site-packages/FreeTAKServer-UI/run.py.
3636
```
3737
Here's what each part of the command does:
3838

@@ -42,12 +42,12 @@ Here's what each part of the command does:
4242
-m
4343
: This option tells Python to run a module as a script.
4444

45-
/root/fts.venv/lib/python3.11/site-packages/FreeTAKServer-UI/run.py
45+
/opt/fts.venv/lib/python3.11/site-packages/FreeTAKServer-UI/run.py
4646
: This is the path to the Python module that should be run as a script.
4747

4848
So when the service is started,
4949
the Python interpreter will run the `run.py` module
50-
located in the `/root/fts.venv/lib/python3.11/site-packages/FreeTAKServer-UI/` directory.
50+
located in the `/opt/fts.venv/lib/python3.11/site-packages/FreeTAKServer-UI/` directory.
5151

5252
This code above is running `FreeTAKServer-UI`,
5353
which is a user interface for `FreeTAKServer`.

docs/Troubleshooting/SocketIssue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ sudo reboot -n
3636
!!! note
3737
The FTS certs directory can generally be found at
3838
```shell
39-
/root/fts.venv/lib/python3.11/site-packages/FreeTAKServer/certs
39+
/opt/fts.venv/lib/python3.11/site-packages/FreeTAKServer/certs
4040
```
4141

4242
# SSL issue: Change the Number of max file open

docs/Troubleshooting/fts-core-server.md

Lines changed: 51 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,66 @@
33

44
![image](../Installation/images/zero-touch-deply-default.png)
55

6-
Some of these services have a secure and a clear instance.
76

8-
The core consists of the following logical elements (with the indicated default ports):
7+
## Components
98

10-
* API Service
11-
* REST instance (port 19023)
12-
* websocket instance (port 19023)
13-
* DP Service
14-
* SSL instance (port 8443)
15-
* Clear instance (port 8080)
16-
* Federation Service
17-
* Clear instance (port 9000)
18-
* CoT Service
19-
* SSL instance (port 8089)
20-
* Clear instance (port 8087)
9+
The core consists of several logical components.
10+
They are all TCP ports, some encrypted via SSL and some in the clear.
2111

22-
## API Service
12+
Note:: The indicated ports are default values.
2313

14+
### Application Programming Interface (API) Service
2415

25-
## DP Service
16+
* REST instance (port 19023)
17+
* websocket instance (port 19023)
2618

19+
### Digital Py (DP) Service
2720

28-
## Federation Service
21+
* SSL instance (port 8443)
22+
* Clear instance (port 8080)
2923

24+
### Federation Service
25+
26+
* Clear instance (port 9000)
3027

3128
## CoT Service
3229

30+
* SSL instance (port 8089)
31+
* Clear instance (port 8087)
32+
33+
## Reconfiguration
34+
35+
The `ZeroTouch` installer makes assumptions configuring the system.
36+
There are corner cases which `ZeroTouch` will miss.
37+
For example, `ZTI` acquires the IP address by, effectively using:
38+
```bash
39+
curl https://ifconfig.me/ip
40+
```
41+
In several environments this produces the desired result.
42+
In the case where the server is not on the public internet,
43+
this result will be incorrect.
44+
The following is more likely to provide the IP address you want.
45+
```bash
46+
ip addr
47+
```
48+
49+
[Verify and/or Edit the `fts` configuration file](../administration/usingConsole.md)
50+
```
51+
/opt/fts/FTSConfig.yaml
52+
```
53+
54+
Here is a fragment of that configuration file.
55+
```yaml
56+
Addresses:
57+
FTS_COT_PORT: 8087
58+
FTS_SSLCOT_PORT: 8089
59+
FTS_DP_ADDRESS: 127.0.0.1
60+
FTS_USER_ADDRESS: 127.0.0.1
61+
FTS_API_PORT: 19023
62+
FTS_FED_PORT: 9000
63+
FTS_API_ADDRESS: 127.0.0.1
64+
```
65+
Adjust `FTS_DP_ADDRESS`, `FTS_USER_ADDRESS` & `FTS_API_ADDRESS`
66+
to reflect your IP (or ZeroTier IP) address.
67+
3368

0 commit comments

Comments
 (0)