2023-06-30 13:58:30 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
apt update
|
2023-07-07 14:40:15 +02:00
|
|
|
# make sure we have all updates installed (from the -updates and -security repos)
|
2023-07-07 13:45:09 +02:00
|
|
|
APT_LISTCHANGES_FRONTEND=none DEBIAN_FRONTEND=noninteractive apt -o Dpkg::Options::="--force-confold" -f -y dist-upgrade
|
2023-07-07 14:40:15 +02:00
|
|
|
# to remove old kernel versions
|
|
|
|
apt --purge autoremove
|
2023-06-30 23:52:37 +02:00
|
|
|
apt install -y polkitd locales zstd dhcpcd wpasupplicant
|
2023-06-30 13:58:30 +02:00
|
|
|
locale-gen en_US.UTF-8
|
|
|
|
|
2023-07-01 00:54:24 +02:00
|
|
|
apt install -y firmware-amd-graphics firmware-iwlwifi firmware-brcm80211 firmware-atheros firmware-misc-nonfree firmware-realtek firmware-ath9k-htc
|
2023-06-30 13:58:30 +02:00
|
|
|
|
|
|
|
echo "grub-efi-amd64 grub2/force_efi_extra_removable boolean true" | debconf-set-selections
|
|
|
|
update-grub
|
|
|
|
grub-install --target=x86_64-efi --efi-directory=/boot --removable --bootloader-id=AnotterKiosk
|
|
|
|
|
|
|
|
useradd -U -m -s /bin/bash -u 1000 -G audio,video,users,input,adm,dialout,plugdev,render pi
|
|
|
|
|
|
|
|
systemctl enable dhcpcd
|
|
|
|
|
|
|
|
rm /etc/resolv.conf
|
|
|
|
echo "nameserver 8.8.8.8" > /etc/resolv.conf
|
|
|
|
echo "nameserver 2001:4860:4860::8888" >> /etc/resolv.conf
|
|
|
|
echo "nameserver 8.8.4.4" >> /etc/resolv.conf
|
|
|
|
echo "nameserver 2001:4860:4860::8844" >> /etc/resolv.conf
|