Skip to content

Commit

Permalink
v0.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
afiniel committed Oct 27, 2022
1 parent 706444c commit 2512f6a
Show file tree
Hide file tree
Showing 38 changed files with 2,402 additions and 333 deletions.
36 changes: 11 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<h1 align="center"> Yiimpool Yiimp Install Scrypt v0.4.2 With DaemonBuilder and addport (update 2022-10-26) </h1>
<h1 align="center"> Yiimpool Yiimp Install Scrypt v0.4.3 With DaemonBuilder and addport (update 2022-10-27) </h1>

<a href="https://discord.gg/TTprjGD2tw"><img src="https://img.shields.io/discord/904564600354254898.svg?style=flat&label=Discord %3C3%20&color=7289DA%22" alt="Join Community Badge"/></a>
</p>
The Development is still in progress. Please report any issues you find.

<h2 align="center"> Description </h2>
This is the main page for Yiimpool Yiimp Install script. Here you find information all documentation about <b> Yiimpool Yiimp Installer</b><p>The installer automatically install all requirements to get Yiimp installed correctly.</p><p><b> Yiimpool Yiimp Install Scrypt</b> is a Script that will install <b> Yiimp</b> Mining Pool on a clean<b>Ubuntu 18.04 VPS.</p>
This is the main page for Yiimpool Yiimp Install script. Here you find information all documentation about <b> Yiimpool Yiimp Installer v0.4.3</b><p>The installer automatically install all requirements to get Yiimp installed correctly.</p><p><b> Yiimpool Yiimp Install Scrypt</b> is a Script that will install <b> Yiimp</b> Mining Pool on a clean<b>Ubuntu 18.04 VPS.</p>

More information will be added soon.
<p align="center">
Expand All @@ -20,17 +20,15 @@ More information will be added soon.
* > Recommended RAM 8GB or higher.
<h2 align="left">ℹ️ Daemonbuilder </h2>
The script will install daemonbuilder. Daemonbuilder is a tool that will Download and
compile the coin for you.<p>
The script will install daemonbuilder. Daemonbuilder is a tool that will Download and compile the coin for you.

To use DaemonBuilder just Type:

```
daemonbuilder
```
</p>
in the terminal and Daemonbuilder will start.

in the terminal and Daemonbuilder will start.
* > The compile time depends on the CPU power of your VPS.
<h2 align="center"> 💾 How to start the installation. </h2></b>
Expand All @@ -45,12 +43,13 @@ Domain Name | localhost | Change to your domain either example.com or pool.examp
Stratum Domain | stratum.domain.name | This should be something other then your domain name
Install SSL | yes | Installs a 90 day cert from LetsEncrypt
Support Email | root@localhost | 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>
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</p>


You <b>MUST RUN</b> the <b>yiimpool</b> installer under <b>root</b> or an existing <b>account</b>. If you have an existing <b>account</b> then make sure that the account have <b>sudo permissions.</b>

<h4 align="left"> 📝 Run the following commands in the terminal. </h4>
Expand All @@ -60,12 +59,12 @@ curl https://raw.githubusercontent.com/afiniel/yiimp_install_script/master/insta
```


* > Installation will take approximately 25 minutes. The installer will let you know when the installation is complete.
If you have any issues with the installation open issue here on github.

***********************************

### Finish! Remember to

```
Expand All @@ -76,13 +75,13 @@ sudo reboot

After rebooting the server log back in to your user account you have created, when the rebooting process is complete log in again with your user account again and you have successfully install yiimp on your sever.

#### On first reboot it may take up to 1-2 minutes before the cron screens auto-start. After waiting 1-2 minutes type

#### On first reboot it may take up to 1-2 minutes before the cron screens auto-start. After waiting 1-2 minutes type:
```
motd
```

#### To help make your server more secure we have changed the install locations and directory structure of YiiMP as follows
#### To help make your server more secure we have changed the install locations and directory structure of YiiMP as follows:

Directory | Files
:--|:-:
Expand All @@ -99,20 +98,16 @@ Directory | Files

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

### If you have have not installed with dedicated port
### If you have have not installed with dedicated port.

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
```

If you have installed with dedicated port you just run the following in your terminal to add coin daemon ports.

```
addport
```

From there your YiiMP installation is fully completed. You can now go to example.com/site/AdminPortal to access your admin section and start adding your coins.

#### 🔗 Commands
Expand All @@ -122,37 +117,28 @@ To view your running screens run following
screen -list
'''
To view the screen you run the following

```
screen -r main|loop2|blocks|debug
```

To detach from a screen type:

```
ctrl+a+d "DONT do: ctrl+c it will kill your screen."
```

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
```

If you have dedicated port installed.

```
addport
```

and get to know those commands as well!


## 🎁 Support

Donations for continued support of this script are welcomed at:
Expand Down
52 changes: 52 additions & 0 deletions daemon_builder/menu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#!/usr/bin/env bash
#####################################################
# Updated by afiniel for crypto use...
#####################################################

FUNC=/etc/functionscoin.sh
if [[ ! -f "$FUNC" ]]; then
source /etc/functions.sh
else
source /etc/functionscoin.sh
fi
cd $STORAGE_ROOT/daemon_builder

RESULT=$(dialog --stdout --nocancel --default-item 1 --title "DamonBuilder" --menu "Choose one" -1 60 8 \
' ' "- New and existing Daemon builds and upgrade -" \
1 "Build New Coin Daemon from Source Code" \
2 "Upgrade an Existing Coin Daemon" \
' ' "- NOT WORKING YET. WORK IN PROGRESS If your last coin failed to build try this -" \
3 " WORK IN-PROGRESS! Daemon Build Failed - Help!" \
4 Exit)

