MycroftOS: Multiple fixes and tweaks.

- install locale binary from glibc into target
- allow mycroft to SSH into the box
- add of sudo command / binary
- folder permission issues
This commit is contained in:
Peter Steenbergen 2019-02-06 13:03:03 +01:00
parent 5fbdef2618
commit d6379f9f99
5 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,26 @@
# See package/makedevs/README for details
#
# This device table is used to assign proper ownership and permissions
# on various files. It doesn't create any device file, as it is used
# in both static device configurations (where /dev/ is static) and in
# dynamic configurations (where devtmpfs, mdev or udev are used).
#
# <name> <type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count>
/dev d 755 0 0 - - - - -
/tmp d 1777 0 0 - - - - -
/etc d 755 0 0 - - - - -
/root d 700 0 0 - - - - -
/var d 777 0 0 - - - - -
/var/log d 777 0 0 - - - - -
/var/www d 755 33 33 - - - - -
/opt d 777 0 0 - - - - -
/opt/mycroft d 777 0 0 - - - - -
/opt/mycroft/skills d 777 0 0 - - - - -
/etc/shadow f 600 0 0 - - - - -
/etc/passwd f 644 0 0 - - - - -
/etc/network/if-up.d d 755 0 0 - - - - -
/etc/network/if-pre-up.d d 755 0 0 - - - - -
/etc/network/if-down.d d 755 0 0 - - - - -
/etc/network/if-post-down.d d 755 0 0 - - - - -
# uncomment this to allow starting x as non-root
#/usr/X11R6/bin/Xfbdev f 4755 0 0 - - - - -

View File

@ -12,6 +12,7 @@ BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY=y
BR2_TARGET_GENERIC_HOSTNAME="MycroftOS"
BR2_TARGET_GENERIC_ISSUE="Welcome to MycroftOS"
BR2_INIT_SYSTEMD=y
BR2_ROOTFS_DEVICE_TABLE="../buildroot-external/board/raspberrypi3/device_table.txt"
BR2_TARGET_GENERIC_ROOT_PASSWD="mycroft"
BR2_SYSTEM_BIN_SH_BASH=y
# BR2_TARGET_GENERIC_GETTY is not set
@ -162,6 +163,7 @@ BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y
BR2_PACKAGE_BASH_COMPLETION=y
BR2_PACKAGE_FILE=y
BR2_PACKAGE_SCREEN=y
BR2_PACKAGE_SUDO=y
BR2_PACKAGE_TIME=y
BR2_PACKAGE_WHICH=y
BR2_PACKAGE_HTOP=y

View File

@ -33,6 +33,7 @@ PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
AllowUsers mycroft
#PubkeyAuthentication yes

View File

@ -0,0 +1 @@
mycroft ALL = ALL

View File

@ -0,0 +1,25 @@
From 9f17489757e974bd7781544b719392e22395cd8e Mon Sep 17 00:00:00 2001
From: Peter Steenbergen <info@j1nx.nl>
Date: Wed, 6 Feb 2019 08:40:32 +0100
Subject: [PATCH 1/1] Install glibc locale binary into target
---
package/glibc/glibc.mk | 2 ++
1 file changed, 2 insertions(+)
diff --git a/package/glibc/glibc.mk b/package/glibc/glibc.mk
index 88178d7eb9..5ce1aafb7c 100644
--- a/package/glibc/glibc.mk
+++ b/package/glibc/glibc.mk
@@ -134,6 +134,8 @@ GLIBC_LIBS_LIB += libthread_db.so.*
endif
define GLIBC_INSTALL_TARGET_CMDS
+ $(INSTALL) -m 0755 -D $(@D)/build/locale/locale \
+ $(TARGET_DIR)/usr/bin/locale
for libpattern in $(GLIBC_LIBS_LIB); do \
$(call copy_toolchain_lib_root,$$libpattern) ; \
done
--
2.11.0