Skip to content

Latest commit

 

History

History
258 lines (160 loc) · 13.5 KB

MacOS921_ConfigurationGuide.md

File metadata and controls

258 lines (160 loc) · 13.5 KB

Mac OS 9.2.1 Configuration Guide to use qemu-ppc-screamer fork and USB-tablet driver for Mouse integration

Mac OS 9.2.1 Configuration Guide was written by Samie Konet during her practicum with the Rhizome Digital Preservation department in Spring 2023.

Qemu, the open-source emulator used in this guide, follows a varied installation process between mac OS and Windows hosting systems. This guide is written following instructions for compiling a Mac OS 9.2.1 emulator using Ubuntu 22.04 (a Linux distribution installed on a Windows Subsystem), after completing the intiating the qemu-screamer fork to enable audio and networking capabilities in the Mac OS 9.2.1 software environment. Once the emulation environment is installed, there are additional instructions at the end of the guide to incorporate an USB tablet-driver for Mac OS 9. This section of the guide quickly details and streamlines the process first shared by kanjitalk755

Note: If you are a Windows user, before you attempt the Mac OS 9.2.1 Configuration Guide, you will need to install WSL, the Windows Subsytem for Linux, to run Ubuntu. This can be accomplished by opening Windows Powershell and first running an installation command:

wsl --install

Ubuntu is default Linux distribution installed with this command. For further information, please refer to Microsoft's WSL Installation Guide

The Mac OS 9.2.1 Configuration Guide is written under the assumption that the reader is somewhat familiar and comfortable with a command terminal and compiling software from a source, or is excited to learn through following the guided process below.

If you do not have Qemu installed on your machine, please review the Qemu website for installation instructions, which varies between macOS and Windows hosting systems.

The Mac OS 9.2.1 Configuration Guide includes an outlined Build, Installation, and Orchestration process:

Build Instructions:

Step 1: Locating folder for build

Prepare for Qemu-system-ppc installation by locating the build folder which is housed within qemu/qemu-screamer/ folder inside of your Local Disk (C:).

Step 2: Download and unpack 1 CD image (iso) for Apple Mac OS 9.2.1

For this installation we will download a copy of Apple Mac OS 9.2.1 sourced from the “Mac OS 9” Library hosted on WinWorld.

Extract “macos921_ppc.iso” (iso Archive) from downloaded .zip folder and place in qemu/qemu-screamer/build folder.

Installation Instructions:

Step 1: Create a hard disk image with qemu-ing to hold the installation:

If you are interested in creating your own hard disk image, please execute the command below. Otherwise, please download the provided empty hard disk image named "Mac_OS9.qcow2" which has been supplied to you in the repository. The below command prompts includes details regarding the role of each component in the prompt.

qemu-img create -f qcow2 -o Mac_OS9.qcow2 size=10G
|        |      |   |     | |              |
|        |      |   |     | |              (defines size of the disk image as 10 gigabytes)
|        |      |   |     | (defines path and file name to store the disk image)
|        |      |   |     (specifies the base,name and extension for QCOW2 image)
|        |      (specifies the output disk image format)
|        (instructs QEMU program to produce new image)
(QEMU disk image utility)

Step 2: Creating the batch file

Open up your favorite text editor and paste the following code below:

#!bin/bash
#cd qemu/qemu-screamer/build

./qemu-system-ppc \
-accel tcg,tb-size=2048 \
-machine mac99,via=pmu \
-prom-env "boot-args=-v" \
-prom-env "vga-ndrv?=true" \
-cpu g4 \
-m 896 \
-g 800x600x32 -device VGA,edid=on,vgamem_mb=64,xres=800,yres=600 \
-monitor stdio \
-cdrom Name-of-cdrom-file.iso \
-hda Name-of-hard-disk-image.qcow2 \
-boot d \

Save file as a shell script (.sh) into your build folder.

Return to Ubuntu/Linux terminal and run the command to launch the Mac OS 9.2.1 installation:

./Name-of-shell-script.sh

You will be welcomed with the Mac OS 9.2 Installation Start-Up screen.

Alt text: Screenshot of Mac OS 9.2.1 installation start-up window.

Step 3: Disk Utility process

Qemu will open a new window to display the Mac OS 9 start-up screen.

Alt text: Screenshot of Mac OS 9.2.1 installation desktop with cursor hovering over Utilities folder.

Select Utilities folder in Mac OS 9.2.1 desktop window.

Select Drive Set-up.

Alt text: Screenshot of Mac OS 9.2.1 Drive Set-Up window.

In the List of Drives, select the Volume titled <not initialized>. Select Initialize button in the lower right corner of the window to run the disk utility process.

A “Initialization was successful” message will appear when the process is complete.

Alt text: Screenshot of Mac OS 9.2.1 Drive Setup window after Initialization process is complete.

Close out of Drive Setup after Initialization is complete and return to the Mac OS 9.2.1 installation window.

Step 4: Install Mac OS 9.2.1

Select Mac OS Install application located in the center of the installation window. A Welcome screen will appear to prompt you through the installation process.

Screenshot of “Welcome” screen to begin Mac OS 9.2.1 software installation process.

You will be prompted to select a installation destination. The Destination Disk should be set to our “untitled” disk we created in the previous Disk Utility Process following Step 3.

Screenshot of “Select Destination” window which appears as the second prompt during the software installation process.

When you have completed the installation prompts, click Start to run the installation.

Screenshot of cursor hovering over “Start” button to begin software installation process.

The installation process will take approximately 10 minutes depending on the selection of components initiated with the installation. (Installation may take more or less time depending on the build of the hosting PC.)

Screenshot of selecting “Start” software installation process.

