wcatz / tatertots

Starch Miner in Bash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tatertots

Tatertot

Starch Miner in Bash. Run it standalone or with Docker.

With Docker

Install Docker or Docker Desktop. https://docs.docker.com/desktop/

  1. Clone this repo and cd into it.
git clone https://github.com/wcatz/tatertots.git; cd tatertots
  1. Copy the miner-example.conf file to a file named miner.conf
cp miner-example.conf miner.conf
  1. Edit miner.conf, add your miner id/'s with Nano. ctrl+o to save, ctrl+x to exit Nano.
nano miner.conf
  1. Check which version of docker compose is installed.
docker compose up -d

If that does not work try the old method.

docker-compose up -d
  1. Follow the containers output to confirm it is running. Use the docker compose command that worked to bring it up. ctrl+x to stop following the output. Once the container is built you can also follow it's output in Docker Desktop.
docker compose logs -f
  1. You can stop the miner from Docker Desktop or with.
docker compose down

Standalone script execution

If you want to run the script in a Tmux session or with Systemd just go through these steps to execute it locally.

  1. You need curl an jq.
sudo apt install curl jq
  1. Clone this repo and cd into it.
git clone https://github.com/wcatz/tatertots.git; cd tatertots
  1. Copy the miner-example.conf file to a file named miner.conf
cp miner-example.conf miner.conf
  1. Edit miner.conf, add your miner id/'s with Nano. ctrl+o to save, ctrl+x to exit Nano.
nano miner.conf
  1. Make the script executable and run it. ctr+c to stop it.
chmod +x tatertots.sh
./tatertots.sh

About

Starch Miner in Bash

License:Apache License 2.0


Languages

Language:Shell 92.5%Language:Dockerfile 7.5%