SunOS 4.1.4 on QEMU w/Hi-Res Graphics and Apps!

(This is a guest post by Antoni Sawicki aka Tenox)

SunOS 4.1.4 on QEMU is hardly any news. Neozeed installed it back in 2013, and graphics came with Mark Cave-Ayland’s cg3 frame buffer. However it was always a bit wonky. The mouse pointer jumped around, the whole thing froze when you held Shift and moved the mouse, the screen was limited to 1024×768 and an idle VM kept a whole host CPU core busy.

Now it all has been patched up in LEMU! A QEMU fork for legacy systems.

High resolution! The cg3 frame buffer now does any screen size. The image starts in 1280×1024, and RES=1920x1080 ./run.sh gives you Full HD. OpenWindows was tested all the way up to 3200×1800.

CPU idle detection! SunOS 4 never halts the CPU, its idle loop just spins. LEMU finds that loop and halts the CPU instead. An idle VM now uses about 2% of one host core. It used 100% before!

Mouse and keyboard fixed! No more jumping pointer and no more freezes. Caps Lock works, and a key held a little too long no longer types twice.

Sound! The emulated audio chip now plays, so SunOS sounds come out of your speakers. SimCity for HyperLook plays its sound effects too. Try /usr/demo/SOUND/play -v 100 /usr/demo/SOUND/sounds/spacemusic.au

Behold! SunOS 4.1.4 with OpenWindows 3 in 1280×1024 on an emulated SPARCstation 5:

SunOS 4.1.4 with OpenWindows 3 in 1280x1024: File Manager, a cmdtool with uname and gcc, clock and perfmeter

Specs: Sun SPARCstation 5, microSPARC II, 256MB RAM, cg3 1280x1024 256 colors, ESP SCSI, Lance Ethernet

Let’s look at some cool apps! The image comes with a pile of software already installed and ready to run.

Lucid Energize 2.5, the C++ development environment from 1993, with Lucid C++ 3.1 and Lucid Emacs 19.7 as its editor. Add /usr/energize/bin to your PATH, start its ObjectStore servers with /usr/energize/ostore/etc/start_servers, then run start_energize. Here it built the dclock demo from its tutorial:

Lucid Energize 2.5 on SunOS 4.1.4: the Lucid Emacs editor with C++ code, a call tree graph and the dclock demo program it built, beside a cmdtool with uname -a
Lucid Energize 2.5

FrameMaker 2.1.1 for NeWS and OPEN LOOK:

FrameMaker 2.1.1 on SunOS 4.1.4 OpenWindows showing its Welcome to FrameMaker document, beside a cmdtool with uname -a
FrameMaker 2.1.1

WordPerfect 6.0 for UNIX, plus the text version WordPerfect 5.2+ for fans of the blue screen:

WordPerfect 6.0 for UNIX on SunOS 4.1.4 OpenWindows with a sample newsletter, next to a cmdtool with uname -a
WordPerfect 6.0

Altsys Virtuoso 1.0, a NeWS drawing program from 1993:

Altsys Virtuoso 1.0 on SunOS 4.1.4 OpenWindows with the SunWorkstation sample drawing, beside a cmdtool with uname -a
Altsys Virtuoso 1.0

CorelDRAW 3.0 for UNIX, sadly only the demo version:

CorelDRAW 3.0 demo on SunOS 4.1.4 OpenWindows with the jukebox sample drawing, next to a cmdtool with uname -a
CorelDRAW 3.0 demo

Island Productivity Series 3.0 from 1992: IslandWrite, IslandDraw and IslandPaint:

IslandWrite from Island Productivity Series 3.0 on SunOS 4.1.4 with its sample document, beside a cmdtool with uname -a
IslandWrite
IslandDraw from Island Productivity Series 3.0 on SunOS 4.1.4 with the Golden Gate sample drawing, beside a cmdtool with uname -a
IslandDraw
IslandPaint from Island Productivity Series 3.0 on SunOS 4.1.4 with the hibiscus sample picture, beside a cmdtool with uname -a
IslandPaint

Then Lotus 1-2-3 1.2 and Mathematica 2.2.3:

