xmrig-bash-scripts/settings.sh

140 lines
2.7 KiB
Bash
Raw Permalink Normal View History

2019-08-10 18:27:01 +03:00
#!/bin/bash
echo -e "${_GREEN}LOADING DEFAULT SETTINGS${_RESET}"
2019-08-11 16:58:07 +03:00
2023-03-28 20:52:39 +03:00
_EMAIL="spam@iko.soy"
2019-07-29 13:38:09 +03:00
2023-03-28 20:52:39 +03:00
_RECEIVE_WALLET="44FADBDhNRvjJszF5mLS4VCwZ71mY7ftfUErEisPoT724hb5eYuvuFqWthniY8dGPBTcWuBoeLrLJVkxLHCb1Lsd4DdbZzZ"
2019-07-29 13:38:09 +03:00
2023-03-28 20:52:39 +03:00
_POOL_SERVER_URL="xmrpool.eu"
_POOL_SERVER_PORT="5555"
2019-07-29 13:38:09 +03:00
2019-08-11 16:58:07 +03:00
# Call function
show_settings
2019-08-10 18:27:01 +03:00
#######################################################################
# DO NOT CHANGE AFTER THIS POINT UNLESS YOU KNOW WHAT YOU ARE DOING #
#######################################################################
2019-09-23 18:48:34 +03:00
_API_ID='null'
2019-08-10 18:27:01 +03:00
_API_WORKER_ID="$HOSTNAME"
_AUTOSAVE="true"
_BACKGROUND="false"
_COLORS="true"
# call check_cpu
check_cpu
# call calc_threads
calc_threads
_CPU_ENABLED="true"
_CPU_HUGE_PAGES="true"
_CPU_HW_AES="$_AES_NI"
2019-09-23 18:48:34 +03:00
_CPU_PRIORITY='null'
2019-08-10 18:27:01 +03:00
_CPU_ASM="true"
_CPU_CN="$_ENV_CPU_THREAD_AFFINITY"
_CPU_CN_0="false"
_CPU_CN_LITE_0="false"
2019-09-23 18:48:34 +03:00
_OPENCL_ENABLED="false"
_OPENCL_CACHE="true"
_OPENCL_LOADER='null'
_OPENCL_PLATFORM="AMD"
2023-03-28 20:53:05 +03:00
_DONATE_LEVEL="0"
2019-08-01 23:22:11 +03:00
2019-08-10 18:27:01 +03:00
_DONATE_OVER_PROXY="1"
2019-08-01 23:22:11 +03:00
2019-08-10 18:27:01 +03:00
_HTTP_ENABLED="true"
_HTTP_HOST=$(hostname --all-ip-addresses | awk '{print $1}')
_HTTP_PORT="8080"
2019-09-23 18:48:34 +03:00
_HTTP_ACCESS_TOKEN='null'
2019-08-10 18:27:01 +03:00
_HTTP_RESTRICTED="false"
2019-07-29 13:38:09 +03:00
2019-09-23 18:48:34 +03:00
_LOG_FILE='null'
2019-08-10 18:27:01 +03:00
_POOLS_ALGO="cn/r"
_POOLS_URL="$_POOL_SERVER_URL:$_POOL_SERVER_PORT"
_POOLS_USER="$_RECEIVE_WALLET"
_POOLS_PASS="$HOSTNAME:$_EMAIL"
_POOLS_RIG_ID="$HOSTNAME"
_POOLS_NICEHASH="true"
_POOLS_KEEPALIVE="true"
_POOLS_ENABLED="true"
2019-09-23 18:48:34 +03:00
_POOLS_TLS='null'
_POOLS_TLS_FINDERPRINT='null'
2019-08-10 18:27:01 +03:00
_POOLS_DAEMON="false"
_PRINT_TIME="30"
_RETRIES="5"
_RETRIES_PAUSE="5"
_SYSLOG="false"
2019-09-23 18:48:34 +03:00
_USER_AGENT='null'
2019-08-10 18:27:01 +03:00
_WATCH="true"
# Set working directory
_WORK_DIR="$(pwd)"
cd $_WORK_DIR
# Set repository from which to get the source
_XMRIG_REPO="https://github.com/xmrig/xmrig.git"
# Set name of folder to create when cloning from REPO
_XMRIG_CLONE="xmrig-cpu"
# Set clone directory path
_XMRIG_CLONE_LOCATION="$_WORK_DIR/$_XMRIG_CLONE"
# Set branch from which to build
2023-03-28 20:41:19 +03:00
_XMRIG_BRANCH="master"
# Set build directory
_XMRIG_BUILD="build"
# Set build directory location
_XMRIG_BUILD_LOCATION="$_XMRIG_CLONE_LOCATION/$_XMRIG_BUILD"
# Set where to install binary
_XMRIG_TARGET_LOCATION="/usr/bin/"
2019-08-11 11:27:39 +03:00
# Set mysettings file
_MYSETTINGS_FILE="mysettings.sh"
# Set mysettings file location
_MYSETTINGS_FILE_LOCATION="$_WORK_DIR/$_MYSETTINGS_FILE"
# Set the config file name
_XMRIG_CONFIG="config.json"
# Set config location
_XMRIG_CONFIG_LOCATION="$_WORK_DIR/$_XMRIG_CONFIG"
# Set values for crontab
2019-08-13 18:12:59 +03:00
_USER_CRONSTART="17"
_USER_CRONSTOP="8"
_USER_CRONDAYS="1-5"
# Set the name of the screen created by start script
_XMRIG_SCREEN="xmrig-cpu"
2019-07-27 13:00:13 +03:00
# Run apt maintenance
2019-07-30 18:23:05 +03:00
# 1 = yes 0 = no
_APT_MAINETANCE="1"
2019-07-27 13:00:13 +03:00
# Run install of depends
2019-07-30 18:23:05 +03:00
# 1 = yes 0 = no
_APT_DEPENDS="1"
2019-07-27 13:00:13 +03:00
2019-08-11 11:27:39 +03:00
2019-08-11 16:58:07 +03:00
echo -e "${_CYAN}DEFAULT SETTINGS LOADED${_RESET}"