SHORK 486, 586, DISC & DISKETTE
SHORK 486 is a free and open-source operating system for 486 and 586/Pentium (P5) era vintage personal computers! It is a 32-bit Linux distribution aiming to be lean yet functional, giving such retro hardware the best chance possible to run modern, updated software. A “default” SHORK 486 system aims to work with at least 16MiB of system memory and take up no more than ~150MiB on your disk. Despite those constraints, this experience includes Linux kernel 7.3.7, a BusyBox userspace with many typical Linux commands, custom SHORK Utilities such as SHORKDIR (TUI file browser) and SHORKFETCH (*fetch utility), a terminal multiplexer, a C compiler, Lua intepreter, Python 3.4-syntax interpreter and dialog for shell TUI widgets, a text web browser, FTP, NTP, SCP/SSH, Telnet and TFTP clients and servers, Git source control client, ed, Mg, nano and vi editors, a spreadsheet editor, minesweeper- and Tetris-clone games, FAT12/16/32, exFAT, ext2/3/4 and NTFS filesystem support and tools, IDE and SCSI CD-ROM and DVD-ROM support, SCSI tape drive support, ISA, PCI and PCMCIA ethernet, support for most major national keyboard layouts, and a cute ASCII shark welcome screen!
A build configurator is available to alter the SHORK 486 Operating System to your liking. For example, you can select the “mini” variant that requires just 8MiB RAM and ~8MiB disk space, whilst still including most typical commands as before, some custom SHORK Utilities, and the ed and vi editors. You can also configure SHORK 486 for symmetric multiprocessing support, multi-user support and serial console use, and pick and choose specific software and other features to include. Versions of SHORK 486 that can be optimised specifically for 5x86/K5/Pentium (SHORK 586), burned to a CD (SHORK DISC) or small enough to fit on a 1.44MB floppy diskette (SHORK DISKETTE) are also available. Suggestions, feedback, and observations/opinions on performance wanted!

