main.sh
· 689 B · Bash
Brut
#! /usr/bin/env bash
# If the Pop! installer won't boot due to dGPU failure, remove the SATA SSD/HDD from the MacBook and install Pop! to it using a computer that will boot the installer
sudo su
# With Pop! installed and running as root
# disable AMD gpu drivers
cat << EOF > /etc/modprobe.d/blacklist-amd-dgpu.conf
blacklist radeon
blacklist amdgpu
EOF
# install package updates
apt update
apt upgrade
# install Wi-Fi drivers
apt install firmware-b43-installer
# install fan controls to keep them from running max speed
apt install mbpfan
# if kernel ramdisk wasn't updated, update that now
update-initramfs -c -k all
# if you need to reinstall the SATA disk, do that and boot up.
| 1 | #! /usr/bin/env bash |
| 2 | |
| 3 | # If the Pop! installer won't boot due to dGPU failure, remove the SATA SSD/HDD from the MacBook and install Pop! to it using a computer that will boot the installer |
| 4 | |
| 5 | sudo su |
| 6 | |
| 7 | # With Pop! installed and running as root |
| 8 | # disable AMD gpu drivers |
| 9 | cat << EOF > /etc/modprobe.d/blacklist-amd-dgpu.conf |
| 10 | blacklist radeon |
| 11 | blacklist amdgpu |
| 12 | EOF |
| 13 | |
| 14 | # install package updates |
| 15 | apt update |
| 16 | apt upgrade |
| 17 | |
| 18 | # install Wi-Fi drivers |
| 19 | apt install firmware-b43-installer |
| 20 | |
| 21 | # install fan controls to keep them from running max speed |
| 22 | apt install mbpfan |
| 23 | |
| 24 | # if kernel ramdisk wasn't updated, update that now |
| 25 | update-initramfs -c -k all |
| 26 | |
| 27 | # if you need to reinstall the SATA disk, do that and boot up. |