1. Make sure Armbian has the latest updates:
sudo apt-get update && sudo apt-get -y upgrade
2. Install all of the dependencies to build and run SheepShaver:
sudo apt-get -y install build-essential p7zip-full libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev ninja-build git-email libaio-dev libbluetooth-dev libcapstone-dev libbrlapi-dev libbz2-dev libcap-ng-dev libcurl4-gnutls-dev libgtk-3-dev libibverbs-dev libncurses5-dev libnuma-dev git librbd-dev hfsutils librdmacm-dev libmpfr-dev libsasl2-dev libsdl2-dev libseccomp-dev libsnappy-dev libssh-dev libvde-dev libvdeplug-dev libvte-2.91-dev libxen-dev liblzo2-dev valgrind xfslibs-dev libslirp-dev libgail-common autoconf p7zip-full unzip
3. Install SheepShaver from git
git clone https://github.com/kanjitalk755/macemu.git ~/macemu
4. Change to the SheepShaver directory and compile the source code:
cd ~/macemu/SheepShaver/make linkscd ~/macemu/SheepShaver/src/Unix./autogen.shmake -j 4
5. Create Sheepshaver prefs file:
bash -c 'cat <<EOF > ~/.sheepshaver_prefs
screen dga/960/540
ramsize 134217728
frameskip 0
gfxaccel true
ignoresegv true
ignoreillegal true
hardcursor true
scale_integer true
scale_nearest true
ether slirp
EOF'
6. Download, extract (and rename) the required system ROM file:
wget https://how2pi.com/f/macemu/NEWWORLD.ROM.zipunzip ./NEWWORLD.ROM.zip -d ~/
7. Create a blank virtual disk to install Mac OS on:
dd if=/dev/zero of=~/mac-ss.hd bs=1024k count=1024hformat -l 'Macintosh HD' ~/mac-ss.hd
8. Download and extract the Mac OS 9.0.4 installation CD then make it read only:
wget https://how2pi.com/f/macemu/Mac_OS_9.0.4.iso.7z7za e ./Mac_OS_9.0.4.iso.7zmv ./Mac_OS_9.0.4.iso ~/chmod 0444 ~/Mac_OS_9.0.4.iso
9. Create shell scripts and make them executable:
bash -c 'cat <<EOF > ~/installmac-ss.sh
~/macemu/SheepShaver/src/Unix/SheepShaver --rom ~/NEWWORLD.ROM --disk ~/mac-ss.hd --cdrom ~/Mac_OS_9.0.4.iso
EOF'bash -c 'cat <<EOF > ~/runmac-ss.sh
~/macemu/SheepShaver/src/Unix/SheepShaver --rom ~/NEWWORLD.ROM --disk ~/mac-ss.hd
EOF'chmod +x ~/installmac-ss.sh ~/runmac-ss.sh
10. Start Sheepshaver with the Mac OS installation cd:
IMPORTANT: The following commands must be run on your Pi device (locally) and wont work via SSH.
~/installmac-ss.sh
11. Run the Mac OS Installer program (Defaults are fine):
12. Once the installer is completed, shutdown the system:
Special → Shutdown.
13. Now you can run Sheepshaver with the shell script:
~/runmac-ss.sh
Note: After you boot into your mac installation for the first time the Mac OS Setup Assistant will run. Using this tool will crash the system every time. Just close out of it.Shortcut: You can download a preinstalled HD image by running the following commands:
wget https://how2pi.com/f/macemu/Mac_OS_9.0.4.hd.7z7za e ./Mac_OS_9.0.4.hd.7zmv ./Mac_OS_9.0.4.hd ~/mac-ss.hd