Now we can create a configuration file to store the settings we'll use with cgminer.
Create the file and begin editing it by entering the following command:
Create the file and begin editing it by entering the following command:
- sudo nano cgminer.conf
Update the below template with your mining pool credentials by replacing "PoolAddress:Port", "UserName.WorkerName", and "Password" with your info, then copy & paste into the nano editor:
- {
- "pools" : [
- {
- "url" : "PoolAddress:Port",
- "user" : "UserName.WorkerName",
- "pass" : "Password"
- }
- ]
- ,
- "api-listen" : true,
- "api-port" : "4028",
- "expiry" : "120",
- "failover-only" : true,
- "log" : "5",
- "no-pool-disable" : true,
- "queue" : "2",
- "scan-time" : "60",
- "worktime" : true,
- "shares" : "0",
- "kernel-path" : "/usr/local/bin",
- "api-allow" : "0/0",
- "icarus-options" : "115200:1:1",
- "icarus-timing" : "3.0=100"
- }
The above lines containing "icarus" were included for Block Erupter USB devices, be sure to update them if you are using a different mining device!
For example, if you mine using Slush's pool you would replace "PoolAddress:Port", with:
- "http://stratum.bitcoin.cz:3333",
Once you've updated and pasted the above text, do the following:
- press ctl+x to begin exiting the file
- press y to confirm changes
- press return to save the file
Settings are now saved. We'll reference them later when starting cgminer.