|
200 | 200 | exit 0 # normal exit here
|
201 | 201 | ```
|
202 | 202 |
|
203 |
| -#### Disable Unused Services |
| 203 | +#### Disable Unused Services (Optional) |
204 | 204 | These optional steps have been tested on a Raspberry Pi only -- they have not been tested on other systems.
|
205 | 205 | Some services are not necessary for this setup and can be disabled as follows:
|
206 | 206 | ```
|
207 | 207 | # systemctl disable keyboard-setup
|
208 | 208 | # systemctl disable triggerhappy
|
209 | 209 | # systemctl disable dphys-swapfile
|
210 | 210 | ```
|
211 |
| -#### Optional: Read-only mode – Raspberry Pi Specific |
212 |
| -This optional step is applicable to a Raspberry Pi only. Run `sudo raspi-config` and then choose `Performance Options` > `Overlay Filesystem` and choose to enable the overlay filesystem, and to set the boot partition to be write-protected. (The idea here is that this offers more protection against files being corrupted by the sudden removal of power.) |
213 | 211 |
|
214 |
| -### Final Steps |
215 | 212 |
|
| 213 | +#### Disable Unused Services (Mandatory) |
216 | 214 | You now need to disable some services; that is, you need to stop them starting automatically on power-up. This is because they either interfere with the system's operation in WiFi Access Point mode, or because they won't work when the system isn't connected to the Internet. Only one of the `NetworkManager` and the `dhcpcd` service will be present in your system, but it's no harm to try to disable both.
|
217 | 215 | ```
|
218 | 216 | # systemctl disable dhcpcd
|
219 | 217 | # systemctl disable NetworkManager
|
220 | 218 | # systemctl disable wpa_supplicant
|
221 | 219 | # systemctl disable systemd-timesyncd
|
222 | 220 | ```
|
223 |
| -Lastly, note that the WiFi credentials you used initially to connect to your network (e.g. your home network) will have been stored in the system in plain text. This is convenient for when you want to reconnect to update (see later), but if you prefer to delete them, they will be in `/etc/wpa_supplicant/wpa_supplicant.conf` |
| 221 | +Lastly, note that the WiFi credentials you used initially to connect to your network (e.g. your home network) will have been stored in the system in plain text. This is convenient for when you want to reconnect to update (see later), but if you prefer to delete them, they will be in `/etc/wpa_supplicant/wpa_supplicant.conf`. |
| 222 | +
|
| 223 | +#### Optional: Read-only mode – Raspberry Pi Specific |
| 224 | +This optional step is applicable to a Raspberry Pi only. Run `sudo raspi-config` and then choose `Performance Options` > `Overlay Filesystem` and choose to enable the overlay filesystem, and to set the boot partition to be write-protected. (The idea here is that this offers more protection against files being corrupted by the sudden removal of power.) |
224 | 225 |
|
| 226 | +### Final Step |
225 | 227 | When you are finished, carefully power down the machine before unplugging it from power:
|
226 | 228 | ```
|
227 | 229 | # poweroff
|
|
0 commit comments