serialpi/dch-firstboot.sh

16 lines
313 B
Bash
Executable File

#!/bin/sh
dnf install -y \
picocom \
sshca-cli-systemd \
tmux \
&& :
systemctl enable --now ssh-host-certs-renew.timer
systemctl start ssh-host-certs.target
useradd -G dialout,wheel dustin
install -o dustin -g dustin -m u=rwx,go= -d ~dustin/.ssh
cp ~root/.ssh/authorized_keys ~dustin/.ssh/authorized_keys