Installation Guide
This guide will walk you through installing and setting up the NuNet device management service.
Prerequisites
- Go 1.21 or later
- Docker (for containerized workloads)
- Git
- Network connectivity
Installation Methods
Method 1: Binary Release (Recommended)
- Download the latest release from GitHub
- Extract the binary to your PATH
- Verify installation:
nunet-dms --version
Method 2: Build from Source
- Clone the repository:
git clone https://gitlab.com/nunet/device-management-service.git
cd device-management-service
- Build the project:
make build
- Install the binary:
sudo make install
Method 3: Docker
docker pull nunet/dms:latest
docker run -d --name nunet-dms nunet/dms:latest
Configuration
Initial Setup
- Initialize configuration:
nunet-dms init
- Configure your device:
nunet-dms config set device.name "My Device"
nunet-dms config set device.cpu.cores 8
nunet-dms config set device.memory.gb 16
Network Configuration
Configure your network settings:
nunet-dms config set network.port 8080
nunet-dms config set network.public-ip "your-public-ip"
Storage Configuration
Set up storage for jobs and data:
nunet-dms config set storage.path "/var/lib/nunet"
nunet-dms config set storage.size.gb 100
Verification
Test your installation:
# Check device status
nunet-dms status
# Run a test job
nunet-dms run --image hello-world
# View logs
nunet-dms logs
Troubleshooting
Common Issues
- Port already in use: Change the port in configuration
- Permission denied: Ensure proper file permissions
- Network connectivity: Check firewall settings
Getting Help
- Check logs:
nunet-dms logs --level debug - Join Discord: https://discord.gg/nunet
- File an issue: GitHub Issues