Updating install script

This commit is contained in:
2026-03-01 00:09:35 +00:00
parent f30008981b
commit cfc3e10ce0
10 changed files with 229 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
#! /bin/bash
doas tee /etc/udev/rules/90-backlight.rules <<HRD
SUBSYSTEM=="backlight", ACTION=="add" \
RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness", \
RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"
HRD

View File

@@ -0,0 +1,14 @@
#! /bin/bash
sudo pacman --noconfirm --needed -S python-pyqt5 hplip nss-mdns
sudo sed -i 's/hosts: files mymachines myhostname resolve [!UNAVAIL=return] dns/hosts: files mymachines myhostname mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns/' /etc/nsswitch.conf
sudo systemctl enable --now avahi-daemon
hp-setup -i 192.168.2.77
lpoptions -d DeskJet_3700
lpoptions -o PageSize=A4

View File

@@ -0,0 +1,18 @@
#! /bin/bash
doas tee /etc/NetworkManager/conf.d <<HRD
[main]
dhcpd=dhclient
HRD
doas tee /etc/iwd/main.conf <<HRD
[Network]
EnableNetworkConfiguration=True
EnableIPv6=True
HRD
doas systemctl enable --now iwd
doas systemctl enable --now NetworkManager
nmtui