Add install script and update README with cgminer instructions
Some checks failed
Docker Build & Push / build-and-push (push) Failing after 5s
Some checks failed
Docker Build & Push / build-and-push (push) Failing after 5s
This commit is contained in:
48
README.md
48
README.md
@@ -16,28 +16,52 @@
|
||||
- Restart-Funktion
|
||||
- **Tech Stack:** Python Flask, Bootstrap 5 (Dark Mode), Vanilla JS.
|
||||
|
||||
## Installation
|
||||
## Automatische Installation (Empfohlen)
|
||||
|
||||
Das `install.sh` Skript übernimmt die komplette Einrichtung inkl. Kompilieren von `cgminer` (dmaxl Fork für Gridseed Support) und Einrichten der Systemd-Services.
|
||||
|
||||
1. Repository klonen:
|
||||
```bash
|
||||
git clone https://git.klenzel.net/admin/NecroHash.git /opt/necrohash
|
||||
cd /opt/necrohash
|
||||
git clone https://git.klenzel.net/admin/NecroHash.git necrohash_install
|
||||
cd necrohash_install
|
||||
```
|
||||
|
||||
2. Starten:
|
||||
2. Installer ausführen:
|
||||
```bash
|
||||
./start_gui.sh
|
||||
sudo ./install.sh
|
||||
```
|
||||
*Hinweis: Der Installer installiert Abhängigkeiten, kompiliert cgminer (falls nicht vorhanden), kopiert die Dateien nach `/opt/necrohash` und richtet Autostart ein.*
|
||||
|
||||
3. Dienste Starten:
|
||||
Nach der Installation sind die Dienste aktiviert aber müssen einmalig gestartet werden (oder Reboot):
|
||||
```bash
|
||||
sudo systemctl start necrohash-gui
|
||||
sudo systemctl start necrohash-miner
|
||||
```
|
||||
|
||||
3. Browser öffnen: `http://<IP>:5000`
|
||||
4. Zugriff:
|
||||
Öffnen Sie im Browser `http://<IP-DES-PI>:5000`
|
||||
|
||||
## Konfiguration
|
||||
## Manuelle Installation
|
||||
|
||||
NecroHash nutzt den `cgminer` API-Server. Starten Sie `cgminer` mit der Konfiguration im Projektordner:
|
||||
Falls Sie den Automatismus nicht nutzen wollen:
|
||||
|
||||
```bash
|
||||
cgminer -c /opt/necrohash/cgminer.conf
|
||||
```
|
||||
1. **Abhängigkeiten:** Python 3, `libusb-1.0-0-dev`, `libcurl4-openssl-dev`, `libncurses5-dev`.
|
||||
2. **Cgminer:** Installieren Sie einen Gridseed-kompatiblen Fork (z.B. https://github.com/dmaxl/cgminer).
|
||||
Configure flags: `./configure --enable-gridseed`
|
||||
3. **App:**
|
||||
- Code nach `/opt/necrohash` kopieren.
|
||||
- `pip install -r requirements.txt` (in venv).
|
||||
4. **Cgminer Config:**
|
||||
Starten Sie cgminer zwingend mit der Config-Datei aus dem Web-Ordner, damit die GUI Einstellungen schreiben kann:
|
||||
```bash
|
||||
cgminer -c /opt/necrohash/cgminer.conf
|
||||
```
|
||||
Die Config MUSS folgende API-Settings enthalten (Standard in NecroHash):
|
||||
```json
|
||||
"api-listen": true,
|
||||
"api-allow": "W:127.0.0.1"
|
||||
```
|
||||
|
||||
## Lizenz
|
||||
MIT
|
||||
MIT
|
||||
|
||||
Reference in New Issue
Block a user