2025-12-30 00:03:30 +00:00
|
|
|
# Installation
|
|
|
|
|
|
|
|
|
|
This guide covers installing the Mining Dashboard on your system.
|
|
|
|
|
|
|
|
|
|
## Prerequisites
|
|
|
|
|
|
|
|
|
|
- **Go 1.21+** - For building the backend
|
|
|
|
|
- **Node.js 18+** - For building the frontend (optional, pre-built included)
|
|
|
|
|
- **Git** - For cloning the repository
|
|
|
|
|
|
|
|
|
|
## Quick Install
|
|
|
|
|
|
|
|
|
|
### From Source
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# Clone the repository
|
|
|
|
|
git clone https://github.com/Snider/Mining.git
|
|
|
|
|
cd Mining
|
|
|
|
|
|
|
|
|
|
# Build the CLI binary
|
|
|
|
|
make build
|
|
|
|
|
|
2025-12-30 19:43:02 +00:00
|
|
|
# The binary is now at ./miner-ctrl
|
|
|
|
|
./miner-ctrl --help
|
2025-12-30 00:03:30 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Build Commands
|
|
|
|
|
|
|
|
|
|
| Command | Description |
|
|
|
|
|
|---------|-------------|
|
|
|
|
|
| `make build` | Build the CLI binary |
|
|
|
|
|
| `make build-all` | Build for all platforms (Linux, macOS, Windows) |
|
|
|
|
|
| `make test` | Run tests with coverage |
|
|
|
|
|
| `make lint` | Run linters |
|
|
|
|
|
| `make docs` | Generate Swagger API documentation |
|
|
|
|
|
| `make dev` | Start development server |
|
|
|
|
|
|
|
|
|
|
## Platform-Specific Notes
|
|
|
|
|
|
|
|
|
|
### Linux
|
|
|
|
|
|
|
|
|
|
No additional dependencies required. The miner binaries (XMRig, TT-Miner) will be automatically downloaded when you install them through the UI.
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# Optional: Enable huge pages for better XMRig performance
|
|
|
|
|
sudo sysctl -w vm.nr_hugepages=1280
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### macOS
|
|
|
|
|
|
|
|
|
|
Works out of the box on both Intel and Apple Silicon.
|
|
|
|
|
|
|
|
|
|
### Windows
|
|
|
|
|
|
|
|
|
|
Build with:
|
|
|
|
|
```powershell
|
2025-12-30 19:43:02 +00:00
|
|
|
go build -o miner-ctrl.exe ./cmd/mining
|
2025-12-30 00:03:30 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Docker
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# Build the image
|
|
|
|
|
docker build -t mining-dashboard .
|
|
|
|
|
|
|
|
|
|
# Run with persistent data
|
|
|
|
|
docker run -d \
|
|
|
|
|
-p 9090:9090 \
|
|
|
|
|
-v mining-data:/root/.local/share/lethean-desktop \
|
|
|
|
|
-v mining-config:/root/.config/lethean-desktop \
|
|
|
|
|
mining-dashboard
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Verify Installation
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# Check version
|
2025-12-30 19:43:02 +00:00
|
|
|
./miner-ctrl --version
|
2025-12-30 00:03:30 +00:00
|
|
|
|
|
|
|
|
# Run doctor to check system
|
2025-12-30 19:43:02 +00:00
|
|
|
./miner-ctrl doctor
|
2025-12-30 00:03:30 +00:00
|
|
|
|
|
|
|
|
# Start the server
|
2025-12-30 19:43:02 +00:00
|
|
|
./miner-ctrl serve
|
2025-12-30 00:03:30 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Then open [http://localhost:9090](http://localhost:9090) to access the dashboard.
|
|
|
|
|
|
|
|
|
|
## Next Steps
|
|
|
|
|
|
|
|
|
|
- [Quick Start Guide](quickstart.md) - Get mining in 5 minutes
|
|
|
|
|
- [Configuration](configuration.md) - Customize your setup
|