mirror of
				https://github.com/brain-hackers/buildbrain
				synced 2025-11-04 14:28:34 +09:00 
			
		
		
		
	Build & install ly / fix Xorg permission
This commit is contained in:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user