mirror of
https://github.com/aljazceru/shurikenpi.io.git
synced 2025-12-17 06:04:23 +01:00
update logo etc
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Worker/
|
||||||
3
Configurations/screen.screenrc
Normal file
3
Configurations/screen.screenrc
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
hardstatus on
|
||||||
|
hardstatus alwayslastline
|
||||||
|
hardstatus string "%{= kR}[ShurikenPi.io press CTRL A + D to exit]"
|
||||||
@@ -3,5 +3,5 @@
|
|||||||
||.. ' || .. ... ... ... .. ... || .. .... .. ...
|
||.. ' || .. ... ... ... .. ... || .. .... .. ...
|
||||||
''|||. ||' || || || ||' '' || || .' .|...|| || ||
|
''|||. ||' || || || ||' '' || || .' .|...|| || ||
|
||||||
. '|| || || || || || || ||'|. || || ||
|
. '|| || || || || || || ||'|. || || ||
|
||||||
|'....|' .||. ||. '|..'|. .||. .||. .||. ||. '|...' .||. ||. \033[31mpi\033[0m (v 1.0)
|
|'....|' .||. ||. '|..'|. .||. .||. .||. ||. '|...' .||. ||. \033[31mpi.io\033[0m (v 1.0)
|
||||||
|
|
||||||
6
Messages/wallet_suggestions.txt
Normal file
6
Messages/wallet_suggestions.txt
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
To run ShurikenPi you will need a Bitcoin wallet. Getting a Bitcoin wallet is
|
||||||
|
actually a straightforward process, much easier than many people might think.
|
||||||
|
If you do not have yet a wallet we recommend:
|
||||||
|
|
||||||
|
* https://samouraiwallet.com/ for Android
|
||||||
|
* https://sparrowwallet.com/ for PC, Mac and Linux
|
||||||
@@ -4,9 +4,11 @@ source ./global.sh
|
|||||||
source ./utils.sh
|
source ./utils.sh
|
||||||
msg logo.txt
|
msg logo.txt
|
||||||
p "We will create a new configuration"
|
p "We will create a new configuration"
|
||||||
|
msg wallet_suggestions.txt
|
||||||
|
echo ""
|
||||||
r "Your bitcoin address:" address
|
r "Your bitcoin address:" address
|
||||||
#python3 ../Tools/address_validation.py $address
|
#python3 ../Tools/address_validation.py $address
|
||||||
|
echo ""
|
||||||
echo -e " \033[33m?\033[0m Which mining pool would you like to use?"
|
echo -e " \033[33m?\033[0m Which mining pool would you like to use?"
|
||||||
mining_pool=$(gum choose --cursor= › public-pool.io solo.ckpool.org custom)
|
mining_pool=$(gum choose --cursor= › public-pool.io solo.ckpool.org custom)
|
||||||
p_user $mining_pool
|
p_user $mining_pool
|
||||||
@@ -14,5 +16,11 @@ p_user $mining_pool
|
|||||||
if [[ $mining_pool == "custom" ]]; then
|
if [[ $mining_pool == "custom" ]]; then
|
||||||
r "Mining pool stratum URL:" $mining_pool
|
r "Mining pool stratum URL:" $mining_pool
|
||||||
fi
|
fi
|
||||||
|
echo ""
|
||||||
echo "->" $mining_pool
|
p "Creating worker.sh"
|
||||||
|
python3 ../Tools/create_worker.py $mining_pool $address > ../Worker/worker.sh
|
||||||
|
chmod +x ../Worker/worker.sh
|
||||||
|
echo "address: $address" > ../Worker/worker.conf
|
||||||
|
echo "pool: $mining_pool" >> ../Worker/worker.conf
|
||||||
|
p "Ready to boil the oceans captain!"
|
||||||
|
echo ""
|
||||||
@@ -22,3 +22,5 @@ rm -fr $TMP_DIRECTORY 2>&1
|
|||||||
mkdir $TMP_DIRECTORY 2>&1
|
mkdir $TMP_DIRECTORY 2>&1
|
||||||
|
|
||||||
GIT_URL=https://github.com/Urban-Hacker/shurikenpi.io/
|
GIT_URL=https://github.com/Urban-Hacker/shurikenpi.io/
|
||||||
|
|
||||||
|
SESSION_COUNT=$(screen -ls | grep -c "\.shurikenpi.io")
|
||||||
|
|||||||
12
Scripts/start.sh
Executable file
12
Scripts/start.sh
Executable file
@@ -0,0 +1,12 @@
|
|||||||
|
source ./global.sh
|
||||||
|
source ./utils.sh
|
||||||
|
|
||||||
|
if [ $SESSION_COUNT -eq 0 ]; then
|
||||||
|
p "Starting up shurikenpi.io..."
|
||||||
|
screen -d -m -c ../Configurations/screen.screenrc -S "shurikenpi.io" ../Worker/worker.sh
|
||||||
|
./status.sh
|
||||||
|
elif [ $SESSION_COUNT -eq 1 ]; then
|
||||||
|
p "shurikenpi.io is already running"
|
||||||
|
else
|
||||||
|
./status.sh
|
||||||
|
fi
|
||||||
13
Scripts/status.sh
Executable file
13
Scripts/status.sh
Executable file
@@ -0,0 +1,13 @@
|
|||||||
|
source ./global.sh
|
||||||
|
source ./utils.sh
|
||||||
|
|
||||||
|
|
||||||
|
if [ $SESSION_COUNT -eq 1 ]; then
|
||||||
|
p_ok "shurikenpi.io is running"
|
||||||
|
elif [ $SESSION_COUNT -gt 1 ]; then
|
||||||
|
p_warn "Only one instance of shurikenpi.io should be running"
|
||||||
|
p_warn "shurikenpi.io might have been started multiple time."
|
||||||
|
p_warn "Please force restart if this is the case."
|
||||||
|
else
|
||||||
|
p_err "shurikenpi.io is not running"
|
||||||
|
fi
|
||||||
11
Scripts/stop.sh
Executable file
11
Scripts/stop.sh
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
source ./global.sh
|
||||||
|
source ./utils.sh
|
||||||
|
|
||||||
|
if [ $SESSION_COUNT -eq 0 ]; then
|
||||||
|
./status.sh
|
||||||
|
elif [ $SESSION_COUNT -eq 1 ]; then
|
||||||
|
p "We will stop shurikenpi.io..."
|
||||||
|
screen -X -S shurikenpi.io quit
|
||||||
|
else
|
||||||
|
./status.sh
|
||||||
|
fi
|
||||||
@@ -11,5 +11,6 @@ def get_mining_parameters(pool, address):
|
|||||||
# Special case when using custom pool
|
# Special case when using custom pool
|
||||||
return "-a sha256d -o " + pool + " -u " + address
|
return "-a sha256d -o " + pool + " -u " + address
|
||||||
|
|
||||||
print (get_mining_parameters(sys.argv[1], sys.argv[2]))
|
command = "../Bin/cpuminer " + get_mining_parameters(sys.argv[1], sys.argv[2])
|
||||||
|
print (command)
|
||||||
#if sys.argv[1] == "-h" or sys.argv[1] == "--help":
|
#if sys.argv[1] == "-h" or sys.argv[1] == "--help":
|
||||||
Reference in New Issue
Block a user