About configuration
Configuration files readed by nocheto are written in the
INI format (described below) and stored in the ~/.nocheto/configs/
directory.
About config files
First time you run nocheto it creates a copy of
the /usr/local/etc/nocheto/nocheto.ini.template
file
into ~/.nocheto/configs/nocheto.ini
. This is the default
configuration file.
This file is readed by all nocheto's executables (nocheto, nochetoclient, nochetopgn etc.).
Some executables can read other configuration file(s).
For example nochetoclient reads also the client.ini file after the nocheto.ini file.
You can also use the --config filename
command line option to read the configuration
from the given config file.
Values readed from the configuration files (re)sets values readed from the files before (i.e. values from nocheto.ini).
Many values which are set in the config file(s) can by changed "on the fly" by nocheto commands. But changes made by commands in nocheto are not permanent (are not stored anywhere aftrer nocheto ends).
Description of INI format
The INI file is an ordinary text file, which has special format. You can edit it by any of your favourite text editor.
The INI file is divided into several sections.
Sections start by its name in [square brackets]. Under the section name you can set values to different properties, each on its own row.
Example
[section_xy]
property = value
# this is a comment
Value can be a "string in quotes" (or without quotes if
there is no white space in it), or number. Boolean values (values which can
be true or false) uses 0
for false/no and 1
for true/yes.
Anything after a #
character till the end of a line is considered
a comment (it is ignored).
See the default configuration.