Commit 92e08fd3 authored by support@panter.ch's avatar support@panter.ch

fix: errors in server setup scripts

parent 85ef0f44
......@@ -13,7 +13,10 @@ sudo apt update
sudo apt install git
```
Because both the server and the client are part of this monorepo, the first step to do is to **recursively** clone this repo under `~/hubscreen` on the RaspberryPi:
Because both the server and the client are part of this monorepo, the next step is **recursively** cloning this repo under `~/hubscreen` on the RaspberryPi:
```sh
git clone https://git.panter.ch/rmo/hub-screen.git ~/hubscreen
```
### Setup Flaschentaschen Server
......@@ -34,12 +37,12 @@ sudo ./start_server.sh
Next step is to install and enable the server as a systemd service, to restart the server automatically after crashes and system reboots:
```sh
sudo ./packages/install_service.sh
sudo ./install_service.sh
```
After executing the commands above, the flaschentaschen server should already be running and listening on port 1337. It also should automatically start after a system reboot.
To verify the correct setup of the flaschentaschen service, use `systemclt` and `journalctl`, eg: `journalctl -u flaschentaschen.service`
To verify the correct setup of the flaschentaschen service, use `systemctl` and `journalctl` commands, such as `journalctl -u flaschentaschen.service` or `systemctl status flaschentaschen.service`.
## Setup Raspian
......
[Unit]
Description=Flaschentaschen Server
After=network.target
StartLimitIntervalSec=0[Service]
[Service]
Type=simple
Restart=always
User=root
......
#!/usr/bin/env bash
# create symlink of service file in styemd unit directory:
ln -s /etc/systemd/system/flaschentaschen.service /home/pi/hubscreen/packages/server/flaschentaschen.service
ln -s /home/pi/hubscreen/packages/server/flaschentaschen.service /etc/systemd/system/flaschentaschen.service
# initially start service
systemctl start flaschentaschen
# enable service to restart after stystem reboot:
systemctl enable flaschentaschen
\ No newline at end of file
systemctl enable flaschentaschen
#!/usr/bin/env bash
~/hubscreen/packages/server/flaschentaschen/server/ft-server --led-chain=10 --led-brightness=50 --led-slowdown-gpio=2 --led-no-hardware-pulse
/home/pi/hubscreen/packages/server/flaschentaschen/server/ft-server --led-chain=10 --led-brightness=50 --led-slowdown-gpio=2 --led-no-hardware-pulse
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment