feat: configure SSH access
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
PermitRootLogin yes
|
||||
PasswordAuthentication no
|
||||
1
board/winf-photobooth/overlay/root/.ssh/authorized_keys
Normal file
1
board/winf-photobooth/overlay/root/.ssh/authorized_keys
Normal file
@@ -0,0 +1 @@
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILd0QCw/4QPUFU9GISk7y/l+qJ6NSuHf5CQANj928idJ mikee@Mikee
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
SLINT_BACKEND=linuxkms RUST_BACKTRACE=full /usr/bin/winf-photobooth-app 2>log
|
||||
20
board/winf-photobooth/post-build.sh
Executable file
20
board/winf-photobooth/post-build.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
# BEGIN: board/pc/post-build.sh
|
||||
set -e
|
||||
|
||||
BOARD_DIR=$(dirname "$0")
|
||||
|
||||
# Detect boot strategy, EFI or BIOS
|
||||
if [ -d "$BINARIES_DIR/efi-part/" ]; then
|
||||
cp -f "$BOARD_DIR/grub-efi.cfg" "$BINARIES_DIR/efi-part/EFI/BOOT/grub.cfg"
|
||||
else
|
||||
cp -f "$BOARD_DIR/grub-bios.cfg" "$TARGET_DIR/boot/grub/grub.cfg"
|
||||
|
||||
# Copy grub 1st stage to binaries, required for genimage
|
||||
cp -f "$TARGET_DIR/lib/grub/i386-pc/boot.img" "$BINARIES_DIR"
|
||||
fi
|
||||
|
||||
# END: board/pc/post-build.sh
|
||||
|
||||
sed -i '1s;^;Include /etc/ssh/sshd_config.d/*.conf\n;' $TARGET_DIR/etc/ssh/sshd_config
|
||||
Reference in New Issue
Block a user