-
-
Save yyolk/75ffb04fd1fa64dbeccb6a2e75eb0e2a to your computer and use it in GitHub Desktop.
custom.toml example for Raspberry Pi OS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Raspberry PI OS config - custom.toml | |
# This file is used for the initial setup of the system on the first boot, if | |
# it's s present in the boot partition of the installation. | |
# | |
# This file is loaded by firstboot, parsed by init_config and ends up | |
# as several calls to imager_custom. | |
# The example below has all current fields. | |
# | |
# References: | |
# - https://github.com/RPi-Distro/raspberrypi-sys-mods/blob/master/usr/lib/raspberrypi-sys-mods/firstboot | |
# - https://github.com/RPi-Distro/raspberrypi-sys-mods/blob/master/usr/lib/raspberrypi-sys-mods/init_config | |
# - https://github.com/RPi-Distro/raspberrypi-sys-mods/blob/master/usr/lib/raspberrypi-sys-mods/imager_custom | |
# Required: | |
config_version = 1 | |
[system] | |
hostname = "raspberrypi" | |
[user] | |
# If present, the default "rpi" user gets renamed to this "name" | |
name = "user" | |
# The password can be encrypted or plain. | |
# To encrypt, we can use "openssl passwd -5 <password>" or "openssl passwd -5" then type the password twice | |
password = "$5$S5RBGrNZD8Jx5uuU$tRyNpLlfDr2v1Ccry0bmRDTBW2yw8PJa2NTPAPLucR5" | |
password_encrypted = true | |
[ssh] | |
# ssh_import_id = "gh:user" # import public keys from github | |
enabled = true | |
password_authentication = false | |
# We can also seed the ssh public keys configured for the default user: | |
# authorized_keys = [ "ssh-rsa ... user@host", ... ] | |
[wlan] | |
ssid = "somewifi" | |
password = "$5$S5RBGrNZD8Jx5uuU$tRyNpLlfDr2v1Ccry0bmRDTBW2yw8PJa2NTPAPLucR5" | |
password_encrypted = true | |
hidden = false | |
# The country is written to /etc/default/crda | |
# https://wireless.docs.kernel.org/en/latest/en/developers/regulatory/crda.html | |
country = "US" | |
[locale] | |
keymap = "US" | |
timezone = "America/Chicago" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment