From 2e0d446f9c602fb62c2a5ba13e243d43061a9d7f Mon Sep 17 00:00:00 2001 From: Takumi Sueda Date: Mon, 22 Mar 2021 20:13:07 +0900 Subject: [PATCH] Build & install ly / fix Xorg permission --- os-brainux/setup_brainux.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/os-brainux/setup_brainux.sh b/os-brainux/setup_brainux.sh index 71aafcc..40ddad2 100755 --- a/os-brainux/setup_brainux.sh +++ b/os-brainux/setup_brainux.sh @@ -57,6 +57,18 @@ DEBIAN_FRONTEND=noninteractive \ python3 python3-dev python3-setuptools python3-wheel python3-pip python3-smbus \ resolvconf net-tools ssh openssh-client avahi-daemon curl wget git +# Ly +apt install -y libpam0g-dev libxcb-xkb-dev +cd / +git clone https://github.com/nullgemm/ly.git +cd ly +make github +make +make install +cd / +rm -r ly +systemctl enable ly + # Fix Midori launch failure sudo update-mime-database /usr/share/mime @@ -68,6 +80,12 @@ echo -e "127.0.1.1\tbrain" >> /etc/hosts echo root:root | chpasswd +# Fix Xorg permission for non-root users +# https://unix.stackexchange.com/questions/315169/how-can-i-run-usr-bin-xorg-without-sudo +chown root:input /usr/lib/xorg/Xorg +chmod g+s /usr/lib/xorg/Xorg +usermod -a -G video user + # Allow root login via UART cat <> /etc/securetty ttymxc0