feat: configure SSH access
This commit is contained in:
4
README
4
README
@@ -3,8 +3,8 @@ Photobooth OS
|
|||||||
- select defconfig
|
- select defconfig
|
||||||
make winf_photobooth_defconfig
|
make winf_photobooth_defconfig
|
||||||
|
|
||||||
- launch emulator
|
- launch vm
|
||||||
qemu-system-x86_64 -m 1024 -bios /usr/share/ovmf/OVMF.fd -drive file=output/images/disk.img,format=raw -vga virtio -nic user
|
qemu-system-x86_64 -m 1024 -bios /usr/share/ovmf/OVMF.fd -drive file=output/images/disk.img,format=raw -vga virtio -nic user,hostfwd=tcp:127.0.0.1:2222-:22
|
||||||
|
|
||||||
- pure linux path
|
- pure linux path
|
||||||
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -4,10 +4,11 @@ BR2_TOOLCHAIN_BUILDROOT_CXX=y
|
|||||||
BR2_GLOBAL_PATCH_DIR="board/pc/patches"
|
BR2_GLOBAL_PATCH_DIR="board/pc/patches"
|
||||||
BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
|
BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
|
||||||
BR2_TARGET_GENERIC_HOSTNAME="winf-photobooth"
|
BR2_TARGET_GENERIC_HOSTNAME="winf-photobooth"
|
||||||
|
BR2_TARGET_GENERIC_ISSUE="Welcome to WINF-Photobooth"
|
||||||
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
|
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
|
||||||
BR2_TARGET_GENERIC_ROOT_PASSWD="winf"
|
BR2_TARGET_GENERIC_ROOT_PASSWD="winf"
|
||||||
BR2_ROOTFS_OVERLAY="board/winf-photobooth/overlay"
|
BR2_ROOTFS_OVERLAY="board/winf-photobooth/overlay"
|
||||||
BR2_ROOTFS_POST_BUILD_SCRIPT="board/pc/post-build.sh"
|
BR2_ROOTFS_POST_BUILD_SCRIPT="board/winf-photobooth/post-build.sh"
|
||||||
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/pc/post-image-efi.sh"
|
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/pc/post-image-efi.sh"
|
||||||
BR2_LINUX_KERNEL=y
|
BR2_LINUX_KERNEL=y
|
||||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||||
|
|||||||
Reference in New Issue
Block a user