Skip to content

tinkermakar/last

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 

LAST (Local Area Streamer)

Setup static IP

Method 1. VIA Gnome Settings

Took from: https://linuxhint.com/configure-static-ip-address-linux/

  1. Go to network's preferences --> IPv4

  2. Set method to `Manual

  3. Fill in:

    • Address: Desired static IP in the network
    • Netmask: 255.255.255.0
    • Gateway: usually ends with 1
    • DNS: 8.8.8.8
  4. Press Apply

  5. Let the network default to 0.0.0.0

Method 2. Via Netplan

Took from:

  1. Create a 02...yaml file in `/etc/netplan

      version: 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
  2. Apply: sudo netplan apply

  3. Open the port

Autorun

  1. Make the sell script executable

    chmod +x daemon/serve.sh
  2. Draft a last.service file based on the example

  3. Do one of the two:

    1. copy last.service to /lib/systemd/system/last.service

    2. Add it with a symbolink:

      sudo ln -s /absolute/path/to/last.service /lib/systemd/system
  4. Reload the daemon and start the last service

    sudo systemctl enable last.service
    sudo systemctl daemon-reload
    sudo service last start
  5. Now the app may be managed as a regular service (e.g. sudo service last restart)