3
3
#
4
4
# Author: Afiniel
5
5
# Date: 2023-01-12
6
- #
7
- # Updated 2024-07-15
8
- # Description: Installs all requirements for DaemonBuilder.
9
- #
6
+ #
7
+ # Description: This install all requirements for DaemonBuilder.
8
+ #
10
9
11
- # Load functions and configurations
10
+ # Load functions
12
11
source /etc/functions.sh
13
12
source /etc/yiimpool.conf
14
- source " $STORAGE_ROOT /yiimp/.yiimp.conf"
13
+ source $STORAGE_ROOT /yiimp/.yiimp.conf
15
14
16
- set -euo pipefail
15
+ set -eu -o pipefail
17
16
18
17
function print_error {
19
- read line file <<< $( caller )
20
- echo " An error occurred in line $line of file $file :" >&2
21
- sed " ${line} q;d" " $file " >&2
18
+ read line file <<< $( caller )
19
+ echo " An error occurred in line $line of file $file :" >&2
20
+ sed " ${line} q;d" " $file " >&2
22
21
}
23
22
trap print_error ERR
24
23
25
- # Change directory to DaemonBuilder
26
- cd " $HOME /Yiimpoolv1/daemon_builder"
27
-
28
- # Copy screen-scrypt-daemonbuilder.sh and set permissions
29
- hide_output sudo cp -r " $HOME /Yiimpoolv1/daemon_builder/utils/screen-scrypt-daemonbuilder.sh" /etc/
24
+ cd $HOME /Yiimpoolv1/daemon_builder
25
+ hide_output sudo cp -r $HOME /Yiimpoolv1/daemon_builder/utils/screen-scrypt-daemonbuilder.sh /etc/
30
26
hide_output sudo chmod +x /etc/screen-scrypt-daemonbuilder.sh
31
27
32
- if [[ " ${DISTRO} " == " 18" ]]; then
33
- apt_install libz-dev libminiupnpc10
34
- hide_output sudo add-apt-repository -y ppa:bitcoin/bitcoin
35
- hide_output sudo apt-get update
36
- hide_output sudo apt-get -y upgrade
37
- apt_install libdb4.8-dev libdb4.8++-dev libdb5.3 libdb5.3++
28
+ # Install dependencies
29
+ echo
30
+ echo -e " $MAGENTA => Installing Package to compile crypto currency <= $NC "
31
+ hide_output sudo apt-get update
32
+ hide_output sudo apt-get -y upgrade
33
+ hide_output sudo apt-get -y install p7zip-full
34
+ apt_install build-essential libzmq5 libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils cmake libboost-all-dev zlib1g-dev \
35
+ libseccomp-dev libcap-dev libminiupnpc-dev gettext libcanberra-gtk-module libqrencode-dev libzmq3-dev \
36
+ libqt5gui5 libqt5core5a libqt5webkit5-dev libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler
37
+
38
+ if [[ (" ${DISTRO} " == " 18" ) ]]; then
39
+ apt_install libz-dev libminiupnpc10
40
+ hide_output sudo add-apt-repository -y ppa:bitcoin/bitcoin
41
+ hide_output sudo apt-get update
42
+ hide_output sudo apt-get -y upgrade
43
+ apt_install libdb4.8-dev libdb4.8++-dev libdb5.3 libdb5.3++
38
44
fi
39
45
40
46
hide_output sudo apt -y install libdb5.3 libdb5.3++
41
- echo -e " $GREEN => Installation complete <=${NC} "
47
+ echo -e " $GREEN => Complete <=$NC "
42
48
43
- echo -e " \n$MAGENTA => Installing additional system files required for daemons <= ${NC} "
49
+ echo
50
+ echo -e " $MAGENTA => Installing additional system files required for daemons <= $NC "
44
51
hide_output sudo apt-get update
45
52
apt_install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev libboost-all-dev libminiupnpc-dev \
46
- libqt5gui5 libqt5core5a libqt5webkit5-dev libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler \
47
- libqrencode-dev libzmq3-dev libgmp-dev cmake libunbound-dev libsodium-dev libunwind8-dev liblzma-dev libreadline6-dev \
48
- libldns-dev libexpat1-dev libpgm-dev libhidapi-dev libusb-1.0-0-dev libudev-dev libboost-chrono-dev libboost-date-time-dev \
49
- libboost-filesystem-dev libboost-locale-dev libboost-program-options-dev libboost-regex-dev libboost-serialization-dev \
50
- libboost-system-dev libboost-thread-dev python3 ccache doxygen graphviz default-libmysqlclient-dev libnghttp2-dev \
51
- librtmp-dev libssh2-1 libssh2-1-dev libldap2-dev libidn11-dev libpsl-dev libnatpmp-dev systemtap-sdt-dev qtwayland5
52
-
53
- if [[ " ${DISTRO} " == " 18" ]]; then
54
- hide_output sudo apt -y install libsqlite3-dev
53
+ libqt5gui5 libqt5core5a libqt5webkit5-dev libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler libqrencode-dev libzmq3-dev \
54
+ libgmp-dev cmake libunbound-dev libsodium-dev libunwind8-dev liblzma-dev libreadline6-dev libldns-dev libexpat1-dev libpgm-dev libhidapi-dev \
55
+ libusb-1.0-0-dev libudev-dev libboost-chrono-dev libboost-date-time-dev libboost-filesystem-dev libboost-locale-dev libboost-program-options-dev \
56
+ libboost-regex-dev libboost-serialization-dev libboost-system-dev libboost-thread-dev python3 ccache doxygen graphviz default-libmysqlclient-dev \
57
+ libnghttp2-dev librtmp-dev libssh2-1 libssh2-1-dev libldap2-dev libidn11-dev libpsl-dev libnatpmp-dev systemtap-sdt-dev qtwayland5
58
+
59
+ if [[ (" ${DISTRO} " == " 18" ) ]]; then
60
+ hide_output sudo apt -y install ibsqlite3-dev
55
61
else
56
- hide_output sudo apt -y install libdb-dev
57
- hide_output sudo apt -y install libdb5.3++ libdb5.3++-dev
62
+ hide_output sudo apt -y install libdb-dev
63
+ hide_output sudo apt -y install libdb5.3++ libdb5.3++-dev
58
64
fi
59
65
60
- echo -e " $GREEN => Additional system files installation complete <=${NC} "
66
+ echo -e " $GREEN Additional System Files Completed...$NC "
67
+ echo
61
68
62
- # Update gcc & g++ to version 8
63
- echo -e " \n$CYAN => Updating gcc & g++ to version 8 ${NC} "
69
+ # Updating gcc & g++ to version 8
70
+ echo
71
+ echo -e " $CYAN => Updating gcc & g++ to version 8 $NC "
64
72
hide_output sudo apt-get update
65
73
hide_output sudo apt-get -y upgrade
66
74
apt_dist_upgrade
67
75
68
76
apt_install software-properties-common
69
77
70
- if [[ " ${DISTRO} " == " 18" ]]; then
71
- hide_output sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
78
+ if [[ ( " ${DISTRO} " == " 18" ) ]]; then
79
+ hide_output sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
72
80
fi
73
81
hide_output sudo apt-get update
74
82
@@ -77,10 +85,8 @@ apt_install gcc-8 g++-8
77
85
hide_output sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 60 --slave /usr/bin/g++ g++ /usr/bin/g++-8
78
86
hide_output sudo update-alternatives --config gcc
79
87
80
- echo -e " $GREEN => gcc & g++ updated to version 8 <=${NC} "
81
-
82
- set +euo pipefail
88
+ echo -e " $GREEN gcc & g++ Updated...$NC "
83
89
84
- # Return to DaemonBuilder directory and source berkeley.sh
85
- cd " $HOME /Yiimpoolv1/daemon_builder"
86
- source " $HOME /Yiimpoolv1/daemon_builder/berkeley.sh"
90
+ set +eu +o pipefail
91
+ cd $HOME /Yiimpoolv1/daemon_builder
92
+ source $HOME /Yiimpoolv1/daemon_builder/berkeley.sh
0 commit comments