Creating A .Conf File

Revision History  |  Suggest Update

Sometimes you may need to use a configuration file to change the behavior of the nu client. Learn how to locate your data directory, and create a conf file.

1. Find the Nu data directory

First you’ll need to find the Nu data directory. This directory location will be different depending on the operating system you’re using. The table below can assist you in finding it.

Data directories are hidden by default

Data directories are usually marked as hidden folders by default, meaning you will have to change some settings in order to see them. Please review the links below for your platform on how to enable viewing hidden folders.

Operating System Default Data Directory Path
Windows 8/7/2K8/Vista C:\Users\%USERNAME%\AppData\Roaming\nu
Windows XP/2K3/2K C:\Documents and Settings\%USERNAME%\Application Data\nu
Linux ~/.nu
OS X ~/Library/Application\ Support/Nu

2. Create a nu.conf file

After locating the nu folder in your data directory create a new file called nu.conf. Make sure to keep it all lowercase.

3. Edit the nu.conf file

Now you can add commands to your conf file that will change the behavior of the wallet client and daemon when they are started. The sample file below shows you some common commands. For a list of other commands you can enter into the conf file visit the Client Commands page.

Make sure the file is being saved in plain text. If you accidentally saved the file in a format such as .doc or .rtf Nu will not be able to use it.

A sample nu.conf file:

#Set a unique RPC username and password after the equal sign.
rpcusername=NuBitsUser
rpcpassword=NuBitsPassword

#Starts the RPC server so your client can accept RPC commands
server=1

Adding comments to the conf file

Lines that start with # are comments, and are ignored