-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from luminousmining/feat/hiveos
HiveOS, shell script
- Loading branch information
Showing
17 changed files
with
114 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# HiveOS | ||
|
||
## How use luminousminer on HiveOS ? | ||
|
||
You must add luminousminer uses `custom miner` mode. | ||
|
||
Create new `Flight Sheet`. | ||
![New flight sheet](https://github.com/luminousmining/miner/setup/hiveos/install/create_flight_sheet.PNG) | ||
|
||
Click on `Setup Miner Config`. | ||
Add link of release `lumininosminer-X.X_hiveos.tar.gz` in field `URL`. | ||
Replace `YOUR_WALLET` by your wallet. | ||
Replace `YOUR_WORKERNAME` by your workername. | ||
![Setup miner config](https://github.com/luminousmining/miner/setup/hiveos/install/add_custom_miner.PNG) | ||
|
||
Save and run your flight sheet. | ||
Enjoy the miner is running! | ||
![Running](https://github.com/luminousmining/miner/setup/hiveos/install/miner_running.PNG) | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Global variables | ||
VERSION=0.2 | ||
PROJECT=luminousminer | ||
EXE=miner |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Documentation HiveOS | ||
# https://github.com/minershive/hiveos-linux/blob/master/hive/miners/custom/README.md#h-statssh | ||
|
||
stats=$(curl -s "http://127.0.0.1:8080/hiveos/getStats") | ||
total_hash=$(curl -s "http://127.0.0.1:8080/hiveos/getTotalHashrate") | ||
khs=`echo ${total_hash} | jq -r '.total_hash_rate'` | ||
|
||
|
||
# Debug print | ||
echo "stats => ${stats}" | ||
echo "total_hash => ${total_hash}" | ||
echo "khs => ${khs}" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Global variables | ||
. setup/config.sh | ||
|
||
|
||
# Delete folder | ||
rm -rf ${PROJECT} | ||
|
||
# Create folder | ||
mkdir ${PROJECT} | ||
|
||
# Copy config hiveos | ||
cp setup/hiveos/h-config.sh ${PROJECT}/ | ||
cp setup/hiveos/h-run.sh ${PROJECT}/ | ||
cp setup/hiveos/h-stats.sh ${PROJECT}/ | ||
cp setup/hiveos/h-manifest.conf ${PROJECT}/ | ||
|
||
# Add right executable | ||
chmod +x ${PROJECT}/h-config.sh | ||
chmod +x ${PROJECT}/h-run.sh | ||
chmod +x ${PROJECT}/h-stats.sh | ||
|
||
# Copy executable | ||
cp bin/miner ${PROJECT}/ | ||
|
||
# Copy kernels | ||
cp -r bin/Release/kernel ${PROJECT}/ | ||
|
||
# Zip folder | ||
tar czvf ${PROJECT}-${VERSION}_hiveos.tar.gz ${PROJECT} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Global variables | ||
. setup/config.sh | ||
|
||
# Delete folder | ||
rm -rf ${PROJECT} | ||
|
||
# Create folder | ||
mkdir ${PROJECT} | ||
|
||
# Copy executable | ||
cp bin/miner ${PROJECT}/ | ||
|
||
# Copy kernels | ||
cp -r bin/Release/kernel ${PROJECT}/ | ||
|
||
# Zip folder | ||
tar czvf ${PROJECT}-${VERSION}.tar.gz ${PROJECT} |