├── etc ├── version ├── not-z.png └── config.sample ├── miners └── .placeholder ├── scripts └── .placeholder ├── bin ├── miner-boot └── miner-boot.sh ├── .gitignore ├── install_miner-boot.sh └── README.md /etc/version: -------------------------------------------------------------------------------- 1 | v0.0.9a -------------------------------------------------------------------------------- /miners/.placeholder: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /scripts/.placeholder: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bin/miner-boot: -------------------------------------------------------------------------------- 1 | miner-boot.sh -------------------------------------------------------------------------------- /etc/not-z.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EasyX-Community/miner-boot/master/etc/not-z.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # Ignore 3 | 4 | etc/config 5 | 6 | # Ignore all 7 | 8 | *~ 9 | miners/* 10 | 11 | # Allow 12 | 13 | !miners/.placeholder 14 | !scripts/.placeholder -------------------------------------------------------------------------------- /install_miner-boot.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # 4 | # install_miner-boot.sh 5 | # 6 | # Description: 7 | # Install and configure miner-boot scripts 8 | # 9 | 10 | # Get the miner-boot root directory 11 | MB_ROOT="$(dirname "$(dirname "$(readlink -fm "$0")")")" 12 | 13 | # Get the version number 14 | MB_VER=$(cat ${MB_ROOT}/etc/version) 15 | 16 | # Source the config file 17 | source ${MB_ROOT}/etc/config 18 | 19 | # Print the header 20 | echo "" 21 | echo "#" 22 | echo "##" 23 | echo "### miner-boot ${MB_VER} installer" 24 | echo "##" 25 | echo "#" 26 | echo "" 27 | 28 | 29 | # Ask the user which miners to enable 30 | 31 | 32 | # Download and compile the miner(s) 33 | 34 | 35 | # Add ${PWD}/bin to PATH 36 | 37 | 38 | # Ask the user about auto-update cronjob 39 | 40 | 41 | # Rewrite config file 42 | 43 | -------------------------------------------------------------------------------- /etc/config.sample: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # 4 | # This is the configuration file for miner-boot. It should be configured automatically by install_miner-boot.sh 5 | # 6 | 7 | 8 | # 9 | ## 10 | ### General 11 | ## 12 | # 13 | 14 | # Path to miner-boot repository 15 | MB_PWD="/opt/miner-boot" 16 | 17 | 18 | 19 | 20 | # 21 | ## 22 | ### GPU Miner DL URL's 23 | ## 24 | # 25 | 26 | # lolMiner download URL (binary) 27 | LOL_ENABLED=true 28 | LOL_WATCHDOG=true 29 | LOL_DL_TYPE="binary" 30 | LOL_DL_LOC="https://github.com/Lolliedieb/lolMiner-releases/releases/download/1.51a/lolMiner_v1.51a_Lin64.tar.gz" 31 | 32 | # Wildrig-multi download URL (github source) 33 | WILDRIG_ENABLED=false 34 | WILDRIG_WATCHDOG=false 35 | WILDRIG_DL_TYPE="binary" 36 | WILDRIG_DL_LOC="https://github.com/andru-kun/wildrig-multi/releases/download/0.31.3/wildrig-multi-linux-0.31.3.tar.xz" 37 | 38 | 39 | 40 | 41 | # 42 | ## 43 | ### CPU Miner DL URL's 44 | ## 45 | # 46 | 47 | # xmrig download URL (github source) 48 | XMRIG_ENABLED=true 49 | XMRIG_WATCHDOG=true 50 | XMRIG_DISABLE_DONATE=true 51 | XMRIG_DL_TYPE="source" 52 | XMRIG_DL_LOC="https://github.com/xmrig/xmrig.git" 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /bin/miner-boot.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # 4 | # miner-boot.sh 5 | # 6 | # Description: 7 | # miner-boot is a script that will boot your miner for you. 8 | # miner-boot is programmed to work with xmrig, lolMiner, and wildrig-multi for now. 9 | # you may post issue ticket on github to request additonal miners. 10 | # each miner is different and must be added in manually. 11 | # 12 | # Startup options: 13 | # 14 | # start - start the miner(s) 15 | # stop - stop the miner(s) 16 | # log - watch logs for 'gpu' or 'cpu' 17 | # cron - install/remove cronjob for cpu/gpu/all 18 | # 19 | # miners update - download and recompile miners 20 | # 21 | 22 | # Get the miner-boot root directory 23 | MB_ROOT="$(dirname "$(dirname "$(readlink -fm "$0")")")" 24 | 25 | # Get the version number 26 | MB_VER=$(cat ${MB_ROOT}/etc/version) 27 | 28 | # Source the config file 29 | source ${MB_ROOT}/etc/config 30 | 31 | # Print the header 32 | echo "" 33 | echo "#" 34 | echo "##" 35 | echo "### miner-boot ${MB_VER}" 36 | echo "##" 37 | echo "#" 38 | echo "" 39 | 40 | # Get argument 1 into variable 41 | # Get argument 2 into variable 42 | 43 | # Now let's process argument 1 44 | # Now let's process argument 2 45 | 46 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # miner-boot v0.0.9a 2 | 3 | #### Description: 4 | A script to boot your miner inside of a "screen". To use this for now, you will need to have some basic BASH scripting knowledge. For supported miners, a watchdog will be set up to check the API of the miner to see if it is still mining and restart the miner if it is not mining. 5 | 6 | Minerboot will clone the github source code and compile it or it will download the binary files depending on if the source is available. You will be able to manually change the miner download URL in the etc/config file and run the `./miner-boot.sh miners update` command. 7 | 8 | You will be able to call `miner-boot` or `miner-boot.sh` whichever you prefer - both will work. 9 | 10 | This is a new project and is currently under construction. I will try and get version 1.0.0 out ASAP. 11 | 12 | Do not install, project is currently in a broken state. 13 | 14 | #### Disclaimer: 15 | **I am not liable in any way for damages to your computer due to bugs, being hacked, exploited, or any other malfunction of the scripts. This source code is open, it is your responsibility to audit the code.** 16 | 17 | #### Notes: 18 | - It is important the instructions are completed in order 19 | - Read the notes about [cronjobs](#cronjobs) before installing 20 | - Do not delete the git repository directory, it installs in it's place 21 | 22 | #### Changelog: 23 | - Nothing yet 24 | 25 | #### Requirements: 26 | - A Brain 27 | 28 | #### Install: 29 | 1. `cd /opt` 30 | 2. `git clone https://github.com/EasyX-Community/miner-boot.git` 31 | 3. `cd miner-boot` 32 | 4. `./install_miner-boot.sh` 33 | 5. Follow [Setup](#setup) instructions 34 | 35 | #### Setup: 36 | 1. `cd /opt/miner-boot` 37 | 2. Edit your configuration files 38 | 3. Edit your miner files 39 | 4. ```miner-boot.sh cron install cpu```
40 |              or
41 | ```miner-boot.sh cron install gpu```
42 |              or
43 | ```miner-boot.sh cron install all```
44 | 45 | #### Updating (manual): 46 | 1. `cd /opt/miner-boot` 47 | 2. `git pull` 48 | 3. `miner-boot.sh cron remove all` 49 | 4. Follow steps under [Setup](#setup) to add your miners again 50 | 51 | #### Cronjobs: 52 | The installer will ask if you want it to install cronjob for you. It will also ask if you want it to install a weekly update cronjob for you. 53 | 54 | It is advised you select **'yes'** and then if you want to change it you can use `crontab -e` later. 55 | 56 | If you are unsure about crontab times, this calculator will come in handy [https://crontab.guru/](https://crontab.guru/) 57 | 58 | #### Coming features: 59 | - Can't think of any at the moment, but please create GitHub or Gogs issue ticket if you have any suggestions. 60 | 61 | #### Official Repositories: 62 | Some sources will be under the user profile for mooleshacat/moocat and some will be under EasyX-Community. The following are the locations in which you can find the official source code of this repository: 63 | - https://gogs.easyx.cc/EasyX-Community/ (Main Repository) 64 | - https://github.com/EasyX-Community/ (Mirror) 65 | - https://gitlab.com/e3074 (Mirror) 66 | - https://codeberg.org/EasyX-Community/ (Mirror) 67 | - https://bitbucket.org/easyx-community/ (Mirror) 68 | - https://sourceforge.net/u/easyx-community/profile/ (Mirror) 69 | - https://codegiant.io/mooleshacat/easyx-community (Mirror) 70 | 71 | If you have downloaded or cloned the source from anywhere else, you may have a copy that has been modified in malicious ways! 72 | 73 | Please be sure only to use the above sources! 74 | 75 | 76 | #### Donations: 77 | **XMR:** 41y4Zerp4HbMM6Q6qTdPfxNKuHJLiuWioB7G8pm8mmNK2CQ2EkPsdawaChHtmJPiUp8X5KAZ9dVkG7Yt7bra6auM3iDZqdh
78 | **BTC:** bc1qffd7j4jdspfjc8mr05g8yqfncjfdnzamec53tr
79 | **LTC:** ltc1q8afdasd2qanphs82rqvetzu8yrk2kq6y4fqvrn
80 | **ETH(ERC-20):** 0x784207DC134B61E0bD7edA658aa830e8FD12A7c7
81 | **BNB(BSC)** 0xc89eEa9b5C0cfa7f583dc1A6405a7d5730ADB603
82 | **RTM:** RDg5KstHYvxip77EiGhPKYNL3TZQr6456T
83 | **AVN:** R9zSPpKjo6tCutMT5FyyGNr2vRaAssEtrm
84 | **CHOX:** 5VpD2eBmm5neSWJHwk9cf7NQr76YTQamwp
85 | **ZEN:** znisoX1rR8t7kAz6Fd7CV6y7by1WihJkUDS
86 | **PHL:** F7XaUosKYEXPP62o31DdpDoADo3VcxoFP4
87 | **PEXA:** XBghzGLdeUzspUcJpeggPFLs3mAyTRHpPH
88 | --------------------------------------------------------------------------------