Skip to content

Commit 39802d9

Browse files
author
Ritwick DSouza
committed
[raspbian] Added documentation for general settings
1 parent 699e36f commit 39802d9

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

docs/source/backends/raspbian.rst

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,42 @@ Will return the following output::
6767
address fd87::1
6868
netmask 128
6969

70+
General settings
71+
----------------
72+
73+
The general settings reside in the ``general`` key of the
74+
*configuration dictionary*, which follows the
75+
`NetJSON General object <http://netjson.org/rfc.html#general1>`_ definition
76+
(see the link for the detailed specification).
77+
78+
General settings example
79+
~~~~~~~~~~~~~~~~~~~~~~~~
80+
81+
The following *configuration dictionary*:
82+
83+
.. code-block:: python
84+
85+
{
86+
"general": {
87+
"hostname": "routerA",
88+
"timezone": "UTC",
89+
"ula_prefix": "fd8e:f40a:6701::/48"
90+
}
91+
}
92+
93+
Will be rendered as follows::
94+
95+
config: /etc/hostname
96+
routerA
97+
98+
run commands:
99+
$ timedatectl set-timezone UTC
100+
101+
After modifying the config files run the following command to change the
102+
hostname::
103+
104+
$ /etc/init.d/hostname.sh start
105+
70106
Network interfaces
71107
------------------
72108

0 commit comments

Comments
 (0)