mirror of
https://github.com/brain-hackers/buildbrain
synced 2024-12-22 12:10:12 +09:00
Build & install ly / fix Xorg permission
This commit is contained in:
parent
7b96c4dfb4
commit
2e0d446f9c
@ -57,6 +57,18 @@ DEBIAN_FRONTEND=noninteractive \
|
|||||||
python3 python3-dev python3-setuptools python3-wheel python3-pip python3-smbus \
|
python3 python3-dev python3-setuptools python3-wheel python3-pip python3-smbus \
|
||||||
resolvconf net-tools ssh openssh-client avahi-daemon curl wget git
|
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
|
# Fix Midori launch failure
|
||||||
sudo update-mime-database /usr/share/mime
|
sudo update-mime-database /usr/share/mime
|
||||||
|
|
||||||
@ -68,6 +80,12 @@ echo -e "127.0.1.1\tbrain" >> /etc/hosts
|
|||||||
|
|
||||||
echo root:root | chpasswd
|
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
|
# Allow root login via UART
|
||||||
cat <<EOF >> /etc/securetty
|
cat <<EOF >> /etc/securetty
|
||||||
ttymxc0
|
ttymxc0
|
||||||
|
Loading…
Reference in New Issue
Block a user