Hardware
- MBP Retina mid 2012
OS
- Main: MacOS Catalina
- Second: Windows 10 Home Edition
- Third: Kali Linux 2020.4
- Create bootable usb
- Download "Bootcamp windows support" file, install the pkg file(select directory to save) & keep 'em in usb
- Try downloading it via BootCampAssisant, but you can use brigadier if the download is too slow.
- Comprehensive list: https://gist.github.com/nuomi1/16133b89c2b38b7eb197
- Install Windows
I think this step can be done after installing Linux, but this article suggests to install beforehand. You have to do this step after installing Linux since GRUB will take over.
- Get rEFInd from here
- Unzip and put 'em into USB
- Boot into recovery mode by pressing Cmd+r after boot chime
- Stick USB in and run
./refind-install
. See here for detailed instruction.
You have to resize Windows partition to make space for Linux. You might be able to shrink&format partition while installing, but it seems quite daunting, so I prepared a live version of Kali.
- Download "Installer" and "Live" version Kali. Use torrent version since it goes above 20MB/s.
- Make bootable usb for both "Installer" and "Live". See here.
$ sudo dd if=kali-linux-2020.4-installer-amd64.iso of=/dev/rdisk2 bs=4m
$ sudo dd if=kali-linux-2020.4-live-amd64.iso of=/dev/rdisk2 bs=4m
- Reboot with usb(Live version) plugged in, and boot into it.
- Use GParted to create partition for Linux installation. See here.
- You'll have issue on detecting WiFi module. Just ignore and proceed
- Once the installation is done, hook up ethernet cable to fix WiFi issue
$ apt update
$ apt install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,')
$ apt install broadcom-sta-dkms
$ modprobe -r b44 b43 b43legacy ssb brcmsmac bcma
$ modprobe -r wl && modprobe wl
- Last line may spit out error. If so, reboot and try again.
- Auto login
$ vim /etc/lightdm/lightdm.conf
autologin-user=username
autologin-user-timeout=delay
- Install support software
- Config Chrome Remote Desktop
- Run regedit and edit values FlipFlopWheel, FlipFlopHScroll at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\HID\VID_???\VID_???\Device Parameters
- Check Control Panel - Mouse - Hardware - Properties to figure out ??? part
Mounting ESP(EFI System Partition):
sudo mount -t msdos /dev/disk0s1 /Volumes/esp
-
Fix WiFi issue:
-
Auto login: https://forums.kali.org/showthread.php?30021-Kali-2016-1-quot-light-quot-root-autologin
-
rEFInd configuration: https://www.rodsbooks.com/refind/configfile.html#adjusting
-
Change scroll direction for Windows: https://discussions.apple.com/thread/7199084
-
Mounting ESP: https://askubuntu.com/a/691313