From: Mike Brady Date: Sat, 17 Mar 2018 16:23:19 +0000 (+0000) Subject: Update CAR INSTALL.md X-Git-Tag: 3.2RC1~7^2~52^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5af4c524a14d690dd4c2e9892ebd526308dc931e;p=thirdparty%2Fshairport-sync.git Update CAR INSTALL.md --- diff --git a/CAR INSTALL.md b/CAR INSTALL.md index f9227449..cbf2e15d 100644 --- a/CAR INSTALL.md +++ b/CAR INSTALL.md @@ -94,25 +94,6 @@ Disable both of these services from starting at boot time (this is because we wi # systemctl disable hostapd # systemctl disable isc-dhcp-server ``` -#### Configure DHCP server - -First, allow `wlan0` to be configured with a static IP number by removing it from the control of the `dhcpcp` service. Edit `/etc/dhcpcd.conf` and insert the following line at the start: -``` -denyinterfaces wlan0 -``` -Second, replace the contents of `/etc/dhcp/dhcpd.conf` with this: -``` -subnet 10.0.10.0 netmask 255.255.255.0 { - range 10.0.10.5 10.0.10.150; - #option routers ; - #option broadcast-address ; -} -``` -Third, modify the INTERFACESv4 entry at the end of the file `/etc/default/isc-dhcp-server` to look as follows: -``` -INTERFACESv4="wlan0" -INTERFACESv6="" -``` #### Configure HostAPD Configure `hostapd` by creating `/etc/hostapd/hostapd.conf` with the following contents which will set up an open network with the name BMW. You might wish to change the name: ``` @@ -161,6 +142,27 @@ ignore_broadcast_ssid=0 # Use AES, instead of TKIP #rsn_pairwise=CCMP ``` +#### Configure DHCP server + +First, replace the contents of `/etc/dhcp/dhcpd.conf` with this: +``` +subnet 10.0.10.0 netmask 255.255.255.0 { + range 10.0.10.5 10.0.10.150; + #option routers ; + #option broadcast-address ; +} +``` +Second, modify the INTERFACESv4 entry at the end of the file `/etc/default/isc-dhcp-server` to look as follows: +``` +INTERFACESv4="wlan0" +INTERFACESv6="" +``` +Third, allow `wlan0` to be configured with a static IP number by removing it from the control of the `dhcpcp` service. Edit `/etc/dhcpcd.conf` and insert the following line at the start: +``` +denyinterfaces wlan0 +``` +(Note that from this point on, at least on the Raspberry Pi, if you reboot the machine, it will not reconnect to your network.) + ### Set up the Startup Sequence Configure the startup sequence by adding commands to `/etc/rc.local` to start `hostapd` and the `dhcp` server and then to start `shairport-sync` automatically after startup. Its contents should look like this: ```