68 lines
1.5 KiB
Plaintext
68 lines
1.5 KiB
Plaintext
# ==============================
|
|
# Radxa First Boot Configuration
|
|
# ==============================
|
|
|
|
# Allow config to continue even when some commands fail
|
|
no_fail
|
|
log "Running before.txt as first boot configuration"
|
|
|
|
# Update generic hostname
|
|
# Command:
|
|
# update_generic_hostname <generic hostname>
|
|
update_generic_hostname rocky
|
|
|
|
# Create default accounts
|
|
# Commands:
|
|
# add_user <user name> <password>
|
|
# user_append_group <user name> <group>
|
|
#
|
|
add_user ralsina ralsina
|
|
user_append_group ralsina sudo
|
|
user_append_group ralsina audio
|
|
user_append_group ralsina video
|
|
user_append_group ralsina plugdev
|
|
user_append_group ralsina render
|
|
user_append_group ralsina gpio
|
|
user_append_group ralsina i2c
|
|
user_append_group ralsina spidev
|
|
user_append_group ralsina pwm
|
|
|
|
|
|
# Resize root partition at the filesystem level
|
|
#
|
|
resize_root
|
|
|
|
# Disable services
|
|
# Command:
|
|
# disable_service <systemd unit name>
|
|
#
|
|
disable_service smbd
|
|
disable_service nmbd
|
|
# Disable systemd-networkd due to systemd-networkd-wait-online blocking network.target
|
|
# We use NetworkManger, so systemd-networkd can be safely disabled
|
|
disable_service systemd-networkd
|
|
|
|
# Generate unique hardware fingerprint
|
|
#
|
|
regenerate_ssh_hostkey
|
|
|
|
# Configure locale
|
|
# Command:
|
|
# update_locale <locale>
|
|
#
|
|
update_locale en_US.UTF-8
|
|
|
|
# Connect to Wi-Fi
|
|
# Command:
|
|
# connect_wi-fi <network name> [password]
|
|
#
|
|
connect_wi-fi Telecentro-4ad3 QMZHHDN2MZYV
|
|
|
|
enable_service ssh
|
|
enable_service ssh.socket
|
|
|
|
# Remove first-boot package
|
|
# Command:
|
|
# remove_packages <package names>
|
|
#
|
|
remove_packages rsetup-config-first-boot |