doc: add a guide on getting started using configuration files#207
doc: add a guide on getting started using configuration files#207johanehnberg wants to merge 8 commits intoraspberrypi:masterfrom
Conversation
|
Hi @johanehnberg Let's just keep it all in one 'getting started' doc. Myself and others plus external / community will review it when it has content. |
|
@learmj OK. If the general structure of the document sits well with the project, all I need is a good, common case to use in the example. Preferably something that helps people install their own app/assets/file and run a command, but the working example only needing one such line each. |
Sounds good. If you're basing it on your own use / experience, that would serve others well. |
|
I added wifi station config as the simplest use case that we also have. It seems to have been requested so this may work as a stop-gap solution at least until a layer may be created. Considering the simplicity, I created #208 to allow streamlining much of this. |
|
Ready for review. The guide is a bit longer than what I aimed for, but as the tool matures and built-in layers get added, it can be shortened. The contents are now such that would have saved me a lot of hours when I started. |
jaysephjw
left a comment
There was a problem hiding this comment.
Stumbled across this as I was looking at the project for the first time - and found it quite helpful!
Just a couple comments as I tried it.
getting_started.adoc
Outdated
| ---- | ||
| mkdir -p myproject/bdebstrap | ||
| echo -e 'ClientAliveInterval 60' > myproject/sshdkeepalive.conf | ||
| echo -e '#!/bin/bash\n\nset -eu\n\nchroot $1 sh -c "apt-get -y install network-manager"\nchroot $1 sh -c "nmcli --offline connection add type wifi ssid $SSID wifi-sec.psk $PSK wifi-sec.key-mgmt wpa-psk > /etc/NetworkManager/system-connections/$SSID.nmconnection"\nchroot $1 sh -c "chmod 600 /etc/NetworkManager/system-connections/$SSID.nmconnection"' > myproject/bdebstrap/customize90-myscript |
There was a problem hiding this comment.
The second echo should do that as it is, but let me know if something else related was needed?
|
Hi @stu-spp @martinn-ronin Hi @johanehnberg I'd prefer to wait on getting some user / community feedback before merging. Thanks again for your efforts. |
|
Thanks @jaysephjw for the feedback! All fixed. |
|
This looks great! ❤️ |
…art_size incoherence
WIP tasks
Ideas for minimizing caveats and guide length outside the scope of this PR:
raspberrypi.gpg.keyto keydir insteadCloses: #206