3 Setup Script
Fr4nz D13trich edited this page 2025-10-16 17:02:25 +02:00

LoMeS Setup

Requirements

  • Meshtastic device
    • RAK WISBlock & Heltec V3 will be supported on my end
  • Linux machine running Debian
  • apt as package manager
  • systemd as init system

I will try to broaden the range of host os possibilities along the way

Development Setup

  1. Setup 64bit Linux Debian on host machine
  2. Install git:
sudo apt install -y git
  1. Clone repository
git clone https://lab.c95.org/fr4nz/LoMeS.git && cd LoMeS
  1. Run development environment setup
chmod +x lomes-setup.sh && sudo ./lomes-setup.sh
  1. Start developing

What does the script do?

  1. checks for sudo or root privileges
  2. searches & installs missing dependencies | cmd apt
  3. gets some ID from your system (ip, network interface, hostname) | cmd ip & hostname
  4. lets you change hostname (optional | reboot needed) | cmd sed
  5. creates a certificate for nginx | cmd mkdir, openssl, chmod & cp
  6. edits nginx.conf (domain, ip, cert & key path) | cmd sed
  7. removes default nginx welcome page | cmd rm
  8. checks nginx.conf & reloads nginx | cmd nginx
  9. reviews log | /tmp/LoMeS/install_log for errors
  10. asks to start flask | cmd flask OR reboot if hostname changed | cmd reboot