@@ -11,6 +11,7 @@ A set of convenience scripts, written in bash, to help manage installation, conf
11There is allot to install so the install script will do most of the heavy lifting.
11There is allot to install so the install script will do most of the heavy lifting.
12At the start the expectation is that you have:
12At the start the expectation is that you have:
13* Computer running Ubuntu 18.04 (LTS)
13* Computer running Ubuntu 18.04 (LTS)
14* User account with sudo privileges
15* User account with sudo privileges
15* Installed git
16* Installed git
16* Optionally installed [xmrig-proxy](https://github.com/xmrig/xmrig-proxy)
17* Optionally installed [xmrig-proxy](https://github.com/xmrig/xmrig-proxy)
@@ -21,38 +22,37 @@ Some knowledge of:
21* Linux Command Line Interface
22* Linux Command Line Interface
22* Linux shell `bash`
23* Linux shell `bash`
24−There is more to install but the install script will install the rest.
26### Installation
25### Installation
281. Change to your user home directory.
271. Change to your user home directory.
31−2. Install git.
29+1. Install git.
32 `sudo apt install git`
30 `sudo apt install git`
34−3. Clone this project.
31+1. Clone this project.
35 `git clone https://github.com/seanwhe/xmrig-bash-scripts`
32 `git clone https://github.com/seanwhe/xmrig-bash-scripts`
37−4. Change into the cloned directory.
33+1. Change into the cloned directory.
38 `cd xmrig-bash-scripts`
34 `cd xmrig-bash-scripts`
40−5. Edit the settings file to your preference.
43−6. Run the install script
35+1. Run the install script
44 `./install.sh`
36 `./install.sh`
45−
37+1. When prompted: "Enter your own settings?" enter 'y'es.
38+1. Enter values for your:
40+ 1. Pool server TCP port
41+ 1. Receive wallet address
43+ 1. Miner identifier name
46−7. After install is complete. Attach to the screen session created during the installation.
44+1. After install is complete. Attach to the screen session created during the installation.
47 `screen -r`
45 `screen -r`
49### Operation
47### Operation
51Defaults - The settings.sh contains a number of variables. With the exception of the 'xmrig' binary, which is installed to `/usr/bin/xmrig`, all files remain in the cloned project directory `~/xmrig-bash-scripts`. Any files generated while running the scripts are also created in this directory.
49Defaults - The settings.sh contains a number of variables. With the exception of the 'xmrig' binary, which is installed to `/usr/bin/xmrig`, all files remain in the cloned project directory `~/xmrig-bash-scripts`. Any files generated while running the scripts are also created in this directory.
53−During install the folder source for [xmrig cpu](https://github.com/xmrig/xmrig) is cloned to `~/xmrig-bash-scripts/xmrig-cpu/`. The `config.json` is also created in this path.
51+During install the folder source for [xmrig cpu](https://github.com/xmrig/xmrig) is cloned to `~/xmrig-bash-scripts/xmrig-cpu/`. The file `config.json`, used to configure xmrig, is also created in this path and is passed to xmrig at startup.
53+During installation it is recomended to enter your own settings. This creates a file named 'mysettings.sh' which will not be overwritten during future installs or upgrades. Values for variables found in 'mysettings.sh' are used to create 'config.json'.
55−This should work out the box, if you edit only the top section of `settings.sh` and followed the steps here.
55+This should work out the box, if you follow the installation steps and enter your own values for 'mysettings.sh.
57Once you have a running xmrig then you can start playing around and tweaking to suite requirements.
57Once you have a running xmrig then you can start playing around and tweaking to suite requirements.
@@ -67,6 +67,7 @@ The scripts are designed to be modular to promote resuse, execute exclusion and
67* crontab-on.sh - redefines the users crontab as created during install.
67* crontab-on.sh - redefines the users crontab as created during install.
68* depends.sh - installs dependancies required by xmrig and these scripts.
68* depends.sh - installs dependancies required by xmrig and these scripts.
69* functions.sh - a collection of functions used in various of the scripts.
69* functions.sh - a collection of functions used in various of the scripts.
70+* input.sh - prompts to enter values for creating 'mysettings.sh'
70* install.sh - the main entry point when first installing.
71* install.sh - the main entry point when first installing.
71* maintenance.sh - performs apt update, upgrade, autoremove and autoclean operations.
72* maintenance.sh - performs apt update, upgrade, autoremove and autoclean operations.
72* settings.sh - contains variables used by these scripts.
73* settings.sh - contains variables used by these scripts.