Screenshot of cursor hovering over "quit" button to close installation window after it is finished.

When the installation reaches the restarting phase, you may select Quit. You may now close the qemu window completely and continue to the next step by returning to our shell script from Step 2.

Step 5: Booting from Mac OS 9.2.1 CD1 (continued)

Return to shell script file which you previously used to install Mac OS 9.2.1 CD.

Adjust the command in this file to read as the following:

#!bin/bash
#cd qemu/qemu-screamer/build

./qemu-system-ppc \
-accel tcg,tb-size=2048 \
-machine mac99,via=pmu \
-prom-env "boot-args=-v" \
-prom-env "vga-ndrv?=true" \
-cpu g4 \
-m 896 \
-g 800x600x32 -device VGA,edid=on,vgamem_mb=64,xres=800,yres=600 \
-monitor stdio \
-cdrom Name-of-cdrom-file.iso \
-hda Name-of-hard-disk-image.qcow2 \
-boot c \

It is important to change the argument from -boot d to -boot c, and to reverse the order of the hard disk and CD-ROM entry. By reversing the order of the installation, it allows the system to boot from the hard disk in order to continue the installation from CD 1.

After adjusting the command, you will save the shell script file with these new edits to update the command.

Run command in Ubuntu/Linux terminal:

./Name-of-shell-script.sh

Screenshot of Mac OS 9.2 start-up screen!

If the installation was completed without error, qemu will launch the Mac OS 9.2 Desktop.

Orchestration Instructions:

Step 1: Mac OS 9.2.1 set-up process

Once the boot-up window closes, you will be greeted by the Mac OS Setup Assistant landing window to complete the installation process.

Screenshot of “Mac OS Setup Assistant” window that prompts users through setting up a custom user profile.

You will next be prompted through the installation set-up which will ask for the user to designate a User ID, a time-zone and will end with a prompt to add access to the network.

Screenshot of “Mac OS Setup Assistant” window that prompts users to select Time Zone.

Screenshot of “Mac OS Setup Assistant” window that prompts users through setting up a custom user ID.

Once the registration process is complete, you will have access to the desktop and its featured applications.

Screenshot of Mac OS 9.2.1 desktop.

To exit the emulator, it is crucial that you perform a proper Shut Down, which is located under the Special tab in the menu bar. Qemu will take a moment to perform the shut down process. You can then close the Qemu window.

Screenshot displaying the “Special” tab in menu bar to locate the “Shut Down” button.

To open the emulator, you can easily start up the OS by running the shell script in your terminal. Qemu will start up and you will be returned to the desktop as referenced above.

Installing the USB-tablet driver for Mouse integration in Mac OS 9.2.1 emulator

Build Instructions

Step 1: Download tablet-driver.iso from repository

Download "tablet-driver.iso" from GitHub repository and place the file into the build folder. The build folder is where we saved the intial shell script from Step 2 of the Installation Instructions from the configuration guide.

Step 2: Adding tablet-driver.iso and USB-tablet integration to bash command

Open the shell script that was created during the Installation Instructions. Adjust your code to read as follows:

#!/bin/bash

#cd qemu/qemu-screamer/build
./qemu-system-ppc \
-accel tcg,tb-size=2048 \
-machine mac99 \
-prom-env "boot-args=-v" \
-prom-env "vga-ndrv?=true" \
-cpu g4 \
-m 896 \
-g 800x600x32 -device VGA,edid=on,vgamem_mb=64,xres=800,yres=600 \
-monitor stdio \
-cdrom tablet-driver.iso \
-hda Name-of-hard-disk-image.qcow2 \
-boot c \
-device usb-tablet

In this step, we are replacing the pathway for the -cdrom argument with the "tablet-driver.iso" file, including a command prompt to designate a parameter for mouse integration by defining the device, and are removing the "via=pmu" prompt which was originally included in the -machine argument.

Save the edits to the shell script. Return to Ubuntu/Linux terminal and run the command to launch the Mac OS 9.2.1 installation with newly added USB-tablet driver:

./Name-of-shell-script.sh

Installation Instructions

Step 1: Open Systems Folder

Double-click to open the untitled drive in the upper right hand corner of the Desktop. Double-click to open the Systems Folder.

Screenshot displaying "Systems Folder" located in "untitled" drive on Desktop.

Step 2: Open tablet driver

Double-click to open tablet driver disk located on Desktop. Drag the "USBTabletINIT.sit" file onto the Desktop. Close the tablet driver window.

Screenshot showing the USB Tablet file being dragged out of the Tablet Driver disk folder and onto the Desktop.

Step 3: Unpack tablet-driver file.

The ".sit" (Stuffit) extension on the USB-Tablet file refers a proprietary archive of compressed files or digital objects. Double-click the "USBTabletINIT.sit" file to unpack the archive and to reveal the USB Tablet INIT application. Next, return to your Systems Folder from the untitled drive and locate the Extensions folder. Drag the USB Tablet INIT application into the Extensions folder. Close all windows and shut down the emulator.

Screenshot displaying "Systems Folder" showing the "Extensions" folder opened in its window and the USB-Tablet icon on the Desktop.

Step 4: Boot Mac OS 9.2.1 with Tablet-Driver installed

Boot the Mac OS 9.2.1 emulator. Return to the Extensions folder located with the Systems Folder. The USB-Tablet driver should appear listed as one of the installed extensions for the OS.

Screenshot displaying "Systems Folder" showing the "Extensions folder and the USB-Tablet Driver successfully installed inside.

As always, it is best practice when exiting the emulator to perform a Clean Shut Down by selecting Shut Down from the Special tab located on the Toolbar.

Screenshot displaying Clean Shut Down method