diff --git a/README.md b/README.md index 801f7e9..9d3a6f3 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # fetapi - FeTAp with a Raspberry Pi ``` - ,ooFeTApFeTApFeTA%=+-,. ,+FeTAp+' `o,, ,oFeTAp+ `, @@ -23,12 +22,33 @@ o:N H:a e, G t:a s:c c, ,x+x+' 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 +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 1. Install `debootstrap` @@ -76,5 +96,17 @@ ln -sr linphone-daemon.service /etc/systemd/system systemctl daemon-reload systemctl enable linphone-daemon - systemctl start linphone-daemon ``` + +## Configuring `fetapd` + +:warning: TODO + +## Starting `fetapd` + +``` +systemctl start fetapd +``` + +(or simply reboot your *FeTAp*) + diff --git a/fetapd.service b/fetapd.service new file mode 100644 index 0000000..bf686bc --- /dev/null +++ b/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