All parameters that are specified on the command line while starting dcrd, dcrwallet and dcrctl can also be kept in configuration files. This is a good way of storing your login credentials so that you do not need to include them in scripts or type them into the terminal all the time.

Configuration File Basics¶

If unfamiliar with the basics of configuration files, please review the information found in our Startup Options Intro page.

dcrd.conf¶

Choose any username and password you want in the following steps. You do not need to register these anywhere and they will only be used to allow dcrwallet and dcrctl to communicate with dcrd.

Using the Sample Config File

Please follow the steps below if you’ve already copied the sample configuration files into their appropriate directories.

1. Navigate to your dcrd application folder as described in our Startup Options Intro.
2. Open dcrd.conf in a text editor.
3. Find the following lines:

;rpcuser=
;rpcpass=

Creating a New Config File

Please follow the steps below if you have not copied the sample configuration files into their appropriate directories.

1. Navigate to your dcrd application folder as described above in our Startup Options Intro.
2. Create a new text file.
3. Rename it dcrd.conf.
4. Open dcrd.conf in a text editor.
[Application Options]



dcrwallet.conf¶

The procedure for dcrwallet.conf is very similar to the procedure for dcrd.conf.

Please note that if the values of username= and password= in dcrwallet.conf do not match the values of rpcuser= and rpcpass= in dcrd.conf, you will need to set dcrdusername= and dcrdpassword= in dcrwallet.conf to the rpcuser/rpcpass values found in dcrd.conf (it is easiest to set all of the username/passwords the same).

Using the Sample Config File

Please follow the steps below if you’ve already copied the sample configuration files into their appropriate directories.

1. Navigate to your dcrwallet application folder as described in our Startup Options Intro.
2. Open dcrwallet.conf in a text editor.
3. Find the following lines:

;username=
;password=

Creating a New Config File

Please follow the steps below if you have not copied the sample configuration files into their appropriate directories.

1. Navigate to your dcrwallet application folder as described in our Startup Options Intro.
2. Create a new text file.
3. Rename it dcrwallet.conf.
4. Open dcrwallet.conf in a text editor.
[Application Options]



If you set the optional public password for the wallet (the second password during the wallet creation) you can also add that to dcrwallet.conf:

walletpass=<yourwalletpassword>


You cannot specify your private wallet passphrase in the config files. That must be entered manually with dcrctl.

dcrctl.conf¶

It is again easiest to set the username/passwords the same amongst dcrd.conf, dcrwallet.conf, and dcrctl.conf. If you used different credentials for dcrwallet you will need to specify one here and the other on the command line when issuing commands.

Using the Sample Config File

Please follow the steps below if you’ve already copied the sample configuration files into their appropriate directories.

1. Navigate to your dcrctl application folder as described in our Startup Options Intro.
2. Open dcrctl.conf in a text editor.
3. Find the following lines:

;rpcuser=
;rpcpass=

Creating a New Config File

Please follow the steps below if you have not copied the sample configuration files into their appropriate directories.

1. Navigate to your dcrctl application folder as described in our Startup Options Intro.
2. Create a new text file.
3. Rename it dcrctl.conf.
4. Open dcrctl.conf in a text editor.
[Application Options]

All command line options can be put in the config file. The sample config files in the release package give additional options or you can run one of the programs with the -h flag to show a list and description of all options for the specified application.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.305846631526947, "perplexity": 4252.66995385661}, "config": {"markdown_headings": false, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2018-17/segments/1524125948126.97/warc/CC-MAIN-20180426105552-20180426125552-00358.warc.gz"}