if [ $RESULT = ]
then
bash $(basename $0) && exit;
fi

if [ $RESULT = 1 ]
then
clear;
cd $HOME/yiimp_install_script/daemon_builder
source menu2.sh;
fi

if [ $RESULT = 2 ]
then
clear;
cd $HOME/yiimp_install_script/daemon_builder
source menu3.sh;
fi

if [ $RESULT = 3 ]
then
clear;
echo "This is a work in progress. Please try again later. Run this script again to continue with other option!.";
exit;
fi

if [ $RESULT = 4 ]
then
clear;
exit;
fi
80 changes: 80 additions & 0 deletions daemon_builder/menu2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
#!/usr/bin/env bash
#####################################################
# Updated by Afiniel for crypto use...
#####################################################
source /etc/yiimpool.conf
FUNC=/etc/functionscoin.sh
if [[ ! -f "$FUNC" ]]; then
source /etc/functions.sh
else
source /etc/functionscoin.sh
fi
cd $STORAGE_ROOT/daemon_builder

RESULT=$(dialog --stdout --title "DaemonBuilder" --menu "Choose one" -1 60 7 \
1 "Install Berkeley 4.x Coin with autogen file" \
2 "Install Berkeley 5.1 Coin with autogen file" \
3 "Install Berkeley 5.3 Coin with autogen file" \
4 "Install Coin with makefile.unix file" \
5 "Install Coin with CMake file" \
6 Exit)

if [ $RESULT = ]
then
exit;
fi

if [ $RESULT = 1 ]
then
clear;
echo '
autogen=true
berkeley="4.8"
' | sudo -E tee $STORAGE_ROOT/daemon_builder/.my.cnf >/dev/null 2>&1;
source source.sh;
fi

if [ $RESULT = 2 ]
then
clear;
echo '
autogen=true
berkeley="5.1"
' | sudo -E tee $STORAGE_ROOT/daemon_builder/.my.cnf >/dev/null 2>&1;
source source.sh;
fi

if [ $RESULT = 3 ]
then
clear;
echo '
autogen=true
berkeley="5.3"
' | sudo -E tee $STORAGE_ROOT/daemon_builder/.my.cnf >/dev/null 2>&1;
source source.sh;
fi

if [ $RESULT = 4 ]
then
clear;
echo '
autogen=false
' | sudo -E tee $STORAGE_ROOT/daemon_builder/.my.cnf >/dev/null 2>&1;
source source.sh;
fi

if [ $RESULT = 5 ]
then
clear;
echo '
autogen=false
cmake=true
' | sudo -E tee $STORAGE_ROOT/daemon_builder/.my.cnf >/dev/null 2>&1;
source source.sh;
fi

if [ $RESULT = 6 ]
then
clear;
exit;
fi
54 changes: 54 additions & 0 deletions daemon_builder/menu3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#!/usr/bin/env bash
#####################################################
# Source code https://github.com/end222/pacmenu
# Updated by afiniel for crypto use...
#####################################################

source /etc/functions.sh
cd $STORAGE_ROOT/daemon_builder

RESULT=$(dialog --stdout --title "DaemonBuilder" --menu "Choose one" -1 60 4 \
1 "Update Berkeley 4.x Coin with autogen file" \
2 "Update Berkeley 5.x Coin with autogen file" \
3 "Update Coin with makefile.unix file" \
4 Exit)

if [ $RESULT = ]
then
exit;
fi

if [ $RESULT = 1 ]
then
clear;
echo '
autogen=true
berkeley="4.8"
' | sudo -E tee $STORAGE_ROOT/daemon_builder/.my.cnf >/dev/null 2>&1;
source upgrade.sh;
fi

if [ $RESULT = 2 ]
then
clear;
echo '
autogen=true
berkeley="5.3"
' | sudo -E tee $STORAGE_ROOT/daemon_builder/.my.cnf >/dev/null 2>&1;
source upgrade.sh;
fi

if [ $RESULT = 3 ]
then
clear;
echo '
autogen=false
' | sudo -E tee $STORAGE_ROOT/daemon_builder/.my.cnf >/dev/null 2>&1;
source upgrade.sh;
fi

if [ $RESULT = 4 ]
then
clear;
exit;
fi
27 changes: 27 additions & 0 deletions daemon_builder/packagecompile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

#!/bin/bash
################################################################################
# Original Author: Xavatar (https://github.com/xavatar/yiimp_install_scrypt)
# Web: https://www.xavatar.com
#
# Program:
# Install needed Package to compile crypto currency
#
# Currenc Author: Afiniel (https://www.github.com/afiniel)
# Web: https://www.afiniel.xyz
################################################################################

# Installing Package to compile crypto currency
output " "
output "Installing needed Package to compile crypto currency"
output " "
sleep 3

hide_output sudo apt -y install software-properties-common build-essential
hide_output sudo apt -y install libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils git cmake libboost-all-dev zlib1g-dev libz-dev libseccomp-dev libcap-dev libminiupnpc-dev gettext
hide_output sudo apt -y install libminiupnpc10 libzmq5
hide_output sudo apt -y install libcanberra-gtk-module libqrencode-dev libzmq3-dev
hide_output sudo apt -y install libqt5gui5 libqt5core5a libqt5webkit5-dev libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler
hide_output sudo add-apt-repository -y ppa:bitcoin/bitcoin
hide_output sudo apt -y update
hide_output sudo apt install -y libdb4.8-dev libdb4.8++-dev libdb5.3 libdb5.3++
Loading

0 comments on commit 2512f6a

Please sign in to comment.