Skip to content

Instantly share code, notes, and snippets.

@crowjdh
Last active November 22, 2022 08:10
Show Gist options
  • Save crowjdh/ed02c7e8a12712c2bb67092e0ed7809a to your computer and use it in GitHub Desktop.
Save crowjdh/ed02c7e8a12712c2bb67092e0ed7809a to your computer and use it in GitHub Desktop.

Resources

Hardware

  • MBP Retina mid 2012

OS

  • Main: MacOS Catalina
  • Second: Windows 10 Home Edition
  • Third: Kali Linux 2020.4

Install Windows via BootCampAssistant

  • Create bootable usb
  • Download "Bootcamp windows support" file, install the pkg file(select directory to save) & keep 'em in usb
  • Install Windows

Install rEFInd

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.

Install Linux

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

Boot into Live version

  • Reboot with usb(Live version) plugged in, and boot into it.
  • Use GParted to create partition for Linux installation. See here.

Boot into Installer

  • 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

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.

Configuration

Linux

  • Auto login
$ vim /etc/lightdm/lightdm.conf

autologin-user=username
autologin-user-timeout=delay

Windows

  • 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

MacOS

Mounting ESP(EFI System Partition):

sudo mount -t msdos /dev/disk0s1 /Volumes/esp

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment