2019-07-27 13:00:13 +03:00
|
|
|
#!/bin/bash
|
|
|
|
echo "#################################"
|
|
|
|
echo " INSTALLING DEPENDENCIES "
|
|
|
|
echo "#################################"
|
|
|
|
|
|
|
|
# Install the software requirements
|
|
|
|
|
|
|
|
if [ $_APT_DEPENDS = 1 ]; then
|
|
|
|
|
2019-07-29 13:22:18 +03:00
|
|
|
sudo apt install -y cpuid jo screen software-properties-common git build-essential cmake libuv1-dev libssl-dev libmicrohttpd-dev gcc g++
|
2019-07-29 15:01:07 +03:00
|
|
|
# Install xmrig depends
|
|
|
|
sudo apt-get install git build-essential cmake libuv1-dev libmicrohttpd-dev libssl-dev libhwloc-dev
|
|
|
|
# Install xmrig-bash-scripts depends
|
|
|
|
sudo apt install jo cpuid
|
2019-07-27 13:00:13 +03:00
|
|
|
else
|
|
|
|
echo "Depend install is set to NO ($_APT_DEPENDS) Skipping"
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "#################################"
|
|
|
|
echo " DEPENDENCIES INSTALLED "
|
|
|
|
echo "#################################"
|