LAST (Local Area Streamer)
Setup static IP
Method 1. VIA Gnome Settings
Took from: https://linuxhint.com/configure-static-ip-address-linux/
-
Go to network's preferences --> IPv4
-
Set method to `Manual
-
Fill in:
- Address: Desired static IP in the network
- Netmask:
255.255.255.0 - Gateway: usually ends with 1
- DNS:
8.8.8.8
-
Press
Apply -
Let the network default to
0.0.0.0
Method 2. Via Netplan
Took from:
- https://linuxize.com/post/how-to-configure-static-ip-address-on-ubuntu-20-04/
- https://tizutech.com/ubuntu-netplan-gateway4-has-been-deprecated
-
Create a
02...yamlfile in `/etc/netplanversion: 2 renderer: networkd ethernets: {{interface}}: dhcp4: no addresses: - {{DESIRED ADDRESS}}/24 routes: - to: default via: {{GATEWAY}} nameservers: addresses: - {{GATEWAY}} - 8.8.8.8 - 1.1.1.1
-
Apply:
sudo netplan apply -
Open the port
Autorun
-
Make the sell script executable
chmod +x daemon/serve.sh
-
Draft a
last.servicefile based on the example -
Do one of the two:
-
copy
last.serviceto/lib/systemd/system/last.service -
Add it with a symbolink:
sudo ln -s /absolute/path/to/last.service /lib/systemd/system
-
-
Reload the daemon and start the
lastservicesudo systemctl enable last.service sudo systemctl daemon-reload sudo service last start -
Now the app may be managed as a regular service (e.g.
sudo service last restart)