Skip to content

Commit 3bdfdfc

Browse files
author
Ritwick DSouza
committed
[raspbian] Update documentations
1 parent 89066bf commit 3bdfdfc

1 file changed

Lines changed: 19 additions & 10 deletions

File tree

docs/source/backends/raspbian.rst

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -387,27 +387,36 @@ You can install it using this command::
387387
modes
388388
* **dnsmasq** - The package converts the Raspberry Pi into a DHCP and DNS server
389389

390+
Since the configuration files are not ready yet, turn the new softwares off as follows::
391+
392+
$ sudo systemctl stop dnsmasq
393+
$ sudo systemctl stop hostapd
394+
390395
Configure your interface
391396
~~~~~~~~~~~~~~~~~~~~~~~~
392397

393398
Let us say that ``wlan0`` is our wireless interface which we will be using.
394-
First we need to setup a static IP for our wireless interface. Edit the
395-
``wlan0`` section in interface configuration file ``/etc/network/interfaces``::
399+
First the standard interface handling for ``wlan0`` needs to be disabled.
400+
Normally the dhcpcd daemon (DHCP client) will search the network for a DHCP server
401+
to assign a IP address to ``wlan0`` This is disabled by editing the configuration
402+
file ``/etc/dhcpcd.conf``.
403+
Add ``denyinterfaces wlan0`` to the end of the line (but above any other added
404+
``interface`` lines) and save the file.
396405

397-
auto wlan0
398-
iface wlan0 inet static
399-
address 172.128.1.1
400-
netmask 255.255.255.0
401-
network 172.128.1.0
402-
broadcast 172.128.1.255
403406

404-
Reload ``wlan0`` interface with ``sudo ifdown wlan0; sudo ifup wlan0``
407+
To configure the static IP address, create a backup of the original
408+
``/etc/network/interfaces``. Then replace the the file with the one generated
409+
by the backend. Now restart the dhcpcd daemon and setup the new ``wlan0`` configuration::
410+
411+
sudo service dhcpcd restart
412+
sudo ifdown wlan0
413+
sudo ifup wlan0
405414

406415
Configure hostapd
407416
~~~~~~~~~~~~~~~~~
408417

409418
Create a new configuration file ``/etc/hostapd/hostapd.conf``. The contents of this
410-
configuration will be generated by the render method using NetJSON DeviceConfiguration.
419+
configuration will be generated by the backend.
411420

412421
You can check if your wireless service is working by running ``/usr/sbin/hostapd /etc/hostapd/hostapd.conf``.
413422
At this point you should be able to see your wireless network. If you try to connect

0 commit comments

Comments
 (0)