Skip to content

kovenko/yiimp_install_scrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

yiimp

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.

  1. Update and Upgrade Debian Packages
  2. Install Aptitude
  3. Install and configure Nginx
  4. Install MariaDB with random root password
  5. Install php7
  6. Install various dev packages required for building blocknotify and stratum
  7. Install SendMail
  8. Install Fail2Ban if selected
  9. Install and configur phpmyadmin with random password for phpmyadmin user
  10. Clone yiimp build packages, create directory structure, set file permissions, and more
  11. Update server clock
  12. Install LetsEncrypt if selected
  13. Create yiimp database, create 2 users with random passwords - passwords saved in ~/.my.cnf
  14. Import the sql dumps from yiimp
  15. Create base yiimp serverconfig.php file to get you going
  16. 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:

  1. /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.

  2. /etc/yiimp/keys.php - update with secrect keys from the exchanges.

  3. After you add the missing information to those files then run: bash main.sh bash loop2.sh bash block.sh

To download and run

as root!
# cd /tmp
# git clone https://github.com/kovenko/yiimp_install_scrypt.git && ./install.sh

After installation is complete

# 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 &

As example for lyra2v2

@reboot /usr/bin/nohup /var/stratum/run.sh lyra2v2 &

Start assembling the demons of coins

As example build RaceCoin daemon
# ./racecoin.sh

After installation is complete goto "Address Server Admin" URL and click link "CREATE COIN".

General tab

Name: Race
Symbol: RACE
Algo: lyra2v2
Image: /images/RACE.png

Settings tab

Enable on
Auto Ready on
Watch on

Daemon tab

RPC Host: localhost
RPC Port: 8801

Save configuration, click "COIN PROPERTIES" link.

Daemon tab

Copy Sample config to clipboard
rpcuser=yiimprpc
...

Paste to configuration file /root/.racecore/race.conf

Add autoload daemon

# 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!

About

Yiimp install script for Debian 9

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages