All in one installer for your crypto-server needs.
Ultimate Crypto-Server Setup Installer! Automates most of the tedious tasks of the following releases:
- YiiMP
- NOMP
- MPOS
- CryptoNote-Nodejs
- Generic faucet script
- Installation
- Usage
- YiiMP Single Server Install
- YiiMP Multi-Server Install
- NOMP Install
- MPOS Install
- CryptoNote-Nodejs Install
- Generic faucet script
- Credits
- License
- Support
Installation:
Requires a fresh Ubuntu 16.04 installation.
curl https://raw.githubusercontent.com/bandexcoin-project/Multi-Pool-Installer/master/bootstrap.sh | bash
So I just really realized my first line of instructions for the script is wrong and not clear. So I am updating it so going forward there are no issues.
You MUST initially run the installer under root. If you already have a user account created on your server you MUST sudo su
and drop to the root command line and run the above curl command. You MUST let the installer create a new user account for you. There are permission settings that are going on in the backend that NEEDS to be done before running the mutipool
command.
After creating the new user you MUST reboot the machine in to the new account. If you are doing a multi server setup you MUST do this on each server. My time has become limited to how much I can update this FREE script. So if you need something changed or fixed, consider donating instead of complaining it doesnt work.
After rebooting the server to your new user to start the installer type:
multipool
The Yiimp Single Server Install is recommend for private or very small pools. It is recommended to have at least 4GB ram in order to function properly. Setup is automated after the following questions are answered:
Question | Default | Help |
---|---|---|
Are you using a sub-domain as the main domain | no | If you plan to use something like pool.example.com |
Install SSL | yes | Installs a 90 day cert from LetsEncrypt |
Domain Name | localhost | Change to your domain either example.com or pool.example.com |
Stratum Domain | stratum.domain.name | This should be something other then your domain name |
Support Email | support@domain.name | Used to send you system alerts |
Your Public IP | pulls ip last used to acess web server | To verify go to http://www.whatsmyip.org |
DB Root Password | autogenerated 36 character password | Default mysql root password |
DB Panel User Password | autogenerated 36 character password | Default mysql frontend password |
DB Stratum Password | autogenerated 36 character password | Default mysql stratum password |
Admin Portal Access Location | AdminPortal | to access example.com/site/AdminPortal |
Installation will take about 25 minutes to fully complete. You will get a message on the screen letting you know it has finished.
After rebooting the server log back in to your user account. And you will be greeted by the following screen:
On first reboot it may take up to 1 minute before the cron screens auto-start. After waiting one minute type:
motd
and you should see this:
To help make your server more secure we have changed the install locations and directory structure of YiiMP as follows:
Directory | Files |
---|---|
/home/crypto-data/yiimp | General install location for YiiMP |
/home/crypto-data/yiimp/starts | screens and stratum sh files - you do not need to run these |
/home/crypto-data/yiimp/site | - |
/home/crypto-data/yiimp/site/web | New location for YiiMP web files |
/home/crypto-data/yiimp/site/backup | backup location for mysql DB |
/home/crypto-data/yiimp/site/configuration | New location of your serverconfig.php |
/home/crypto-data/yiimp/site/crons | New location of the main:blocks:loop2 sh files |
/home/crypto-data/yiimp/site/log | New location for debug.log and your nginx server log |
/home/crypto-data/yiimp/site/stratum | New location for your stratum files |
/home/crypto-data/wallets | New location for wallets |
Permissions have been setup correctly allowing your main user write acess to the /home/crypto-data directories! Changing file or directory permissions after install will cause your YiiMP to not function correctly, you have been warned!!
By default even though all stratum algos start on server start, the ports have been blocked by the firewall. To open a port type:
sudo ufw allow port number
From there your YiiMP Single Server installation is fully completed. You can now go to example.com/site/AdminPortal to access your admin section and start adding your coins.
To view a screen type:
screen -r main|loop2|blocks|debug
To detach from a screen type:
ctrl+a+d
To start, stop or restart main|loop2|blocks|debug type:
screens start|stop|restart main|loop2|blocks|debug
We also suggest that you type:
yiimp
and get to know those commands as well!
The YiiMP Multi-Server Install is recommended for those that want to run larger public pools. This offers the most security and is a lot more complex on the setup.
The following two tables show you the perfered server setup for the multi-server setup:
Role | OS Version | Recommended Ram |
---|---|---|
Web Server | Ubuntu 16.04 | 2GB |
DB & Stratum Server | Ubuntu 16.04 | 4GB |
Daemon Server | Ubuntu 16.04 only | 8GB+ |
or
Role | OS Version | Recommended Ram |
---|---|---|
Web Server | Ubuntu 16.04 | 2GB |
DB Server | Ubuntu 16.04 | 2GB |
Stratum Server | Ubuntu 16.04 | 2GB |
Daemon Server | Ubuntu 16.04 only | 8GB+ |
It is also highly recommended to use a provider that offers private IP's between your servers. If your provider only offers public IP's you must install Wireguard (Installer provided). This will setup a secure VPN connection between your servers for the backend communication.
If installing wireguard do not modify the default private IP's that are provide. Installation will fail!
Just like with the single server install there must be a user account created. If you attempt to run the script under root, it will force you to create a new user account and log in to it.
After the user accounts are created on each server, setup MUST begin on the server that is hosting your database. You do not need to run the installer individually on each server.
βοΈ During the setup process you will be prompted to enter the user name and password for each of your servers. This is required for the installer to be able to SSH in to each server to perform the installation tasks on that server.
Installation will take about 25 minutes to fully complete. You will get a message on the screen letting you know it has finished.
On first reboot it may take up to 1 minute before the cron screens auto-start. After waiting one minute type:
motd
To help make your server more secure we have changed the install locations and directory structure of YiiMP as follows:
Directory | Files | Server |
---|---|---|
/home/crypto-data/yiimp | General install location for YiiMP | All |
/home/crypto-data/yiimp/starts | screens and stratum sh files - you do not need to run these | Web and Stratum |
/home/crypto-data/yiimp/site | - | Web and Stratum |
/home/crypto-data/yiimp/site/web | New location for YiiMP web files | Web |
/home/crypto-data/yiimp/site/backup | backup location for mysql DB | Web |
/home/crypto-data/yiimp/site/configuration | New location of your serverconfig.php | Web |
/home/crypto-data/yiimp/site/crons | New location of the main:blocks:loop2 sh files |
Web |
/home/crypto-data/yiimp/site/log | New location for debug.log and your nginx server log | Web |
/home/crypto-data/yiimp/site/stratum | New location for your stratum files | Stratum |
/home/crypto-data/wallets | New location for wallets | Daemon |
Permissions have been setup correctly allowing your main user write acess to the /home/crypto-data directories! Changing file or directory permissions after install will cause your YiiMP to not function correctly, you have been warned!!
By default even though all stratum algos start on server start, the ports have been blocked by the firewall. To open a port type:
sudo ufw allow port number
You MUST also open the RPC Port number on the daemon server when adding new coins. Failing to open the port will result in a connection time out error.
From there your YiiMP Multi Server installation is fully completed. You can now go to example.com/site/AdminPortal to access your admin section and start adding your coins.
To view a screen type:
screen -r main|loop2|blocks|debug
To detach from a screen type:
ctrl+a+d
To start, stop or restart main|loop2|blocks|debug type:
screens start|stop|restart main|loop2|blocks|debug
We also suggest that you type:
yiimp
and get to know those commands as well!
The NOMP options install everything you need to run NOMP and gets your first coin installed. It is recommended to have at least 4GB ram in order to function properly.
During the initial setup you will be asked similar questions as the YiiMP installer in addition you will also be asked for the first coin that you wish to have installed. After all the questions are answered setup will be fully automated.
To help make your server more secure we have changed the install locations and directory structure of NOMP as follows:
Directory | Files |
---|---|
/home/crypto-data/nomp | General install location for NOMP |
/home/crypto-data/nomp/starts | screens and stratum sh files - you do not need to run these |
/home/crypto-data/nomp/site | New location for NOMP files |
/home/crypto-data/nomp/site/website | Location of NOMP html files |
/home/crypto-data/wallets | New location for wallets |
Permissions have been setup correctly allowing your main user write acess to the /home/crypto-data directories! Changing file or directory permissions after install will cause your YiiMP to not function correctly, you have been warned!!
By default all non web ports have been blocked by the firewall, with exception of the first default coin. To open any other ports type:
sudo ufw allow port number
This feature will be added at a later date.
The MPOS options install everything you need to run MPOS and gets your first coin installed. It is recommended to have at least 4GB ram in order to function properly.
During the initial setup you will be asked similar questions as the YiiMP installer in addition you will also be asked for the first coin that you wish to have installed. After all the questions are answered setup will be fully automated.
This feature will be added at a later date.
The CryptoNote-Nodejs options install everything you need to run CryptoNote-Nodejs and gets your first coin installed. It is recommended to have at least 4GB ram in order to function properly.
During the initial setup you will be asked similar questions as the YiiMP installer in addition you will also be asked for the first coin that you wish to have installed. After all the questions are answered setup will be fully automated.
This feature will be added at a later date.
The faucet options install everything you need to run your own faucet script and setup multiple coins on it. Each coin will have their own sub-site. Setup is automated after the following questions are answered:
The following GitHubs have been a source of inspiration and code:
The following forks have been used in the making of the script:
Join our active discord channel:
Find our BitCoinTalk Thread at:
https://bitcointalk.org/index.php?topic=4980079.0
Donations for continued support of this script are welcomed at:
- BTC 3DvcaPT3Kio8Hgyw4ZA9y1feNnKZjH7Y21
- BCH qrf2fhk2pfka5k649826z4683tuqehaq2sc65nfz3e
- ETH 0x6A047e5410f433FDBF32D7fb118B6246E3b7C136
- ETC 0xc5C3E017087adB10C2FE085cF8eA9b1c9867Ff28
- LTC MLS5pfgb7QMqBm3pmBvuJ7eRCRgwLV25Nz