Install script for yiimp on Debian 9
While I did add some server security to the script, it is every server owners responsibility to fully secure their own servers. After the installation you will still need to customize your serverconfig.php file to your liking, add your API keys, and build/add your coins to the control panel.
There will be several wallets already in yiimp. These have nothing to do with the installation script and are from the database import from the yiimp github.
If you need further assistance we have a small but growing discord channel at https://discord.gg/uQ5wdTC
Run the script as root
This script has an interactive beginning and will ask for the following information:
Your time zone Server Name Support Email Address Server Admin Email Address If you would like fail2ban installed If you would like to have SSL (LetsEncrypt) installed - Your domain must be pointed to your server prior to running the script or SSL will fail to install. New custom location for yiimp admin login.
Once those questions are answered the script will then be fully automated for the rest of the install.
- Update and Upgrade Debian Packages
- Install Aptitude
- Install and configure Nginx
- Install MariaDB with random root password
- Install php7
- Install various dev packages required for building blocknotify and stratum
- Install SendMail
- Install Fail2Ban if selected
- Install and configur phpmyadmin with random password for phpmyadmin user
- Clone yiimp build packages, create directory structure, set file permissions, and more
- Update server clock
- Install LetsEncrypt if selected
- Create yiimp database, create 2 users with random passwords - passwords saved in ~/.my.cnf
- Import the sql dumps from yiimp
- Create base yiimp serverconfig.php file to get you going
- Updates all directory permissions
This install script will get you 95% ready to go with yiimp. There are a few things you need to do after the main install is finished.
You must update the following files:
-
/var/web/serverconfig.php - update this file to include your public ip to access the admin panel. update with public keys from exchanges. update with other information specific to your server.
-
/etc/yiimp/keys.php - update with secrect keys from the exchanges.
-
After you add the missing information to those files then run: bash main.sh bash loop2.sh bash block.sh
as root!
# cd /tmp
# git clone https://github.com/kovenko/yiimp_install_scrypt.git && ./install.sh
# crontab -e
Add next strings
@reboot /usr/bin/nohup /var/web/main.sh &
@reboot /usr/bin/nohup /var/web/loop2.sh &
@reboot /usr/bin/nohup /var/web/blocks.sh &
@reboot /usr/bin/nohup /var/stratum/run.sh lyra2v2 &
As example build RaceCoin daemon
# ./racecoin.sh
After installation is complete goto "Address Server Admin" URL and click link "CREATE COIN".
Name: Race
Symbol: RACE
Algo: lyra2v2
Image: /images/RACE.png
Enable on
Auto Ready on
Watch on
RPC Host: localhost
RPC Port: 8801
Save configuration, click "COIN PROPERTIES" link.
Copy Sample config to clipboard
rpcuser=yiimprpc
...
Paste to configuration file /root/.racecore/race.conf
# crontab -e
@reboot /usr/local/bin/raced &
@reboot /usr/bin/nohup /var/web/main.sh &
@reboot /usr/bin/nohup /var/web/loop2.sh &
@reboot /usr/bin/nohup /var/web/blocks.sh &
@reboot /usr/bin/nohup /var/stratum/run.sh lyra2v2 &
Reboot server! All is ready!