Nugget Linux boots on a Macintosh Plus with 4 MB of RAM

Nugget Linux boots on a Macintosh Plus with 4 MB of RAM

A 1986 Macintosh Plus can boot Linux from an 800 KB floppy disk with just 4 MB of RAM. Action Retro’s experiment is called Nugget Linux and offers a basic edition without networking on one disk; using the desktop and connectivity requires two.

Action Retro, a YouTube channel dedicated to retro hardware, developed the system to see whether the computer could run a modern kernel. Hackaday covered the test, and the project documentation identifies its release as version Nugget Linux 0.5.

Two configurations for the Macintosh Plus

The original machine has a Motorola 68000 processor running at 7.83 MHz and no MMU, or memory management unit. The Macintosh Plus supports a maximum of 4 MB of RAM, exactly the amount Nugget Linux requires. The boot disk checks the available memory and stops with a message if it detects less.

The single-disk edition, identified in the repository as linux-plus.dsk, boots into a BusyBox command-line environment. It does not include a network connection. The full edition is distributed as linux-plus-set.dsk and linux-plus-set-2.dsk: first, boot the computer from disk one, then insert the second disk when prompted.

ConfigurationDisksEnvironmentNetwork
linux-plus.dskOne, 800 KBBusyBox consoleNot available
linux-plus-set.dsk and linux-plus-set-2.dskTwo, 800 KB eachDesktop availableAvailable

The reason for separating the editions is practical: the kernel with networking support does not fit on one floppy disk. This lets the minimal installation retain its single-disk boot, while the two-disk version provides desktop and connectivity features.

You need an 800 KB floppy drive to get it running. A second external drive makes installation easier, although the project says a Floppy Emu can serve as either drive. The images can also be loaded into that emulator instead of being written to physical floppy disks.

Networking via SCSI or the serial port

Connectivity is optional and depends on compatible peripherals. Nugget Linux supports the Asante EN/SC SCSI Ethernet adapter or SLIP through a serial cable connected to the printer port. The Macintosh Plus did not include internet connectivity; both options require additional hardware.

SLIP carries IP traffic over a serial connection. SmartWorld describes it as a slow but functional alternative. For the two-disk edition, the repository documents the eth-up command for Ethernet and a network panel on the desktop; for SLIP, the project includes a directory dedicated to a test gateway.

The distribution does more than display a boot prompt. The two-disk edition includes the Nugget Advanced Desktop System, or NADS, a custom graphical environment based on Nano-X, also known as Microwindows. It includes a window manager and a file manager tailored to the Plus, as well as a terminal, text editor, calculator, and system monitor.

The file manager can read and write floppy disks formatted with HFS, the Macintosh file system. It can also work with files on a RAM disk, which stores data in memory, and save desktop settings in a folder called NugPrefs on a Mac floppy disk.

Nugget Linux arranca en un Macintosh Plus con 4 MB de RAM
© GitHub

A desktop designed to conserve resources

The project adapts the interface to the Macintosh Plus display: 512 × 342 pixels in black and white, with no grayscale, according to SoftZone. The desktop uses visual elements inspired by Mac, Lisa, and NeXT, and retrieves the Chicago font and text and wait cursors from the Plus ROM when available.

Nugget Linux’s documentation explains several choices made to reduce graphics workload. The system draws window borders first and, while a window is being moved or resized, displays only its outline. The full contents are redrawn when the mouse button is released. The kernel also draws the pointer, which can keep moving while the graphics server processes application requests.

The memory budget also affects how the software is packaged. The system root, containing the operating system and its applications, stays in RAM. In the version 0.5 documentation, the developer describes how several applications were grouped into a single executable called nxapps, rather than keeping separate copies of common libraries in each program.

In a MAME test with a floppy disk mounted, the graphics server and file manager running, free memory increased from 180 KB to about 410 KB after combining the executables. These are measurements from the emulated computer, not a test on a physical Macintosh; the documentation uses them to show the effect of reducing duplication.

The browser included in the released two-disk edition is called FrogSurf. It does not try to process complex web pages directly: it uses FrogFind, a service that converts DuckDuckGo results to simple HTML and processes selected pages with Mozilla Readability. This way, the browser receives a simplified version of the content.

There is one caveat for anyone who wants to rebuild the system from the public code: the repository does not include FrogSurf’s source code. According to the project documentation, building from that code puts Landmine in its place. The distributed two-disk version, however, includes FrogSurf.

From a 68000 port to a 1986 Mac

Nugget Linux builds on Colin Maykish’s work known as Mackerel-08, a Linux port for 68000 processors. The Macintosh Plus architecture made it possible to use that foundation, although the project added changes for the computer’s specific hardware: the floppy drive, keyboard, mouse, display, and communications.

The repository identifies the kernel as Linux 7.3.5 with modifications for the Macintosh Plus. This is consistent with the project’s description of it as Linux mainline: it is not a separate system based on a third-party kernel, but it does require changes to make Apple hardware work. The kernel build is reduced to fit the space available on the disks.

Hackaday notes that the first Linux kernels targeted Intel 386 processors and that the first port to another architecture came to the Motorola 68000 family. That architecture remains supported by Linux, unlike 386 support, as the publication points out. The Plus’s relationship to that architecture helps explain why the experiment can build on previous 68k work.

There was also a recent example on different hardware: XDA and Hackaday mention a port to the Atari Jaguar console, whose processor is compatible with the 68000 architecture. Nugget Linux brings that idea to a 1986 personal computer and adds a desktop, applications, and networking options, within the strict limit of its 4 MB of memory.

Claude, GitHub, and available tests

Action Retro developed the project with help from Claude, Anthropic’s artificial intelligence model. The repository documentation also explicitly credits its use. It does not attribute a specific part of the code to Claude or detail what tasks it performed; the system and technical decisions are presented as the project’s work.

The original code is published under the GNU GPL-2.0 license, while dependencies retain their original licenses. The repository includes the desktop components, build tools, drivers, and floppy disk images. It also provides scripts to generate versions for MAME and run boot, mouse, and display tests.

Anyone with a Macintosh Plus can try the images on 800 KB floppy disks or load them with a Floppy Emu. The installer starts from the console with nuggetinstall; the two-disk edition’s desktop includes the NuggetInstall application. To start the graphical environment from the console, the documentation specifies the desktop command.

The demonstration shows how far the project goes within the Macintosh Plus’s limitations: a console on one disk and a desktop with networking on two. The download is available in Action Retro’s Nugget Linux repository.

Sources: SoftZone, SmartWorld, SmartWorld, GitHub, Hackaday, XDA, Joho no Todai