update logo etc

This commit is contained in:
urban
2023-08-31 22:22:28 +02:00
parent a0527cb1d1
commit 5c929df9da
10 changed files with 63 additions and 6 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
Worker/

View File

@@ -0,0 +1,3 @@
hardstatus on
hardstatus alwayslastline
hardstatus string "%{= kR}[ShurikenPi.io press CTRL A + D to exit]"

View File

@@ -3,5 +3,5 @@
||.. ' || .. ... ... ... .. ... || .. .... .. ...
''|||. ||' || || || ||' '' || || .' .|...|| || ||
. '|| || || || || || || ||'|. || || ||
|'....|' .||. ||. '|..'|. .||. .||. .||. ||. '|...' .||. ||. \033[31mpi\033[0m (v 1.0)
|'....|' .||. ||. '|..'|. .||. .||. .||. ||. '|...' .||. ||. \033[31mpi.io\033[0m (v 1.0)

View 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

View File

@@ -4,9 +4,11 @@ source ./global.sh
source ./utils.sh
msg logo.txt
p "We will create a new configuration"
msg wallet_suggestions.txt
echo ""
r "Your bitcoin address:" address
#python3 ../Tools/address_validation.py $address
echo ""
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)
p_user $mining_pool
@@ -14,5 +16,11 @@ p_user $mining_pool
if [[ $mining_pool == "custom" ]]; then
r "Mining pool stratum URL:" $mining_pool
fi
echo "->" $mining_pool
echo ""
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 ""

View File

@@ -22,3 +22,5 @@ rm -fr $TMP_DIRECTORY 2>&1
mkdir $TMP_DIRECTORY 2>&1
GIT_URL=https://github.com/Urban-Hacker/shurikenpi.io/
SESSION_COUNT=$(screen -ls | grep -c "\.shurikenpi.io")

12
Scripts/start.sh Executable file
View 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
View 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
View 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

View File

@@ -11,5 +11,6 @@ def get_mining_parameters(pool, address):
# Special case when using custom pool
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":