└── README.md /README.md: -------------------------------------------------------------------------------- 1 | # Tutorial-yiimp-mining-pool-2022-2023-working 2 | Tutorial yiimp 2022 working 3 | ###### Discord: https://discord.gg/K5KVvgm7v7 4 | ###### - If this tutorial helped you, make a contribution 5 | Bitcoin Address QR Code | Ethereum Address QR Code | Litecoin Address QR Code 6 | :-------------------------:|:-------------------------:|:-------------------------: 7 | ![Bitcoin Address](https://i.imgur.com/4rnaYNY.png) | ![Ethereum Address](https://i.imgur.com/0tJ6Dzu.png) | ![Litecoin Address](https://i.imgur.com/6tvGj4r.png) 8 | 9 | **BTC**: 1Ljwbwd6Z2UDkscDroHdnave1hzmjApmCD (BTC) 10 | 11 | **ETH**: 0x935437ad8a2289807319e2da6b68e4299676f9bf (ERC20) 12 | 13 | **LTC**: LeVPHyxkvGQ4fFW9DFGPYS6deNWY1AcSBo (LTC) 14 | 15 | ###### - Tutorial to help install yiimp 16 | ###### - Tutorial para ajudar na instalação do yiimp 17 | ###### - Pools that used this tutorial: https://onfirepool.ddns.net/ 18 | 19 | #### Follow the steps, and your yiimp will be operational 20 | 21 | 22 | #### Requirements: 23 | #### UBUNTU 18.04 Desktop (I used the minimal install) 24 | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- 25 | #### 1 - install git, curl, make, and gcc 26 | ``` 27 | sudo apt install git 28 | sudo apt install curl 29 | sudo apt install make 30 | sudo apt update 31 | sudo apt install build-essential 32 | ``` 33 | #### 1.2 - Use no-ip for domain (optional) 34 | ``` 35 | cd /usr/local/src/ 36 | sudo wget http://www.noip.com/client/linux/noip-duc-linux.tar.gz 37 | sudo tar xf noip-duc-linux.tar.gz 38 | cd noip-2.1.9-1/ 39 | sudo make install 40 | ``` 41 | 1.2 - After the make install command, it will request your noip email and password, after that just choose your update options, and your noip is ready to go. 42 | 43 | #### 2 - Download a reliable yiimp installer. I recommend using yiimp Dirty Harry (if you use another, replace the command below with the installer of your choice) 44 | ``` 45 | sudo curl https://raw.githubusercontent.com/DirtyHarryDev/Yiimp-Server-Installer/master/bootstrap.sh | bash 46 | ``` 47 | After running the command it will ask you to restart the machine, and give instructions on how to proceed with the installation after the restart, in my case I am using Dirty Harry, so the command will be yiimpserver 48 | 49 | #### 3 - Setting up and installing yiimp 50 | > Select yiimp single server 51 | 52 | ![This is an image](https://media.discordapp.net/attachments/932109857698488330/945390426448330882/Screenshot_from_2022-02-21_15-23-07.png) 53 | 54 | #### I'm using domain so select the option to add to domain 55 | 56 | 57 | > I'm not using subdomain 58 | 59 | ![This is an image](https://media.discordapp.net/attachments/932109857698488330/945390428549705749/subdomin.png) 60 | 61 | > Fill in your domain 62 | 63 | ![This is an image](https://media.discordapp.net/attachments/932109857698488330/945390427161383022/dominio.png) 64 | 65 | #### Your stratum will be the same domain but with stratum before 66 | 67 | 68 | > Select to install the ssl certificate automatically, this will leave your site with the padlock indicating it is secure 69 | 70 | ![This is an image](https://media.discordapp.net/attachments/932109857698488330/945390428230930552/ssl.png) 71 | ![This is an image](https://files.tecnoblog.net/wp-content/uploads/2018/11/https-cadeado-seguranca-700x394.jpg) 72 | 73 | #### Add an email address, so the pool will notify you about blocks 74 | 75 | 76 | > Configure link to admin area 77 | 78 | ![This is an image](https://media.discordapp.net/attachments/932109857698488330/945390470492741723/adminportal.png) 79 | 80 | > I leave auto exchange disabled in my pool, you can leave it enabled, it's up to you 81 | 82 | ![This is an image](https://media.discordapp.net/attachments/932109857698488330/945390426666463282/autoexchange.png) 83 | 84 | > I leave the dedicated ports for the coins enabled, but it's up to your discretion 85 | 86 | ![This is an image](https://media.discordapp.net/attachments/932109857698488330/945390427404632064/portas.png) 87 | 88 | > This part is very important so that you can access the admin panel of your pool - go to https://whatismyipaddress.com/ and put your ipv4 in the config 89 | 90 | ![This is an image](https://media.discordapp.net/attachments/932109857698488330/945390427723407390/publicip.png) 91 | 92 | > Now configure your pool passwords, I recommend using the automatically generated ones (but remember to save them) or you can change them to one of your choice 93 | 94 | ![This is an image](https://media.discordapp.net/attachments/932109857698488330/945390427996033074/senha1.png) 95 | 96 | > After that you will confirm your settings and give Yes to start the installation 97 | 98 | ![This is an image](https://media.discordapp.net/attachments/932109857698488330/945390426897137704/confirma.png) 99 | 100 | > Installation can take many minutes 101 | 102 | ![This is an image](https://media.discordapp.net/attachments/932109857698488330/945392848839245824/insta.png) 103 | 104 | > After the installation is finished it will give you the information to connect as admin in your pool, then save, and ask you to restart the machine - IT IS IMPORTANT THAT YOU RESTART FOR IT TO WORK 105 | 106 | ![This is an image](https://media.discordapp.net/attachments/932109857698488330/945393351979597864/Screenshot_from_2022-02-20_00-45-09.png?width=995&height=559) 107 | 108 | ### Ready now you have yiimp installed on your machine, congratulations, but don't go out releasing fireworks because it probably won't be working, as soon as you access your site it will present the white page of death 109 | > This happens because of the PHP version that yiimp uses, ubuntu downloads the latest version not being compatible with the pool 110 | # Now let's fix it 111 | #### Let's install the right php 112 | ``` 113 | sudo apt install php7.3-memcache 114 | sudo apt install php7.3-memcached 115 | sudo apt install memcached 116 | ``` 117 | #### Now let's make the system switch from php 8.* to 7.3 118 | ``` 119 | sudo update-alternatives --config php 120 | ``` 121 | > select the option corresponding to PHP7.3 122 | 123 | #### Now just restart nginx and php 124 | ``` 125 | sudo service nginx restart 126 | sudo service php7.3-fpm restart 127 | ``` 128 | #### For you to add a port and start stratum automatically, just type the addport command in the terminal 129 | > will ask for the currency symbol and the algorithm 130 | > just fill in correctly that it will start alone 131 | 132 | # Ready now your pool is almost 100% 133 | 134 | 135 | #### If you install a coin BTC, LTC, DASH, among others, you will have to fix the coin_results.php (this solve RPC Error -8:label argument must be a valid label name or "*" ) 136 | > Using dirty harry as an example. go to /home/yiimp-data/yiimp/site/web/yaamp/modules/site/coin_resuts.php 137 | > look for 138 | ``` 139 | $account = ''; 140 | if ($DCR || $DGB) $account = ''; 141 | ``` 142 | >and then below the other coins, add your coins 143 | ``` 144 | else if ($coin->symbol == "BTC") $account = ''; //ONFIRE TEST 145 | 146 | else if ($coin->symbol == "DASH") $account = ''; //ONFIRE TEST 147 | 148 | else if ($coin->symbol == "LTC") $account = ''; //ONFIRE TEST 149 | ``` 150 | 151 | example: 152 | ``` 153 | $account = ''; 154 | if ($DCR || $DGB) $account = ''; 155 | 156 | else if ($ETH) $account = $coin->master_wallet; 157 | 158 | else if ($coin->symbol == "RNG") $account = ''; 159 | 160 | else if ($coin->symbol == "ZENX") $account = ''; 161 | 162 | else if ($coin->symbol == "BTC") $account = ''; //TESTE ONFIRE 163 | 164 | else if ($coin->symbol == "DASH") $account = ''; //TESTE ONFIRE 165 | 166 | else if ($coin->symbol == "LTC") $account = ''; //TESTE ONFIRE 167 | ``` 168 | # Congratulations your pool is operating <3 169 | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- 170 | # Now that you have your pool running, you need to add the coins so that your users can mine 171 | > I will give three examples, installing dogeseedz, and tubopay 172 | #### 1 - Download wallet-qt or COIND of the currency you want to install, remembering some coins are working in yiimp with COIND 173 | ![This is an image](https://i.imgur.com/F1pB4El.png) 174 | #### 1.2 - Run wallet-qt or coinD and let it sync 175 | > Depending on your coin, it can take minutes, hours, days, or weeks. 176 | #### 2 - After synchronization, go to your pool, and open the admin portal, after that click on add coin 177 | ![This is an image](https://i.imgur.com/QQj6Ey2.png) 178 | #### 2.2 - Fill in the currency information, name, symbol, algorithm, logo, and click save 179 | ![This is an image](https://i.imgur.com/f4Amdze.png) 180 | #### 2.3 - Now search for your coin name and click on its symbol 181 | ![This is an image](https://i.imgur.com/CmeoU6m.png) 182 | #### 2.4 - Configure what is marked in red, to the settings you want 183 | > - First in general, set the minimum payment 184 | > 185 | ![This is an image](https://i.imgur.com/U9XLxM7.png) 186 | > - In settings, enable the boxes: enable, auto ready, visible, installed, and watch, below them configure the character of the pool (must be generated by wallet-qt or coind ex: ./coind-cli getnewaddress ) in case of dogessed needs enable use segwit too 187 | > 188 | ![This is an image](https://i.imgur.com/tTjPQ85.png) 189 | > - On the exchange tab, do not move unless you have enabled auto exchange in the installation 190 | > - In the Daemon tab fill in the process name example: dogeseedz-qt or dogeseedzd, after that if your daemon is on the same machine as your pool, put the ip 127.0. of the rpc of the coin (you can put whatever you want), username and password, in rpc type put POW (Attention several coins are POS, seek to inform yourself with the official website of the coin you are installing), after that go to to save 191 | 192 | ![This is an image](https://i.imgur.com/spgS37c.png) 193 | > - Now find your coin again and click on its symbol, and go straight to the Daemon tab, it will generate a config for your coin, copy only the red part, and put it in your coin config (example: ./dogeseedz/Dogeseedz. conf ) before saving change the path of blocknotify, in my case it is installed in /usr/bin/blocknotify.sh 194 | 195 | ![This is an image](https://i.imgur.com/ZZwx6gN.png) 196 | > - Your coin config will look like this 197 | 198 | ![This is an image](https://media.discordapp.net/attachments/932109857698488330/946134365954510848/tuto.png) 199 | 200 | #### - Now let's start the stratum for coin 201 | > - Go to your terminal and type: addport fill in the symbol and algorithm of the coin you created, example:( Symbol: SEED Enter, Algo scrypt Enter ) 202 | 203 | ![This is an image](https://media.discordapp.net/attachments/932109857698488330/946137311907831818/addportteste.png) 204 | ![This is an image](https://media.discordapp.net/attachments/932109857698488330/946137311530340423/addportalgo.png) 205 | ![This is an image](https://media.discordapp.net/attachments/932109857698488330/946137311723274260/addportdone.png) 206 | 207 | > - Take the generated port, go back to your coin configuration, in the daemon tab, under POW or POS, you put the stratum port, click on save and your coin is working 208 | 209 | ![This is an image](https://media.discordapp.net/attachments/932109857698488330/946138001120055366/porta.png?width=840&height=559) 210 | 211 | #### In the currency TUBOPAY, LITECOIN, BITCOIN, DASH, DIGIBYTE, and several others, you must turn off the has getinfo box, so that the wallet can communicate with the pool 212 | ![This is an image](https://media.discordapp.net/attachments/932109857698488330/946139203425665095/tubohas.png?width=800&height=559) 213 | 214 | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- 215 | # If this tutorial helped you, make a contribution 216 | Bitcoin Address QR Code | Ethereum Address QR Code | Litecoin Address QR Code 217 | :-------------------------:|:-------------------------:|:-------------------------: 218 | ![Bitcoin Address](https://i.imgur.com/4rnaYNY.png) | ![Ethereum Address](https://i.imgur.com/0tJ6Dzu.png) | ![Litecoin Address](https://i.imgur.com/6tvGj4r.png) 219 | 220 | **BTC**: 1Ljwbwd6Z2UDkscDroHdnave1hzmjApmCD (BTC) 221 | 222 | **ETH**: 0x935437ad8a2289807319e2da6b68e4299676f9bf (ERC20) 223 | 224 | **LTC**: LeVPHyxkvGQ4fFW9DFGPYS6deNWY1AcSBo (LTC) 225 | --------------------------------------------------------------------------------