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:
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:
Once you've updated and pasted the above text, do the following:

  1. press ctl+x to begin exiting the file
  2. press y to confirm changes
  3. press return to save the file
Settings are now saved. We'll reference them later when starting cgminer.

This guide was first published on Jun 20, 2013. It was last updated on Jun 20, 2013.

This page (Configure Settings) was last updated on Nov 28, 2021.

Text editor powered by tinymce.