The SHORK project includes patching the Linux kernel to keep supporting 486/586 era hardware into the future so that SHORK 486 will not be left with an old kernel. Where possible, SHORK 486 tries not to be opinionated about what is included and how it is set up. Current software and feature selection and configuration are based on their suitability to run on the target hardware. In fact, SHORK 486’s development is currently in a “discovery” phase, figuring out what exactly can run within these restraints and informing the software list to take forward and support. Suggestions for what to include are always welcome, though! After this, an “optimisation” phase will come to try patching the Linux kernel, BusyBox and bundled software to run as well as possible on said hardware. Don’t expect miracles, but SHORK may already surprise you!
Introduction
Origin & inspirations
I have long wanted my own viable, modern yet lightweight operating system for my early-'90s IBM ThinkPads to allow me to use them with their excellent keyboards as SSH terminals and as writing pads with modern file transfer and source control features. In December 2025, Action Retro posted a video on FLOPPINUX, something that turned out to be a very accessible means for me to learn how to make a working Linux system. SHORK 486 began as an automated build script based on FLOPPINUX’s build instructions, but adapted for producing fixed disk images instead of diskette images. After that, more Linux kernel and BusyBox features were enabled, and other software was compiled to help fulfil my dream. Other inspirations from similar efforts include Gray386linux and Ocawesome101’s blog post on running Linux on a 486SX.
Architecture
The SHORK 486 Operating System is not GNU/Linux as you may be accustomed to. Its init system and primary userland are provided by BusyBox, a single-binary application well known for embedded usage. As needed, some other utilities (such as those from util-linux) are permitted to plug any ‘holes’ in BusyBox’s suite or provide more capabilities when system resources allow. The system is compiled with musl instead of glibc, allowing smaller binaries that also use fewer resources. Software is also statically compiled to eliminate dependency woes and increase predictability. Architecturally, the closest well-known Linux distribution to SHORK 486 is perhaps Alpine Linux.
Goals
Besides being something fun to try on old PCs, the SHORK project was founded on the belief that old PCs can still be useful to the right people, retrocomputing and gaming usage aside. SHORK 486 can be useful for lightweight desktop usage, SSH terminal usage, distraction-free typewriting (“writerdecks”), embedded applications, demonstrative use in academia/education, and as a technical demonstration of what old PCs and modern software targeted at them can actually still do! If SHORK can save just one more PC from the landfills, it has done its job.
What’s special
The SHORK 486 Operating System is a modern and maintained Linux distribution that can run on a processor architecture from 1989. Depending on configuration, it only requires between 7 and 24MiB system memory whilst still packing a lot of functionality for its size. For various reasons, making such a distribution is increasingly difficult in the 2020s. System requirements keep rising, and even the otherwise excellent Core/Micro Core/Tiny Core family requires at least 26-46MB RAM, putting them out of range for many early 486 systems. As of Linux kernel 7.1 and beyond, support for 486 processors and various ISA and PCMCIA networking hardware has been dropped, and 32-bit x86 support in general is currently being dropped by most mainstream distributions. Given the situation, SHORK 486 will try to fill this niche of a ready-to-go Linux distribution for such PCs by sticking with a minimal-where-possible philosophy, offering customisability and restoring dropped vintage hardware support on newer Linux kernels.
Versions
The SHORK 486 Operating System is available in four versions: SHORK 486, SHORK 586, SHORK DISC and SHORK DISKETTE. SHORK 486 and SHORK 586 are for hard and solid-state disks. At present, the difference between them is just optimisation for their respective x86 revision, and which one you get depends on the target architecture you build SHORK for. They otherwise comprise the same feature set and available programs.
SHORK DISC is for CD and DVD discs, envisioned as a completely immutable system or diagnostic aid, and will eventually be used as SHORK 486’s installation media. SHORK DISKETTE is for floppy diskettes and is envisioned as a handy emergency Linux environment, diagnostic aid and CD-ROM boot disk.
Editions
In the temporary lieu of a package manager, SHORK 486 and SHORK 586 can be made as one of several build types to better match your system configuration and what you want to do with said system. If none of these suit your needs exactly, you can make a custom build instead.
-
Default: SHORK 486/586 in its recommended configuration that tries to balance features and software variety with system requirements. It’s what was described at the start of this README.
-
Max: SHORK 486/586 with every possible option enabled, including support for more modern hardware such as more than 875MiB RAM, SATA storage devices and USB peripherals. It is not intended or recommended for 486/586 systems per se, more a shortcut to those who like SHORK’s design but want to use it on late '90s to early '10s systems as well, in lieu of future SHORK 686.
-
Plus: Like default but with all the optional bundled software included. It includes a lot more development-focused software, additional editors (most notably Vim), IBM terminal emulation software, and (for 586) an MP3 player. It can be used with the same minimum 16MiB system memory as default, but it will lean into slower swap memory a lot more if you don’t have more physical memory (ideally at least 24MiB).
-
Writer: SHORK 486/586 with all text editors enabled, no full networking support, and fewer distractions. It sacrifices the generalist system configuration of default to get all the editors bundled in a similar footprint as said default. This may be interesting for a writing-oriented system such as a writerdeck. It can be used with the same minimum 16MiB system memory as default, but in particular whilst using Vim, it can lean into slower swap memory a lot more if you don’t have more physical memory (ideally at least 24MiB).
-
Terminal: SHORK 486/586 with just remote session, file transfer and supporting utilities included. If you simply want to throw SHORK 486/586 on an internet-connected device to turn it into a modern SSH or TN5250 terminal, this suits it nicely. A robust BusyBox configuration is still included, as are cURL, an FTP client, an NTP daemon and interface, an SCP client and tmux, since they may be useful for this application too.
-
Offline: Like default but without full networking support and software that would require it. If you don’t need the internet but still want a generalist system, you can save some system memory (~4MiB) and disk space (~35MiB) with this.
-
Mini: SHORK 486/586 in a small but reasonable configuration. All bundled software, additional features and SHORK Entertainment are excluded, and multi-user, networking and non-US keyboard layout support are disabled. That said, a robust BusyBox configuration is still provided, so you lose comparatively few general and system utilities. You still have the ed and vi editors, a complement of archive and compression utilities, and basic partitioning tools for managing ext2 and FAT32 partitions you may encounter with old systems. It’s a very lightweight Linux system, but one may still find usable.
-
Micro (EXPERIMENTAL): SHORK 486/586 in its smallest configuration. It’s designed to provide a basic Linux system in just 4MiB, but not much else. All the cutbacks of Mini apply, but the BusyBox configuration is now also reduced, especially regarding file archiving, file compression and disk management/partitioning, and no SHORK Utilities are included.
Licences
SHORK 486 is a free and open-source operating system. Its core is made up of GPLv3 (SHORK, SHORK Utilities, most of SHORK Entertainment), GPLv2 (Linux kernel, BusyBox, SYSLINUX), and MIT (SHORKMINES) components. SHORK 486 can also contain bundled software licensed under various permissive, copyleft, and even public-domain-equivalent licences. You can look at the bundled software list later in this README, or at the “Licences” portal in shorkhelp when running SHORK 486, to see individual licences. The subdirectories in shork-486/patches are also licensed separately since they are derived from the source code of the programs being patched, and a copy of their licence is stored in the relevant subdirectories.
The author
Hi, I’m Kali (he/him) from Cymru (Wales)! I work in research/computer science and software engineering. I author Admiral Shark’s Keyboards (ASK), a project to document IBM, Lexmark, Unicomp, Lenovo and TGCS keyboards and related devices. ASK and my overall interest in vintage IBM hardware set the stage for SHORK, as it led me to acquire several 486- and 586-era ThinkPads with keyboards I really appreciate and want to incorporate into my daily workflow as much as possible. My favourite animals are chondrichthyans, hence the shark theme.
SHORK 486 & 586
SHORK 486 proper and SHORK 586 are the main versions of the SHORK 486 Operating System that are designed to be installed to a fixed disk (hard drive, solid-state drive, etc.) It is the most robust, versatile and customisable version being developed with the goal of being ‘daily-drivable’ in mind. It can be built as a single-user (root) or multi-user system.
Hardware requirements
- Processor:
- As standard: Intel 486SX or compatible (no FPU required)
- Can also configure for 486DX, 586, 586 TSC or 586 MMX for optimisation
- Memory:
- Default: 16MiB RAM (8MiB swap recommended)
- Max: 32MiB RAM (recommended), 24MiB RAM + 8MiB swap (acceptable)
- Plus: 24MiB RAM + 8MiB swap (recommended), 16MiB RAM + 16MiB swap (acceptable)
- Writer: 24MiB RAM + 8MiB swap (recommended), 16MiB RAM + 16MiB swap (acceptable)
- Terminal: 16MiB RAM (8MiB swap recommended)
- Offline: 12MiB RAM (8MiB swap recommended)
- Mini: 8MiB RAM
- Micro: 7MiB RAM
- Note: Add ~2MiB to RAM requirement to all except Max if symmetric multiprocessing support is enabled with no swap memory
- IDE or SCSI disk:
- Default: 150MiB
- Max: 690MiB
- Plus: 670MiB
- Writer: 90MiB
- Terminal: 70MiB
- Offline: 110MiB
- Mini: 8MiB
- Micro: 4MiB
- Graphics: IBM EGA, VGA or compatible
- Monitor: 640x350 (EGA), 640x480 (VGA) or higher
- Keyboard: AT or PS/2
- Mouse: serial or PS/2
BusyBox
Base
ar, arch, ascii, ash, awk, base32, base64, basename, bc, beep, blkid,
bunzip2, bzcat, bzip2, cal, cat, chattr, chmod, chvt, cksum, clear,
comm, cp, cpio, crc32, crontab, cut, date, dc, dd, df, diff, dirname,
dmesg, dos2unix, du, echo, ed, egrep, eject, env, expand, expr, factor,
fallocate, false, fatattr, fdflush, fdformat, fdisk, fgrep, find, fold,
free, fsck, fuser, getfattr, getopt, grep, gunzip, gzip, halt, head,
hexdump, hexedit, hostid, hostname, hwclock, init, install, iostat,
kill, killall, less, link, ln, loadkmap, ls, lsattr, lsblk, lsof, lspci,
lsscsi, lzcat, lzma, lzop, lzopcat, man, md5sum, mdev, mkdir,
mkdosfs/mkfs.vfat, mke2fs/mkfs.ext2, mkfifo, mknod, mkswap, mktemp,
more, mount, mountpoint, mv, nice, nl, nohup, nproc, od, partprobe,
paste, patch, pgrep, pidof, pkill, pmap, poweroff, printenv, printf, ps,
pstree, pwd, pwdx, readlink, realpath, reboot, rev, rm, rmdir, sed, seq,
setfattr, setfont, sha1sum, sha256sum, sha384sum, sha3sum, sha512sum,
showkey, shred, shuf, sleep, sort, split, stat, strings, stty, sum,
swapoff, swapon, sync, tac, tail, tar, taskset, tee, test, time,
timeout, top, touch, tr, tree, true, truncate, tsort, tty, tune2fs,
umount, uname, uncompress, unexpand, uniq, unix2dos, unlink, unlzma,
unlzop, unxz, unzip, uptime, usleep, uudecode, uuencode, uuidgen, vi,
vmstat, volname, watch, wc, which, whoami, xargs, xxd, xz, xzcat, yes,
zcat
Framebuffer support enabled
fbset, fbsplash
Multi-user support enabled
addgroup, adduser, chgrp, chown, chpasswd, chroot, cryptpw, delgroup,
deluser, getty, id, login, logname, mkpasswd, passwd, su, sulogin,
users, w and who
Networking support enabled
dnsdomainname, ftpd, ftpget, ftpput, ifconfig, inetd, ip, ipcalc, nc,
netcat, netstat, nslookup, ping, pscan, route, telnet, telnetd, tftp,
tftpd, traceroute, udhcpc, wget and whois
Bundled software
- P: plus/max - D: default - W: writer - T: terminal - O: offline
- ✓ indicates the software is included for the given edition
| Name |
Version |
Purpose |
Licences |
P |
D |
W |
T |
O |
BIND 9 DNS utilities
arpaname, delv, dig, host, mdig, nslookup*, nsupdate |
9.20.29 |
DNS query & update tools |
MPL 2.0 |
✓ |
|
|
|
|
chrony
chronyc, chronyd |
4.9 |
NTP daemon & interface |
GNU GPLv2 |
✓ |
✓ |
|
✓ |
|
Cscope
cscope |
15.9 |
C/C++ code browser |
BSD 3-Clause |
✓ |
|
|
|
|
CTris
ctris |
4cf68a9 |
Tetris clone |
MIT |
✓ |
✓ |
|
|
✓ |
cURL
curl |
8.23.0 |
HTTP client & transfer utility |
MIT |
✓ |
✓ |
|
✓ |
|
dialog¶
dialog |
1.3-20260721 |
Shell script TUI widgets |
GNU LGPLv2.1 |
✓ |
✓ |
|
|
✓ |
dmidecode
biosdecode, dmidecode, ownership, vpddecode |
3.7 |
DMI/SMBIOS table decoder |
GNU GPLv2 |
✓ |
✓ |
✓ |
✓ |
✓ |
dosemu2†
dosemu |
2.0pre9-2 |
DOS emulation |
GNU GPLv2 |
✓ |
|
|
|
|
dosfstools e.g. dosfsck, mkdosfs* |
4.2 |
FAT family filesystem utilities |
GNU GPLv3 |
✓ |
✓ |
|
|
✓ |
Dropbear
scp, ssh, sshd‖ |
2026.94 |
SCP and SSH clients, SSH daemon‖ |
MIT + BSD 2-Clause |
✓ |
✓ |
|
✓ |
|
e2fsprogs e.g. blkid*, chattr*, fsck*, lsattr*, mke2fs*, resize2fs, tune2fs*, uuidgen* |
1.47.4 |
ext2/3/4 filesystem utilities |
GNU GPLv2 + LGPLv2 |
✓ |
✓ |
|
|
✓ |
exfatprogs e.g. chdosattr, exfatlabel, fsck.exfat, lsdosattr, mkfs.exfat, tune.exfat |
1.4.5 |
exFAT filesystem utilities |
GNU GPLv2 |
✓ |
✓ |
|
|
✓ |
fdutils e.g. fdmount, floppycontrol, setfdprm, superformat, xdfcopy, xdfformat |
5.6 |
Floppy drive utilities |
GNU GPLv2 |
✓ |
✓ |
|
|
✓ |
file
file |
5_48 |
File identification |
BSD 2-Clause |
✓ |
✓ |
|
|
✓ |
Git
git |
2.56.0 |
Source control client |
GNU GPLv2 |
✓ |
✓ |
|
|
|
GNU Autoconf†
autoconf, autoreconf |
2.73 |
configure script generator |
GNU GPLv2 |
✓ |
|
|
|
|
GNU Automake†
aclocal, automake |
1.19 |
Makefile.in generator |
GNU GPLv2 |
✓ |
|
|
|
|
GNU Binutils†‡ e.g. ar*, as, gprof, ld, nm, objdump, ranlib,readelf, strings*, strip |
2.37 |
Binary tools to compliment GCC |
GNU GPLv3 |
✓ |
|
|
|
|
GNU Compiler Collection†‡§
gcc, g++, gfortran |
11.2.1 |
C, C++ and Fortran compilers |
GNU GPLv3 + GCC RLE |
✓ |
|
|
|
|
GNU Indent
indent |
2.2.13 |
C code formatter |
GNU GPLv3 |
✓ |
|
|
|
|
GNU Libtool†
libtool, libtoolize |
2.6.2 |
Portable shared library build helper |
GNU GPLv2 |
✓ |
|
|
|
|
GNU m4
m4 |
1.4.21 |
General-purpose macro processor |
GNU GPLv3 |
✓ |
|
|
|
|
GNU Make
make |
4.4.1 |
Build automation tool |
GNU GPLv3 |
✓ |
|
|
|
|
GNU Midnight Commander¶
mc, mcdiff, mcedit, mcview |
4.8.33 |
Norton Commander-style file manager |
GNU GPLv3 |
✓ |
|
|
|
|
GNU Mtools e.g. mcopy, mdir, mformat, mlabel, mpartition, mtype |
4.0.50 |
MS-DOS/FAT disk access without mounting |
GNU GPLv3 |
✓ |
✓ |
✓ |
✓ |
✓ |
GNU nano¶
nano |
9.2 |
Pico-style text editor |
GNU GPLv3 |
✓ |
✓ |
✓ |
|
✓ |
GnuPG & pinentry e.g. gpg, gpg-agent, gpgconf, kbxutil, pinentry, watchgnupg |
2.5.24 & 1.3.3 |
OpenPGP-compliant encryption & signing |
GNU GPLv3 |
✓ |
|
|
|
|
gpm
gpm |
1.20.7 |
Virtual console mouse |
GNU GPLv2 |
✓ |
✓ |
✓ |
✓ |
✓ |
hdparm
hdparm |
9.65 |
ATA drive parameter get/set |
BSD-style |
✓ |
✓ |
✓ |
✓ |
✓ |
htop¶
htop |
3.5.3 |
Interactive process viewer |
GNU GPLv2 |
✓ |
✓ |
✓ |
|
✓ |
isapnptools
isapnp, pnpdump |
1.27 |
ISA PnP utilities |
GNU GPLv2 |
✓ |
✓ |
✓ |
✓ |
✓ |
Joe’s Own Editor
joe |
4.8 |
WordStar & Emacs-blend text editor |
GNU GPLv2 |
✓ |
|
✓ |
|
|
jq
jq |
1.8.2 |
Command-line JSON processor |
MIT + CC BY 3.0 + ICU |
✓ |
|
|
|
|
lsb-release-minimal
lsb_release |
12.0-2 |
Linux Standard Base/distribution info reporter |
ISC |
✓ |
✓ |
✓ |
✓ |
✓ |
lshw
lshw |
B.02.20 |
Hardware configuration reporter |
GNU GPLv2 |
✓ |
|
|
|
|
Lua
lua |
5.5.1 |
Embedded scripting & extensions language |
MIT |
✓ |
✓ |
|
|
✓ |
Lynx¶
lynx |
2-9-3f |
Terminal web browser |
GNU GPLv2 |
✓ |
✓ |
|
|
|
memtester
memtester |
4.7.1 |
Userspace memory subsystem fault tester |
GNU GPLv2 |
✓ |
✓ |
✓ |
✓ |
✓ |
Mg
mg |
4.7 |
Emacs-style text editor |
Unlicense |
✓ |
✓ |
✓ |
|
✓ |
MicroPython
micropython |
1.29.0 |
Python 3.4-syntax intepreter |
MIT |
✓ |
✓ |
|
|
✓ |
mpg321†
mpg321 |
0.3.2-1 |
MP3 player |
GNU GPLv2 |
✓ |
|
|
|
|
mt-st
mt, stinit |
1.8 |
Tape drive tools |
GNU GPLv2 |
✓ |
✓ |
|
|
✓ |
NASM
nasm, ndisasm |
3.02 |
Portable x86 assembler & disassembler |
BSD 2-Clause |
✓ |
|
|
|
|
Ncdu
ncdu |
1.22 |
Disk usage analyser |
MIT |
✓ |
✓ |
✓ |
|
✓ |
NetHack¶
nethack |
5.0.0 |
Dungeon exploration game |
NetHack GPL |
✓ |
|
|
|
|
New BSD Games¶
nbsdgames |
6.0.3 |
Terminal games pack (22) |
Public domain |
✓ |
|
|
|
|
ntfsprogs-plus e.g. mkntfs, ntfsck, ntfsclone, ntfslabel, ntfsresize |
1.0.0 |
NTFS filesystem utilities |
GNU GPLv2 |
✓ |
✓ |
|
|
✓ |
PatchELF
patchelf |
0.19.3 |
ELF binary patching |
GNU GPLv3 |
✓ |
|
|
|
|
pciutils
lspci*, setpci |
3.15.0 |
PCI utilities |
GNU GPLv2 |
✓ |
✓ |
✓ |
✓ |
✓ |
pcmciautils
lspcmcia, pccardctl |
018 |
PCMCIA utilities |
GNU GPLv2 |
✓ |
✓ |
|
✓ |
|
Perl
perl |
5.44.0 |
General-purpose scripting language |
GNU GPLv1 |
✓ |
|
|
|
|
sc-im¶
sc-im |
0.8.5 |
Terminal spreadsheet editor |
BSD 4-Clause |
✓ |
✓ |
✓ |
|
✓ |
sdparm
sas_disk_blink, scsi_ch_swp, sdparm |
1.12 |
SCSI drive parameter get/set |
BSD 3-Clause |
✓ |
✓ |
✓ |
✓ |
✓ |
setserial
setserial |
2.17 |
Serial port configuration get/set |
GNU GPLv2 |
✓ |
✓ |
✓ |
✓ |
✓ |
strace
strace |
7.2 |
System calls & signals tracer |
GNU LGPLv2.1 |
✓ |
✓ |
|
|
✓ |
sysfstools
systool |
2.1.1 |
sysfs device & driver query tool |
GNU GPLv2 |
✓ |
✓ |
✓ |
✓ |
✓ |
sudo‖
sudo, sudoedit, visudo |
1.9.17p2 |
Run command as root/substitute user |
ISC + BSD 2-Clause + BSD 3-Clause + zlib |
✓ |
✓ |
✓ |
✓ |
✓ |
tcpdump
tcpdump |
4.99.7 |
Packet analyzer |
BSD 3-Clause |
✓ |
|
|
|
|
Tilde¶
tilde |
1.1.3 |
GUI-like text editor |
GNU GPLv3 |
✓ |
|
✓ |
|
|
Tiny C Compiler§
tcc |
e5eedc0 |
C compiler |
GNU LGPLv2.1 |
✓ |
✓ |
|
|
✓ |
tmux
tmux |
3.8 |
Terminal multiplexer |
ISC |
✓ |
✓ |
✓ |
✓ |
✓ |
tn5250†
tn5250 |
0.18.0 |
TCP/IP 5250 terminal emulator |
GNU LGPLv2.1 |
✓ |
|
|
✓ |
|
tnftp
ftp |
20260211 |
FTP client |
BSD 2-Clause |
✓ |
✓ |
|
✓ |
|
Universal Ctags
ctags, readtags |
6.2.1 |
Source code object indexing |
GNU GPLv2 |
✓ |
|
|
|
|
util-linux
cfdisk, fdisk*, lscpu, partx, sfdisk, whereis |
2.42.4 |
Extra Linux utilities |
GNU GPLv2 |
✓ |
✓ |
|
|
✓ |
Vim†¶
ex, view, rvim, rview, vim, vimdiff, vimtutor, xxd* |
9.2.1071 |
Vi IMproved text editor |
Vim |
✓ |
|
✓ |
|
|
x3270†¶
c3270 |
4.5ga6 |
3270 terminal emulator |
BSD 3-Clause |
✓ |
|
|
|
|
- * Replaces a BusyBox version of the same utility
- † Inclusion is experimental or is pending needed optimisation
- ‡ GCC and GNU Binutils are separate projects but are bundled together as one complete toolchain, separate in the table for easy reading
- § Includes musl for their libc
- ‖ Only included with multi-user configurations
- ¶ Supports mouse input with gpm
| Name |
Version |
For |
Licences |
| Brotli |
1.2.1 |
GnuTLS |
MIT |
| console-data & KBD |
1.12-9 & 2.10.0 |
Keymaps pack |
GNU GPLv2 |
| console-setup |
1.249 |
Console fonts pack |
Public domain (most) SIL OFL 1.1 (Terminus) |
| GLib |
2.90.1 |
Midnight Commander |
GNU LGPLv2.1 |
| GNU Libidn2 |
2.3.8 |
BIND 9, GnuTLS |
GNU GPLv3 |
| GNU Libtasn1 |
4.21.0 |
GnuTLS |
GNU GPLv3 |
| GNU libunistring |
1.4.2 |
GnuTLS, Tilde |
GNU GPLv3 |
| GNU Nettle |
4.0 |
chrony, GnuTLS |
GNU GPLv2 |
| GnuTLS |
3.8.13 |
chrony |
GNU LGPLv2.1 |
| IBM3161-font |
1.0 |
Console fonts pack |
Unifont GPLv2 |
| Inconsolata-psf |
|
Console fonts pack |
SIL OFL 1.1 |
| libao |
1.2.2 |
mpg321 |
GNU GPLv2 |
| libassuan |
3.0.2 |
GnuPG |
GNU GPLv3 |
| libcom_err |
1.47.4 |
e2fsprogs |
MIT SIPB |
| libb64 |
2.0.0.1 |
dosemu2 |
Public domain |
| libblkid |
2.42.4 |
exfatprogs |
GNU LGPLv2.1 |
| libevent |
2.1.13 |
tmux |
BSD 3-Clause |
| libffi |
3.8.0 |
GLib |
MIT |
| libgcrypt |
1.12.4 |
GnuPG, ntfsprogs-plus |
GNU GPLv3 |
| libgpg-error |
1.61 |
GnuPG, ntfsprogs-plus |
GNU GPLv3 |
| libid3tag |
0.15.1b |
mpg321 |
GNU GPLv2 |
| libksba |
1.8.1 |
GnuPG |
GNU GPLv3 |
| libmad |
0.15.1b |
mpg321 |
GNU GPLv2 |
| libpcap |
1.11.0 |
tcpdump |
BSD 3-Clause |
| libsmi |
0.4.8 |
tcpdump |
BSD-like + Beerware |
| libss |
1.47.4 |
e2fsprogs |
MIT SIPB |
| libssh2 |
1.11.1 |
Midnight Commander |
BSD 3-Clause |
| libsysfs |
2.1.1 |
pcmciautils |
GNU LGPLv2.1 |
| libt3config |
1.0.0 |
Tilde |
GNU GPLv3 |
| libt3highlight |
0.5.0 |
Tilde |
GNU GPLv3 |
| libt3key |
0.2.11 |
Tilde |
GNU GPLv3 |
| libt3widget |
1.2.2 |
Tilde |
GNU GPLv3 |
| libt3window |
0.4.2 |
Tilde |
GNU GPLv3 |
| libtranscript |
0.3.4 |
Tilde |
GNU GPLv3 |
| liburcu |
0.15.7 |
BIND 9 |
GNU LGPLv2.1 |
| libuuid |
|
e2fsprogs, ntfsprogs-plus |
BSD 3-Clause |
| libuv |
1.53.0 |
BIND 9 |
MIT |
| libxlsxwriter |
1.2.4 |
sc-im |
BSD 2-Clause |
| libxml2 |
2.15.4 |
sc-im, Universal Ctags |
MIT |
| libzip |
1.12.1 |
Midnight Commander, sc-im |
BSD 3-Clause |
| musl |
1.2.6 |
GCC, Tiny C Compiler |
MIT |
| musl-fts |
1.2.7 |
exfatprogs |
BSD 3-Clause |
| ncurses |
6.6 |
Cscope, CTris, dialog, htop, Lynx, Midnight Commander, nano, Ncdu, NetHack, New BSD Games, sc-im, SHORKMINES, tic, tmux, tn5250, util-linux, x3270 |
MIT |
| nPth |
1.8 |
GnuPG |
GNU LGPLv2.1 |
| OpenSSL |
3.6.5 |
cURL, Git, Lynx, Midnight Commander, tcpdump, tn5250 |
Apache 2.0 |
| PCRE2 |
10.49 |
GLib, Tilde |
BSD 3-Clause w/ PCRE2 exception |
| S-Lang |
2.3.3 |
dosemu2 |
GNU GPLv2 |
| zlib |
1.4 |
Git, GLib, GnuPG, libzip |
zlib |
| Zstandard |
1.5.7 |
GnuTLS |
BSD 3-Clause or GNU GPLv2 |
SHORK Utilities (SHORKUTILS)
Only partially included with SHORK 486/586 Mini, SHORK DISC and SHORK DISKETTE; not included with SHORK 486/586 Micro
- shorkbin - An ASCII text/8-bit binary converter. Available as
bin2text, shorkbin and text2bin.
- shorkdir - Lightweight terminal-based file browser.
- shorkfetch - Displays basic system and environment information. Similar to fastfetch, neofetch, etc.
- shorkhelp - Informs of SHORK’s capabilities and provides guidance.
- shorkoff - A shutdown helper that safely brings the system to a controlled halt before a manual power off.
- shorkset - A settings program for changing display resolution, drivers (Linux modules), keyboard layout (keymap), font colour and style, mouse (gpm), network, and volume.
- shorkut - A system uptime source for when /proc/uptime isn’t available.
SHORK Entertainment (SHORKTAINMENT)
Not included with SHORK 486/586 Micro, SHORK 486/586 Mini, SHORK 486/586 Writer, SHORK 486/586 Terminal and SHORK DISKETTE
- shorklocomotive - A shark-themed take on sl (Steam Locomotive) that kindly pokes fun at making typos when trying to type
ls. Available as sl and shorklocomotive.
- shorkmatrix - A quick, blue-themed take on the CMatrix “digital rain” vertical scrolling text screensaver. Available as
cmatrix and shorkmatrix.
- shorkmines - A terminal-based minesweeper game based on terminal-mines. Available as
shorkmines and terminal-mines.
- shorksay - A shark-themed take on cowsay, a “simple and silly” program that outputs an ASCII art shark and speech bubble containing a message of your choice. Available as
shorksay and cowsay.
SHORK 486/586 on modern hardware
SHORK 486/586 can be used on some newer hardware if you so desire, but there are some considerations.
-
SHORK 486/586 can work with newer x86 processors, although a default SHORK 486/586 build will not recognise more than 1 core/thread. The “Symmetric Multiprocessing Support” configuration option is available to enable symmetric multiprocessing support. Whilst SHORK 486/586 can work on an x86-64 processor, the system is still limited to supporting 32-bit software.
-
A default SHORK 486/586 system will not recognise more than ~875MiB of memory. The “highmem” configuration option is available to address this, though the minimum system memory requirement is raised to 24MiB/16MiB + 8MiB swap.
-
A default SHORK 486/586 system only supports IDE or SCSI hard drives. The “sata” configuration option is available to address this, though the recommended system memory amount is raised to 24MiB/16MiB + 8MiB swap.
The planned SHORK 686 will make these modern system-orientated options obsolete in the future.
SHORK DISC
SHORK DISC is a specialised version of the SHORK 486 Operating System that can be burned to a CD or DVD. Only a subset of BusyBox commands, utilities and software are available for it, it is only offered as a single-user (root) system, and has no persistent storage. It is envisioned as a completely immutable system or diagnostic aid, and is to be used as SHORK 486’s installation media. Its ISO image will be ~31MB.
Hardware requirements
- BIOS: El Torito supported
- Processor:
- As standard: Intel 486SX or compatible (no FPU required)
- Can also configure for 486DX, 586, 586 TSC or 586 MMX for optimisation
- Memory: 12MiB RAM
- Disc: any CD+/-R/RW
- Graphics: IBM EGA, VGA or compatible
- Monitor: 640x350 (EGA), 640x480 (VGA) or higher
- Keyboard: AT or PS/2
BusyBox
ar, ash, awk, basename, bunzip2, bzcat, bzip2, cat, chmod, clear, cp,
cpio, date, dd, df, diff, dirname, dmesg, echo, ed, eject, expr,
fatattr, fdformat, free, grep, gunzip, gzip, hexdump, hostname, init,
less, ln, ls, lsblk, lspci, lsscsi, lzcat, lzma, lzop, lzopcat, mdev,
mkdir, mount, mv, patch, printenv, printf, pwd, rev, rm, sed, sync, tar,
tee, test, touch, true, umount, uname, uncompress, unlzma, unlzop, unxz,
unzip, vi, volname, which, xxd, xz, xzcat, zcat
Bundled software
SHORK Utilities (shorkutils)
SHORK Entertainment (shorktainment)
SHORK DISKETTE
SHORK DISKETTE is a specialised version of the SHORK 486 Operating System that is cut-down enough to fit on a 1.44MB floppy diskette. Only a subset of BusyBox commands and utilities and SHORK Utilities are available for it due to space constraints, and is only offered as a single-user (root) system with a small amount of persistent storage in /home. It is envisioned as a handy emergency Linux environment, diagnostic aid and CD-ROM boot disk.
Hardware requirements
- Processor:
- As standard: Intel 486SX or compatible (no FPU required)
- Can also configure for 486DX, 586, 586 TSC or 586 MMX for optimisation
- Memory: 16MiB RAM
- Diskette: 1.44 or 2.88MB
- Graphics: IBM EGA, VGA or compatible
- Monitor: 640x350 (EGA), 640x480 (VGA) or higher
- Keyboard: AT or PS/2
BusyBox
Base
ash, awk, basename, cat, chmod, clear, cp, date, dd, df, echo, expr,
free, grep, hostname, init, less, ln, ls, lsblk, mdev, mkdir, mount, mv,
printenv, printf, pwd, rev, rm, sed, sync, tee, test, touch, true,
umount, uname, vi
Block device support enabled
blkid, eject, fdformat, fdisk, fsck, mkdosfs/mkfs.vfat, mke2fs/mkfs.ext2
SHORK Utilities (shorkutils)
Building
SHORK 486, 586, DISC and DISKETTE do not presently have released compilations or media, so it must be compiled. The result are raw disk, disc or diskette images you can write to real hardware or use as-is in emulation or virtualisation software. Building may require up to ~9GiB of disk space. Please read “Notice & disclaimers” at the end of this readme before proceeding.
Configuration
Whilst you can build SHORK 486 proper immediately - which produces a SHORK 486 Mini build - it is recommended to first run the SHORK 486 Build Configurator (config.sh) whilst in the shork-486 directory to select SHORK 586, SHORK DISC or SHORK DISKETTE if needed, or to tailor SHORK 486/586 to your liking.
Native building
If you are using an Arch, Debian or Fedora-based Linux distribution, run build.sh whilst in the shork-486 directory. If you have not used the configurator, you will be prompted some questions to answer throughout the process. You will need to install some prerequisite packages, as listed below. If you are missing any, you will be prompted to install them - the build script can install them for you, or quit to allow you to review and install them manually. sudo is required for some parts such as mounting/umounting, creating/deleting loop devices, deleting stubborn result directories, and normalising result filesystem permissions.
Required Arch host packages
autoconf base-devel bc bison bzip2 ca-certificates cdrtools cmake cpio
dosfstools e2fsprogs flex fontconfig gettext git gperf grub libffi
libtool make meson multipath-tools nasm ncurses ninja pciutils pkgconf
python qemu-img syslinux systemd texinfo unzip util-linux wget
xorg-bdftopcf xorg-font-util xorg-mkfontscale xz
Required Debian host packages
autoconf autopoint bc bison bzip2 cmake e2fsprogs extlinux fdisk flex
fontconfig genisoimage gettext gettext-base git gperf grub-common
grub-pc isolinux kpartx libffi-dev libncurses-dev libtool libtool-bin
libxcb1-dev make meson nasm ninja-build pciutils pkg-config
python-is-python3 python3 qemu-utils syslinux texinfo unzip
uuid-dev wget xfonts-utils xz-utils
Required Fedora host packages
autoconf automake bc bdftopcf bison byacc cmake dialog docbook-utils-pdf
docbook2X dosfstools e2fsprogs flex fontconfig gcc genisoimage gettext
git gperf grub2-common grub2-pc kpartx libffi-devel libtool
libuuid-devel make meson mkfontscale nasm ncurses-devel ninja-build
patch perl pciutils python3 qemu-img sudo syslinux-extlinux
syslinux-nonlinux texinfo util-linux xorg-x11-font-utils
WSL building
If you are using Windows, SHORK can be built under Windows Subsystem for Linux 2, though it has only been tested with a Debian guest thus far. WSL1 is not supported as it cannot run 32-bit binaries (which is needed as the cross-compiler SHORK uses is 32-bit). See above for the required packages for the Linux guest.
Dockerised building
If you are using Windows, macOS (x86-64), a Linux distribution that has not been tested with native building, or want some kind of “sandbox” around the build process, you can try Dockerised building instead. It will create a Docker container with a minimal Debian 13 installation that is active for just the lifetime of the build process. You simply run docker-compose up.
Build process
The following outlines what the build script will typically do.
- Permissions for any existing build or result directories are checked and fixed if they are incorrect (ie, in case an interrupted build attempt left any with root-only permissions).
- Needed build and result directories are created if they do not exist.
- If a SHORK root filesystem generated by a previous build is present, it will be deleted so it does not pollute the new build.
- The user is prompted to choose if their host Linux system is Arch-, Debian-, or Fedora-based. (This is skipped if you used the Build Configurator or building through Docker.)
- Any missing host prerequisite packages are found and flagged, asking the user if they want the build script to install them now or quit so they can review and install them manually.
- Host-based toolchain component versions are checked in case there are any mismatches. If so, the build stops and the user is advised of the issues.
- An i486 GCC + musl cross-compiler toolchain is downloaded and extracted.
- BusyBox is downloaded and compiled. Any SHORK-specific patches are applied. The result is used as SHORK’s base root filesystem and userspace.
- ncurses and gpm are downloaded and compiled. ncurses’
tic utility may also be compiled if not SHORK 486/586 Micro, SHORK 486/586 Mini, SHORK DISC or SHORK DISKETTE.
- The Linux kernel is downloaded and compiled. Any SHORK-specific patches are applied. If SHORK 486/586, any potential kernel modules are also compiled.
- All desired SHORK Utilities, SHORK Entertainment and bundled software, required libraries, and fonts are downloaded and compiled.
- Any non-essential files (documentation, man pages, templates, etc.) post bundled software compiling will be trimmed to save space
- All licences for SHORK’s components and bundled software are copied to the root filesystem.
- Building the root filesystem continues. Any further required subdirectories are created, and any required system files and default configuration files are copied. Keymaps, the PCI IDs database, and (if SHORK DISC) payload are also copied at this point.
- If building a multi-user system, specific permissions are applied to files in the root filesystem to ensure sensitive executables can only be run by root,
sudo, etc.
- If SHORK DISKETTE, the root filesystem is compressed into a
.cpio.lzma archive.
- If the patched EXTLINUX/ISOLINUX/SYSLINUX option was enabled, SHORK’s fork of SYSLINUX is downloaded and compiled.
- If SHORK 486/586 and using EXTLINUX, the right MBR binary is found in the host’s filesystem.
- The result disk (SHORK 486/586), disc (SHORK DISC) or diskette (SHORK DISKETTE) image is created, and the kernel, root filesystem and bootloader are installed to it.
- An after-build report is generated and (if SHORK 486/586) copied to the result image.
- If SHORK 486/586, qemu-img is used to produce a VMware virtual machine disk based on the result image.
- The same permission checks and fixes from the start are run again to ensure no root-only permissions are left behind.
- Any stale mounts and block device mappings left by image builds are cleaned up.
After building
Once built, one or more disk images and an after-build report (report.txt) should be present in the images folder. The possible images are as follows:
shork-486.img/shork-586.img: Can be used as-is with PC emulation software like 86Box or written to a real disk using (e.g.) dd.
shork-486.vmdk/shork-586.vmdk: Can be used as-is with VMware Workstation/Player or VirtualBox.
shork-disc.iso Can be used as-is as an inserted optical disc on most PC emulation and virtualisation software or burned to a real disc.
shork-diskette.img Can be used as-is as an inserted floppy diskette on most PC emulation and virtualisation software or written to a real diskette using (e.g.) dd.
It is recommended to move or copy the images out of this directory before extensive or serious use because they will be replaced if the build process is rerun. The after-build report is provided to confirm whether the build was completed as intended. It confirms the type of build made, the time it took to create, the minimum system memory requirement, some handy disk/disc/diskette image statistics, and which programs or features are included or excluded.
Scripts & configuration
-
build.sh: Contains the complete download and compilation process that produces a working SHORK system on two disk images.
-
config.sh: Contains an interactive configurator used to tailor SHORK to your liking before building.
-
clean.sh: Deletes anything that was downloaded, created or generated by build.sh.
Build configuration
When running the SHORK 486 Build Configurator, you will be prompted to select the following:
- Build environment (Arch native, Debian native/Dockerised or Fedora native)
- Target distribution (SHORK 486/586, SHORK DISC or SHORK DISKETTE)
- If SHORK 486/586:
- Build type (default, max, plus, writer, terminal, offline, mini, micro or custom)
- Target disk size (size in MiB, max 102400MiB)
- If target disk size is more than or equal to 20MiB:
- Separate boot partition (yes/no)
- Swap partition size (size in MiB, max 64MiB)
- If not “Micro” or “Mini” build type selected:
- If SHORK DISKETTE:
- Target diskette size (1.44MB or 2.88MB)
- Target architecture (486SX, 486DX, 586, 586TSC or 586MMX)
- Linux kernel version (7.4-rc5, 7.3.7, 7.2.15, 7.1.13 or 7.0.14)
- Keyboard scancode set (skip, set 2 or set 3)
- If SHORK 486/586:
- If not “Micro” or “Mini” build type selected:
- Keyboard layout (keymap) (single choice)
- Symmetric multiprocessing support (yes/no)
- If “Custom” build type selected:
- Ethernet networking support (yes/no)
- If SHORK DISKETTE:
- Block Device support (yes/no)
- Patched [EXT/ISO/SYS]LINUX (yes/no)
- Hostname (text input)
- If SHORK 486/586:
- If not “Micro” or “Mini” build type selected:
- Multi-user support (yes/no)
- Root password (text input)
- Serial console mode (yes/no)
- Serial console port (text input)
- If “Custom” build type selected:
- Bundled software (multiple choice)
- Options (all other configuration) (multiple choice)
- If DOS emulation included:
- Bundled FreeDOS environment (yes/no)
Below are further explanations for options that could not fit into the configurator itself.
Separate Boot Partition
Selecting “Yes” here will add a separate 4MiB (EXTLINUX) or 16MiB (GRUB) boot partition to the start of the resulting disk drive image, which is where the bootloader and the Linux kernel image will be installed to instead of into the root partition. Some BIOSes before the mid-1990s do not support reading beyond 1024 cylinders via their INT13h calls, which when given 16 heads and 63 sectors, results in a ~504MiB (~528MB) maximum readable disk size. The boot process relies on such calls to read the bootloader and kernel image from the disk, thus, it is important that both components are within the first 1024 cylinders in order to be read. When given just one large root partition, these components could be physically stored anywhere on the disk, including outside this boundary. Once loaded, Linux is not bound by the same limitation, as it uses its own disk drivers rather than BIOS calls. As such, if your target disk image is 505MiB or larger, it is recommended to say “yes” here.
Keyboard Scancode Set
Allows you to specify an IBM scancode set for SHORK to request. For most AT and PS/2 keyboards, this is likely not needed and can be skipped. But some specific keyboards or computers with integrated keyboards have been known to require a specific one.
- Skipping is typically recommended as most 486 and 586 era keyboards should work as-is.
- Set 2 is what all AT keyboards are limited to, and should also be supported by a compliant PS/2 keyboard.
- Set 3 is what many '80s and '90s IBM Display Station keyboards (315X, 316X, 3179, 3180, 319X, 3270 PC, 3290-2 and InfoWindow) are limited to, and should also be supported by a compliant PS/2 keyboard. The following are also known to require set 3:
Symmetric Multiprocessing Support
Selecting “Yes” here will enable symmetric multiprocessing (SMP) support in SHORK 486/586. It allows SHORK 486/586 to take advantage of multi-socket, multi-core and/or multi-threaded systems, useful if you intend to run SHORK 486/586 on a multi-socket Intel Pentium system or on much newer hardware. It may add ~1-2MiB to idle memory usage, meaning SHORK 486/586’s physical memory requirement should be considered raised by ~2MiB unless the same amount or more swap memory is present. SHORK 486/586 with SMP support can still run on single-thread systems.
Ethernet Networking Support
Selecting “Yes” here will enable ethernet networking support in SHORK 486/586. BusyBox will include many relevant networking utilties and daemons. If making a custom build, you will be allowed to select bundled software and options that require an internet connection in the subsequent prompts.
Multi-User Support
Selecting “Yes” here will enable multi-user and password-protected user support in SHORK 486/586. BusyBox will include many relevant user management utilities, and the sudo package (sudo, sudoedit and visudo) will be included. You will be asked to input a root password in the following prompt.
Patched [EXT/ISO/SYS]LINUX
EXTLINUX (SHORK 486/586), ISOLINUX (SHORK DISC) and SYSLINUX (SHORK DISKETTE) are the default bootloaders used for the SHORK 486 Operating System. Selecting “Yes” here will tell the build script to use my forked SYSLINUX repository instead of your host Linux distribution’s maintained packaged version. This version addresses a memory detection error to resolve the “Booting kernel failed: Invalid argument” or boot menu looping issue that the stock EXTLINUX/SYSLINUX may encounter with some BIOSes when attempting to boot the kernel with.
- Some people need this, some people do not - see the list below, or try without first, then enable this if this error or something like it occurs.
- Known hardware that need this includes: Chicony NB5 & derivatives, HP OmniBook 800CT, IBM 2625 ThinkPad 365E/365ED, IBM 6381 PS/ValuePoint
- If you discover more hardware that needs this, please get in touch so I can update this list for future users!
- This may significantly increase total build time, but it does not affect system requirements.
- The patch was discovered by akeym - thank you!
- Note: If enabled and making a custom build, the option to use GRUB 2.x instead of EXTLINUX offered later will be ignored.
Bundled Software
-
dosemu2: Adds dosemu2 to provide a DOS emulation environment. Currently, SHORK’s inclusion of it is useful only for text-mode DOS applications - trying to run a graphics-mode application will likely crash, but work to address this is underway. It ideally requires 20MiB RAM, or at least 16MiB RAM with 4MiB swap. Efforts to bring this memory requirement down are also underway.
- dosemu2’s inclusion is an experimental feature - expect quirks and incompleteness!
- Including dosemu2 will also give you the option to include a bundled FreeDOS environment for it toward the end of the Build Configurator. It includes the FreeDOS kernel, COMMAND.COM, DEBUG.COM, EDIT.EXE, MEM.EXE, MORE.EXE, MOVE.EXE and XCOPY.EXE (total ~0.5MiB).
- If you decline the aforementioned option, you will need to install or provide your own DOS. To help with this, you can create the
shork-486/payload/drive_c directory and copy a complete DOS installation into it, so that it will be subsequently copied into the final hard disk image for you. This directory is not deleted or modified by the build process, so it is safe to keep files in it across multiple builds.
-
dosfstools: Adds utilities for creating, inspecting and maintaining FAT12, FAT16 and FAT32 filesystems.
- Note: If included, BusyBox’s
mkdosfs/mkfs.vfat implementation will be disabled in favour of dosfstools’.
-
e2fsprogs: Adds utilities for creating, inspecting and maintaining ext2, ext3 and ext4 filesystems.
- Note: If included, BusyBox’s
blkid, chattr, fsck, lsattr, mke2fs/mkfs.ext2, tune2fs and uuidgen implementations will be disabled in favour of e2fsprogs’.
-
file: Adds the file command, which can identify a file’s type by checking its contents against a database of possible magic signatures. Due to the size of said database, 16MiB RAM is required for it to work correctly.
-
gcc: Adds the GCC’s C, C++ and Fortran compiler, musl C standard library and GNU Bintuils. Using g++ requires more system memory than usual, hence it is not included by default. Memory requirements are ideally 32MiB system memory if no swap partition, 24MiB with 8MiB swap or 16MiB with 16MiB swap.
- Note: If included, BusyBox’s
ar and strings implementations will be disabled in favour of GNU Binutils’.
-
midnight-cmdr: Adds the GNU Midnight Commander file manager. It presently has a hard dependency on networking, but making this optional is planned. Memory requirements are ideally 16MiB with 4MiB swap.
-
nbsdgames: Adds a pack of 22 ncurses-based games. It includes battleship, checkers, darrt, fifteen, fisher, jewels, memoblocks, miketron, mines, muncher, pipes, rabbithole, redsquare, revenge, reversi, scissor, sjump, snakeduel, sos, sudoku, trsr, and tugow. They require at least 12MiB RAM.
-
perl: Includes the Perl general-purpose scripting language interpreter. Using Perl independently or Perl-based tools like GNU Autoconf or Automake require ideally 24MiB RAM, or at least 16MiB RAM with 8MiB swap.
-
shorkgui: Includes SHORK 486/586’s graphical environment (“SHORKGUI”). It’s comprised of the TinyX display server, TWM window manager, various supporting X11 utilities, st terminal emulator, and the shorkgui utility.
- SHORKGUI is an experimental feature - expect quirks and incompleteness!
- As it is subject to big changes, the system requirements are not set in stone. But the following should provide a usable experience for now:
- IntelDX4 (ideally; 486SX, 486DX, etc. work but are very slow)
- 24MiB physical memory
- A display card supported by either
vga16fb or vesafb framebuffer drivers
-
shorktainment: Includes the SHORK Entertainment programs bundle: shorklocomotive, shorkmatrix, shorkmines, and shorksay.
-
vim: Adds the Vi IMproved (Vim) text editor. Some of its features like syntax highlighting seem be memory-intensive for 486-era levels of RAM, so memory requirements are ideally 32MiB system memory if no swap partition, 24MiB with 8MiB swap or 16MiB with 16MiB swap.
- Note: If included, BusyBox’s
xxd implementation will be disabled in favour of Vim’s.
Options
-
fb: Adds vesafb and vga16fb framebuffer support and enables BusyBox’s fbset and fbsplash implementations. This allows a framebuffer device to be created when supported hardware is present, which in turn allows an X server to run, and gives applications per-pixel read/write capabilities. shorkset will also be able to offer VBE-style resolutions for vesafb, and other framebuffer-specific settings.
-
grub: Uses a GRUB 2.x bootloader instead of EXTLINUX. GRUB may be more familiar to modern Linux users, but it requires approximately 12MiB more space than EXTLINUX. The build script overrides this option if you said “Yes” to using SHORK’s patched fork of EXTLINUX.
-
highmem: Adds kernel-level high memory support and declares that non-reserved physical memory starts at 16MiB instead of 1MiB. In general, this is provided in case someone wanted to try SHORK 486/586 on a more modern system with more than 875MiB RAM. It is not needed for most '90s hardware. Its RAM requirements are 24MiB with no swap partition or 16MiB with 8MiB swap.
-
no-vdso32: Adds vdso32=0 to the Linux kernel command line to disable 32-bit vDSO and its SEP-based (SYSENTER/SYSEXIT) syscall path in favour of the universal int $0x80. This is enabled by default as it does not affect 486/586 performance but prevents a kernel panic with Intel Pentium Pro and Socket 8 Pentium II OverDrive processors that report SEP via CPUID but in fact do not work with it. If you plan to use SHORK 486/586 on ‘real’ Intel Pentium II or newer processors, you can disable this for a marginal performance gain.
-
pci.ids: Includes a database of graphics card PCI vendor and device IDs. It is safe to exclude it, but shorkfetch will not be able to identify any installed graphics cards.
-
pcmcia: Adds kernel-level CardBus/PCMCIA/PC Card support. It is primarily needed to support PCMCIA-based network controllers for laptops or unique desktop PCs like the IBM PS/2 E. For most desktop PCs, it is safe to exclude it.
-
sata: Adds kernel-level SATA AHCI support. This is provided in case someone wanted to try SHORK 486/586 on a more modern system with SATA devices, or has installed a PCI-based SATA controller in a '90s system. It is not needed for most '90s hardware. Its RAM requirements are 24MiB with no swap partition or 16MiB with 8MiB swap.
-
usb: Adds kernel-level USB and HID support and enables BusyBox’s lsusb implementation. This is provided in case someone wanted to try SHORK 486/586 on a system with USB peripherals and/or mass storage devices.
Build automation
These build script parameters are provided to help automate its use, especially for successive runs. It is useful if you want to rebuild SHORK when the only differences are changes to sysfiles or the target disk image and swap partition sizes, and not to the kernel, selected bundled programs or features. It is not recommended to use the “skip BusyBox” or “skip kernel” parameters when making a build after running the build configurator or pulling any updates from the SHORK 486 GitHub repository, as it results in using stale compilations that do not reflect configuration or repository changes.
-
Always (re)build (--always-build): Used to ensure the kernel is always (re)built. This will skip the prompt that appears if the kernel is already downloaded and built, acting like the user selected the “Reset & clean” option.
- This does nothing if the “skip kernel” parameter is also used.
-
Is Arch (--is-arch): Used to skip the host Linux distribution selection prompt and the build script will assume it is running on an Arch-based system.
-
Is Debian (--is-debian): Used to skip the host Linux distribution selection prompt and the build script will assume it is running on a Debian-based system.
-
Is Fedora (--is-fedora): Used to skip the host Linux distribution selection prompt and the build script will assume it is running on a Fedora-based system.
-
Skip BusyBox (--skip-busybox): Used to skip recompiling BusyBox.
- This parameter requires at least one complete build.
-
Skip kernel (--skip-kernel): Used to skip recompiling the kernel.
- This parameter requires at least one complete build.
Directories
-
build: Contains the source code repositories, the root filesystem and the kernel image downloaded or made by the build process.
- Created after a build attempt is made.
- Do not directly modify or add files to this directory, as its contents may be deleted and recreated upon running the build script again.
-
configs: Contains configuration files used when compiling certain software, most notably SHORK’s tailored Linux kernel and BusyBox .config files.
-
images: Contains the result raw disk images and an after-build report created by the build process.
- Created after a build attempt is made.
-
patches: Contains diff patches for the Linux kernel, BusyBox and other bundled software to restore removed functionality and/or implement new functionality required for SHORK.
-
payload: A place to put files you wish to bundle into a SHORK DISC image.
-
release: (TODO)
-
shorkutils: Contains custom SHORK Utilities to be copied into the root filesystem. (Deprecated)
-
sysfiles: Contains important system files to be copied into the root filesystem.
Notice & disclaimers
Building SHORK
Running build.sh directly for natively building SHORK will automatically perform several tasks on the host computer and operating system, including installing prerequisite host packages, downloading several gigabytes of required source code, modifying PATH, and creating some environment variables. I would advise you review what the script does to ensure it does not conflict with your existing configuration. Consider Dockerised building to minimise impact to your host operating system.
Running clean.sh will delete everything build.sh has downloaded, created or generated; the build and images directories and their contents. If you have made any manual changes to anything inside those directories, they will be lost when running this shell script.
Using SHORK
When built as a single-user system or a multi-user system with no additional users, you will be the root user when using SHORK. Make sure to act accordingly, and use it considerately and responsibly.
Generative AI policy
The SHORK 486 Operating System is developed under a policy of no LLM-generated code or documentation, and no AI-generated images. PR requests that contain contributions from an LLM bot or are obviously LLM-generated will be denied. I cannot vouch this for third-party libraries, or that the tutorials and sources I may be reading weren’t influenced by generative AI content unbeknownst to me, but I will do my best to recognise such and ensure this doesn’t affect the things I control. Whatever your views on this subject, I ask that you respect my wish for the SHORK family (SHORK itself, SHORK Utilities and SHORK Entertainment) to be free of such influence as far as is humanly possible.
Acknowledgements
- FLOPPINUX (CC0-1.0) was the starting point for the SHORK project. It is a great idea and a fun way to learn how to set up your first small Linux system.
- This product includes software developed by Andrés Martinelli [email protected] (sc-im).
评论