2024-09-11 15:53:41 +03:00
|
|
|
# Installing on Linux
|
|
|
|
|
|
|
|
## Building
|
|
|
|
```sh
|
|
|
|
cd byedpi/
|
|
|
|
make
|
|
|
|
sudo make install
|
|
|
|
```
|
|
|
|
|
|
|
|
## Systemd Service (optional)
|
|
|
|
|
2024-09-24 14:05:52 +03:00
|
|
|
You can configure the program to run as systemd service, user- or system-wide (only one at a time).
|
|
|
|
|
|
|
|
### As user service:
|
2024-09-11 15:53:41 +03:00
|
|
|
|
|
|
|
```sh
|
|
|
|
cp byedpi.service ~/.config/systemd/user/
|
2024-09-24 14:05:52 +03:00
|
|
|
cp byedpi.conf ~/.config/
|
|
|
|
systemctl --user enable --now byedpi.service
|
2024-09-11 15:53:41 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
You should see the service now marked as "active":
|
|
|
|
```sh
|
|
|
|
systemctl --user status byedpi.service
|
|
|
|
```
|
2024-09-24 14:05:52 +03:00
|
|
|
|
|
|
|
### As system service:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
sudo cp byedpi.service /etc/systemd/system/
|
|
|
|
sudo cp byedpi.conf /etc/
|
|
|
|
sudo systemctl enable --now byedpi.service
|
|
|
|
```
|
|
|
|
|
|
|
|
You should see the service now marked as "active":
|
|
|
|
```sh
|
|
|
|
systemctl status byedpi.service
|
|
|
|
```
|