Forensic Intelligence
Tunix overview

Boot guide

From a fresh system disk to your first shell prompt.

Prepare the machine

Use an Apple //e with a 6502 or 65C02, 64 KiB of main RAM, 64 KiB of auxiliary RAM and 80-column text. An extended 80-column card or a RamWorks with a 64 KiB auxiliary bank supplies the extra memory. Connect a 16-sector Disk II controller in slot 6 and a drive as drive 1.

A Thunderclock Plus or compatible card adds wall-clock time and alarms. The shell, editor, chess, mail and ASCII demo all work on the base machine.

Start from the floppy

  1. Make a working disk. Download the 140 KiB disk image and make a writable copy. Tunix stores accounts and files on that copy.
  2. Insert the disk. In Virtual ][, select an Apple //e configuration with a compatible //e ROM and insert the copy in slot 6, drive 1. On a physical machine, transfer the image to a 16-sector 5¼-inch disk with an Apple II disk imaging tool and insert that floppy.
  3. Cold-start the Apple //e. Watch the kernel count tracks, check memory and mount the filesystem. At the Tunix banner, choose a username and enter a password twice.

The shell starts in /home/yourname. Enter commands in lowercase and press Return.

Try a first session

Type help, press / and search for nano. Use the arrow keys to select the topic, then press Return to read it. Press Q outside the search field to close help.

$ nano notes
$ ls -l
$ cat notes

In nano, write a line, press Ctrl + O and confirm the filename with Return. Press Ctrl + Z to park the editor. Back at the shell, ls -l shows the owner and permissions. cat notes prints the saved text.

Run chess and play e2e4. To switch back to your editor, press Ctrl + L, choose nano and press Return. Tunix keeps your chess position.

Run a BASIC program

Open nano hello.bas. Enter the two lines below, save with Ctrl + O and Return, then leave nano with Ctrl + X.

10 PRINT "HELLO FROM TUNIX"
20 END

Run tbasic hello.bas to interpret the source. Run tbasic -build hello.bas to create the executable, then ./hello to start it. A build asks before replacing an existing file. Press Return to keep the previous copy.

The walkthrough’s counter draws every number from 1 to 100 and reads its elapsed time from the Thunderclock. Download count.bas.

Bring forward a 0.3 or 0.4 disk

Shut down Tunix and eject the old working disk. Extract the 0.5.0 source bundle on your Mac. From that folder, run the upgrade tool with the paths to your old disk, the factory 0.5.0 disk and a new output file.

python3 tools/upgrade.py working-0.4.dsk tunix-0.5.0.dsk working-0.5.dsk

Boot the new output disk to sign in with your existing account and open your home directory.