Lotus 1-2-3 1.2 on SunOS 4.1.4 with the sine integral sample worksheet and its graph, beside a cmdtool with uname -a
Lotus 1-2-3
Mathematica 2.2.3 notebook on SunOS 4.1.4 with a Plot3D surface, $Version and an integral, beside a cmdtool with uname -a
Mathematica 2.2.3

SimCity HyperLook Edition from DUX Software, 1992, with PostScript graphics and user interface by Don Hopkins:

SimCity HyperLook Edition on SunOS 4.1.4 playing the Tokyo scenario with a Monster Attack alert, beside a cmdtool with uname -a
OG SimCity for HyperLook: Monster Attack in Tokyo!

And here is a real gem, the original Netscape 1.0:

Netscape Navigator 1.0 from 1994 showing its about page on SunOS 4.1.4 OpenWindows, beside a cmdtool with uname -a
Netscape 1.0 from 1994!

Plus Netscape Navigator 4.61 and NCSA Mosaic 2.7b4. You can always use WRP or VNC Brave for modern websites.

Netscape Navigator 4.61 about page on SunOS 4.1.4 OpenWindows, beside a cmdtool with uname -a
Netscape Navigator 4.61
NCSA Mosaic 2.7b4 on SunOS 4.1.4 listing the local /usr directory, beside a cmdtool with uname -a
NCSA Mosaic 2.7b4

Even Windows! SoftWindows 2.0 from Insignia runs MS-DOS 6.22 and Windows 3.11:

SoftWindows 2.0 on SunOS 4.1.4 OpenWindows running Windows 3.11 Solitaire, next to a cmdtool with uname -a
Solitaire on Windows 3.11 on SoftWindows on SunOS on QEMU

OpenWindows 3 also comes with a nice set of X11 and NeWS demos:

OpenWindows 3 demos on SunOS 4.1.4: the realxfishdb aquarium background, Pizza Tool, NeWSClock, xeyes, puzzle and ico, with a cmdtool showing uname -a
OpenWindows demos with the realxfishdb aquarium

And of course there is good old SunView, with Interleaf TPS 4.0, MathCAD 2.53, Mathematica, Micropolis and a bunch of games:

Interleaf TPS 4.0 on SunOS 4.1.4 SunView showing the Interleaf Slim TPS Tour document with a drawing of a classic car, next to a shelltool with uname -a
Interleaf TPS 4.0
MathCAD 2.53 on SunOS 4.1.4 SunView with a surface plot of sin(x^2+y^2), next to a shelltool with uname -a
MathCAD 2.53
Mathematica 2.2.3 in a SunView shelltool on SunOS 4.1.4 with uname -a, N[Pi, 50] and Factor, beside two Mathematica Graphics windows: a colour torus and a Bessel function plot
Mathematica 2.2.3 in SunView
Micropolis for SunView on SunOS 4.1.4 playing the Kowloon city with a crime alert, beside a shelltool with uname -a
Micropolis (SimCity Clone) for SunView!!!
SunView on SunOS 4.1.4 with Tetris, Sokoban, Minesweeper and 2048, and a shelltool with uname -a
Tetris, Sokoban, Minesweeper and 2048
SunView on SunOS 4.1.4 with Sun's chesstool, gammontool and canfieldtool, and a shelltool with uname -a
chesstool, gammontool and canfieldtool

There is more under the hood: Sun C, gcc 3.0.4 with GNU make, bash, gawk, GNU tar, gzip and binutils, the classic games like hack, adventure and trek in /usr/games, the SunOS demos in /usr/demo, and a NeWS Hello World in /home/NeWS. The SunView games come with their sources in /home/games.

As usual I have prepared a ready to run, portable image with QEMU binaries for Linux, macOS and Windows. Just unpack and run run.sh (or run.cmd on Windows), log in as root with no password and type /usr/openwin/bin/openwin or sunview. The README.txt in the image tells how to start each app.

Download: https://files.42718.net/mirror/tenox/os/sunos/Virtual/qemu/SunOS414/sunos414-lemu.tar.lz

The image presented here was originally installed by Daghdha. I just added software and extended it! But credit is due!

Source (LEMU, my QEMU fork): https://github.com/tenox7/lemu

Have Fun with Virtualization!

PS You may also be interested in Solaris 2.5.1 PowerPC on QEMU.

One thought on “SunOS 4.1.4 on QEMU w/Hi-Res Graphics and Apps!”

Leave a Reply