Compare commits

...

2 Commits

  1. 38
      README.md
  2. 13
      fetapd.service

38
README.md

@ -1,7 +1,6 @@
# fetapi - FeTAp with a Raspberry Pi # fetapi - FeTAp with a Raspberry Pi
``` ```
,ooFeTApFeTApFeTA%=+-,. ,ooFeTApFeTApFeTA%=+-,.
,+FeTAp+' `o,, ,+FeTAp+' `o,,
,oFeTAp+ `, ,oFeTAp+ `,
@ -23,12 +22,33 @@
o:N H:a e, G o:N H:a e, G
t:a s:c c, ,x+x+' t:a s:c c, ,x+x+'
k:T:@:U:M:R:n; h, ,p+e+r+a+t/ k:T:@:U:M:R:n; h, ,p+e+r+a+t/
`@:n:M:E:' `@:n:M:E:' `T=i=s=c=h=A=p/
``` ```
## Installation ## Installation
Some of the following instructions must be executed with `root` privileges.
### Installing `fetapd`
1. Clone this repository (together with `pylinphone` as sub-module)
```
cd /opt
git clone https://git.blinkenbunt.org/LUG-Saar/fetapi.git
git submodule update
```
2. Configure and enable `fetapd` as `systemd` service
```
ln -sr fetapd.service /etc/systemd/system/
systemctl daemon-reload
systemctl enable fetapd
```
### Installing `linphone-cli` on Raspbian ### Installing `linphone-cli` on Raspbian
1. Install `debootstrap` 1. Install `debootstrap`
@ -76,5 +96,17 @@
ln -sr linphone-daemon.service /etc/systemd/system ln -sr linphone-daemon.service /etc/systemd/system
systemctl daemon-reload systemctl daemon-reload
systemctl enable linphone-daemon systemctl enable linphone-daemon
systemctl start linphone-daemon
``` ```
## Configuring `fetapd`
:warning: TODO
## Starting `fetapd`
```
systemctl start fetapd
```
(or simply reboot your *FeTAp*)

13
fetapd.service

@ -0,0 +1,13 @@
[Unit]
Description=FeTAp Daemon
Requires=linphone-daemon.service
After=linphone-daemon.service
[Service]
Type=simple
ExecStart=/usr/bin/python3 /opt/fetapi/fetapd.py
User=pi
Restart=on-failure
[Install]
WantedBy=multi-user.target
Loading…
Cancel
Save