armbian / documentation

Armbian Linux Documentation
https://docs.armbian.com
GNU General Public License v3.0
182 stars 172 forks source link

Document how to use armbian_first_run.txt #116

Open lanefu opened 3 years ago

lanefu commented 3 years ago

Great for reconfiguring wifi, static network etc. nothing in docs

EvilOlaf commented 3 years ago

Isn't there an example file somewhere anyways?

igorpecovnik commented 3 years ago

No idea - i never used this. Its a community addition.

lanefu commented 3 years ago

here's how I do it from customize_image.sh

but user could mount image and do the same

cat > /boot/armbian_first_run.txt << EOL
FR_net_change_defaults=1

# Enable WiFi or Ethernet.
#       NB: If both are enabled, WiFi will take priority and Ethernet will be disabled.

FR_net_ethernet_enabled=1
FR_net_wifi_enabled=1

#Enter your WiFi creds
#       SECURITY WARN: Your wifi keys will be stored in plaintext, no encryption.

FR_net_wifi_ssid='MY_NETWORK'
FR_net_wifi_key='MY_NETWWORK_PASSWORD'

#       Country code to enable power ratings and channels for your country. eg: GB US DE | https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2

FR_net_wifi_countrycode='US'

EOL

}
EvilOlaf commented 2 months ago

Is this still up to date? There is customization to configure this and .not_logged_in_yet also can be fed with this stuff.

igorpecovnik commented 2 months ago

There is customization to configure this and .not_logged_in_yet also can be fed with this stuff.

Is this still up to date?

I think mainly yes. I was testing this when changing networking, but we would need to have some bits in docu.

https://github.com/armbian/build/pull/6194