Download, but don't run, the Sierra installer from the Mac App Store. This places the installer at
/Applications/Install\ macOS\ Sierra.app/
.
Now run the following commands to build a suitable VM image from the installer:
git clone https://github.com/jonanh/osx-vm-templates
cd osx-vm-templates/packer
sudo ../prepare_iso/prepare_vdi.sh -D DISABLE_REMOTE_MANAGEMENT -o macOS_10.12.vdi /Applications/Install\ macOS\ Sierra.app/ .
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[wsl2] | |
kernel=C:\\Users\\JAKA\\vmlinux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# myOC.tool | |
# A tool to patch and/or build OpenCore (v0.5.x onwards) | |
# | |
# (c) 2020 Dayo Akanji <dakanji@users.sourcefoge.net> | |
# MIT License | |
# Script Params | |
# LBL_FIX : '0' (Default) or any other value to address drive APFS Label Bug. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get and modify laptop 4k display edid for big sur | |
# Created by xxxzc | |
# Reference: http://bbs.pcbeta.com/forum.php?mod=viewthread&tid=1866466&highlight=edid | |
from subprocess import check_output | |
from base64 import b64encode | |
edid = check_output('ioreg -lw0 | grep -i "IODisplayEDID"', | |
shell=True, encoding='utf-8') | |
edid = edid.split('<')[1].split('>')[0] | |
print('Display EDID:', edid) | |
edid = edid[:108] + 'a6a6' + edid[112:] # set refresh rate to 48Hz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
echo ":D" | |
xcode-select --install | |
clear | |
rm -rf /$HOME/Desktop/OC | |
rm -rf /$HOME/Desktop/OCRelease |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to install Windows 10 to an external drive has be answered may times here at Ask Different. Most notably Is it possible to use Boot Camp with Windows 10 from an external HDD?. Enough subtle changes have been made to macOS and Windows 10, that I felt the answer should be reposted. Here, I try to incorporate the best ideas in all the other answers I have read. This answer does not require a virtual machine, optical (DVD) drive or any flash drives. | |
Note: When this answer was tested on a 2018 Mac mini with the T2 chip, Secure Boot and External Boot was set, as shown below. For instruction on how to configure a Mac with the T2 chip, see the Apple website About Secure Boot. | |
 | |
1 Download the latest Windows 10 ISO file from the Microsoft website Download Windows 10 Disc Image (ISO File). Currently this would be 1909 (September 2019) update. | |
2 Download Window Support Software. Open the Boot Camp Assistant application. From the menu bar, select Action->Download Windows Support Software. By Default, the files sho |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script is designed for use with virtual machines which | |
# need to resize their boot volumes. The script checks the boot | |
# volume using the diskutil info command and detects if the boot | |
# volume is using HFS+ or APFS for the boot volume's filesystem. | |
# | |
# If the boot volume is using HFS+ for its filesystem, the | |
# diskutil resize command is used to assign the boot volume | |
# all available free space. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diskutil eraseVolume format name MountPoint|DiskIdentifier|DeviceNode | |
Erase a single disk partition or whole, laying down a new file system volume | |
that will be empty of files. Format is the specific file system personality | |
name of the new volume, e.g. "Journaled HFS+" or a common alias e.g. "jhfs+". | |
Name is the new volume name (subject to file system naming restrictions) or | |
can be specified as %noformat% to skip initialization (to skip newfs). You | |
cannot erase the boot volume. A pseudo-format of "free" or "Free Space" will | |
remove the partition altogether, leaving a free space gap in the partition map. | |
Ownership of the affected disk is required. | |
Examples: diskutil eraseVolume JHFS+ UntitledHFS /Volumes/SomeDisk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diskutil list | |
/dev/disk0 (internal, physical): | |
#: TYPE NAME SIZE IDENTIFIER | |
0: GUID_partition_scheme *251.0 GB disk0 | |
1: EFI EFI 314.6 MB disk0s1 | |
2: Apple_APFS Container disk2 188.0 GB disk0s2 | |
3: Microsoft Basic Data BOOTCAMP 62.7 GB disk0s3 | |
/dev/disk1 (external, physical): | |
#: TYPE NAME SIZE IDENTIFIER |
OlderNewer