A web application for controlling LED displays on Raspberry Pi and other ARM64 Linux systems.
- Linux ARM64 system (Raspberry Pi 4, Pi 5, or compatible ARM64 device)
- Root or sudo access
- Internet connection for initial setup
- Download the
linux-arm64binary to your system - Create the application directory and move the binary:
sudo mv linux-arm64 /home/snyder/Desktop
dos2unix setup-service.sh
sudo ln -s /home/snyder/.dotnet/dotnet /usr/bin/dotnet
- Navigate to the application directory:
cd /home/snyder/Desktop
-
Important: Make sure you have the
setup-service.shfile in this directory. If it's missing, you need to download it from your project repository or create it with the service configuration. -
Check if the setup script exists:
ls -la setup-service.sh
- Make the setup script executable:
chmod +x setup-service.sh
- Run the setup script:
./setup-service.sh
If you get "command not found", try:
bash setup-service.sh
The service will be automatically installed and started.
If you need to customize the application settings, edit the configuration variables in setup-service.sh before running it:
nano setup-service.sh
Edit these values in the setup script according to your needs:
# Configuration - EDIT THESE VALUES
APP_NAME="RaspiLedOkWeb"
APP_PATH="/home/RaspiLedOkWeb"
APP_EXECUTABLE="RaspiLedOkWeb"
SERVICE_PORT="5000"
ENVIRONMENT="Production"
| Variable | Description | Default Value |
|---|---|---|
| APP_NAME | Name of the application and service | RaspiLedOkWeb |
| APP_PATH | Full path to application directory | /home/RaspiLedOkWeb |
| APP_EXECUTABLE | Name of the executable file | RaspiLedOkWeb |
| SERVICE_PORT | Port the web application will run on | 5000 |
| ENVIRONMENT | Application environment mode | Production |
If you want to install to a different location, update both the file placement and the configuration:
- Create your custom directory:
sudo mkdir -p /your/custom/path
- Move the binary:
sudo mv linux-arm64 /your/custom/path/RaspiLedOkWeb
sudo chmod +x /your/custom/path/RaspiLedOkWeb
- Update
setup-service.sh:
APP_PATH="/your/custom/path"
After installation, you can manage the service using systemctl:
sudo systemctl status RaspiLedOkWeb
sudo systemctl start RaspiLedOkWeb
sudo systemctl stop RaspiLedOkWeb
sudo systemctl restart RaspiLedOkWeb
sudo systemctl enable RaspiLedOkWeb
sudo journalctl -u RaspiLedOkWeb -f
Once the service is running, you can access the web interface at:
http://your-raspberry-pi-ip:5000
Or on the local machine:
http://localhost:5000
If you encounter permission errors:
sudo chown -R $USER:$USER /home/RaspiLedOkWeb
sudo chmod +x /home/RaspiLedOkWeb/RaspiLedOkWeb
If port 5000 is already in use:
- Edit
setup-service.shand changeSERVICE_PORTto an available port - Re-run the setup script
Check the service logs for detailed error information:
sudo journalctl -u RaspiLedOkWeb --no-pager
If you can't access the web interface from other devices, check your firewall:
sudo ufw allow 5000
After installation, your directory structure should look like:
/home/RaspiLedOkWeb/
├── RaspiLedOkWeb # Main executable
├── setup-service.sh # Service setup script
└── [other application files]
To remove the application and service:
- Stop and disable the service:
sudo systemctl stop RaspiLedOkWeb
sudo systemctl disable RaspiLedOkWeb
- Remove the service file:
sudo rm /etc/systemd/system/RaspiLedOkWeb.service
sudo systemctl daemon-reload
- Remove application files:
sudo rm -rf /home/RaspiLedOkWeb
For issues or questions:
- Check the application logs using
journalctl - Verify all file permissions are correct
- Ensure the ARM64 binary is compatible with your system
- Check that the specified port is available and not blocked by firewall
Note: Make sure your system supports ARM64 binaries and has all necessary dependencies installed before running the application.