This process does not require an external keyboard, mouse, or removable drives.
Steps are based on the https://wiki.t2linux.org/distributions/debian/installation/ guide and attached screenshots for smooth process.
*** Click on Add Partition ***
*** If separate EFI partition format the partition using FAT system ***
bash
chmod +x ~/Downloads/firmware.sh
~/Downloads/firmware.sh
# Choose option 1 when prompted
>
sudo qemu-system-x86_64 \
-accel hvf \
-m 4G \
-smp 4 \
-boot d \
-drive file=<path-to-Kali-Live-ISO>,media=cdrom \
-drive file=/dev/<disk-name>,if=virtio,format=raw \
-drive file=/usr/local/opt/qemu/share/qemu/edk2-x86_64-code.fd,if=pflash,readonly=on \
-vga std
# Format root
mkfs.ext4 /dev/<disk-name>
# Format swap
mkswap /dev/<disk-name>
*** <disk-name> = vda, vdb or vdc according to their file system ***
lsblk -f
sudo su
mount /dev/<root-partition> /mnt
mount /dev/<efi-partition> /mnt/boot/efi
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
# making BOOT directory at EFI system
mkdir -p /mnt/boot/efi/EFI/BOOT
# check the *.efi files exists should contain boot.efi, grubx64.efi, and mmx64.efi
ls /run/live/medium/EFI/boot
# copying boot files from live system to EFI system
cp -r /run/live/medium/EFI/boot/* /mnt/boot/efi/EFI/BOOT/
# renaming grubx64.efi to bootx64.efi
mv /mnt/boot/efi/EFI/BOOT/grubx64.efi /mnt/boot/efi/EFI/BOOT/bootx64.efi
Continue in the live system
chroot /mnt
vim /etc/hosts
# Add: 127.0.0.1 localhost kali
curl -s --compressed "https://adityagarg8.github.io/t2-ubuntu-repo/KEY.gpg" | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/t2-ubuntu-repo.gpg >/dev/null
curl -s --compressed -o /etc/apt/sources.list.d/t2.list "https://adityagarg8.github.io/t2-ubuntu-repo/t2.list"
apt update
CODENAME=testing
echo "deb [signed-by=/etc/apt/trusted.gpg.d/t2-ubuntu-repo.gpg] https://github.com/AdityaGarg8/t2-ubuntu-repo/releases/download/${CODENAME} ./" | tee -a /etc/apt/sources.list.d/t2.list
apt update
apt install linux-t2 -y
git clone https://github.com/kekrby/t2-better-audio.git /tmp/t2-better-audio
cd /tmp/t2-better-audio
./install.sh
rm -rf /tmp/t2-better-audio
vim /etc/default/grub
# GRUB_CMDLINE_LINUX="quiet splash intel_iommu=on iommu=pt pcie_ports=compat"
diskutil list
# edit fstab in Kali Linux terminal
vim /etc/fstab
# replace the name with nvme0n1pX where X should be replaced by related disk no
vim /etc/initramfs-tools/modules
# Add:
snd
snd_pcm
apple-bce
# save the file
update-initramfs -u
update-grub -o /boot/efi/boot/grub/grub.cfg
shutdown now
sudo bless --folder /Volumes/EFI/EFI/BOOT/ --label "GRUB"
** This has worked for me hope it does for everyone **
chmod +x /boot/efi/firmware.sh
# choose option 1 on prompt and yes to save the files
# connect to the wifi
which modprobe
which rmmod
# as for Kali Linux it should be in /usr/share/sbin/
# create the file suspend-fix-t2.service using vim
vim /etc/systemd/system/suspend-fix-t2.service
Add the following to the file
[Unit]
Description=Disable and Re-Enable Apple BCE Module (and Wi-Fi)
Before=sleep.target
StopWhenUnneeded=yes
[Service]
User=root
Type=oneshot
RemainAfterExit=yes
#ExecStart=/usr/sbin/modprobe -r brcmfmac_wcc
#ExecStart=/usr/sbin/modprobe -r brcmfmac
ExecStart=/usr/sbin/rmmod -f apple-bce
ExecStop=/usr/bin/modprobe apple-bce
#ExecStop=/usr/sbin/modprobe brcmfmac
#ExecStop=/usr/sbin/modprobe brcmfmac_wcc
[Install]
WantedBy=sleep.target
sudo systemctl enable suspend-fix-t2.service
apt update && apt upgrade -y
reboot