iMac G3 as a retro game station

Hardware

iMac G3 500MHz Snow White (bought off eBay for £5)
original keyboard, Pro Mouse - a gift
joystick - Tracer TRJ-200 Defender (Christmas gift, worth about £10)
PRAM battery (ntp) (bought off Amazon for £4)
RAM upgraded to 2x256MB PC133 SDRAM (3x256MB bought off eBay for £3)
USB WiFi (bought off eBay for £7)

Linux

Boot loader

/etc/yaboot.conf
ybin -v

Kernel

compilation with default .config - more than 5 hours! No difference in size nor booting time…

Update package database and install required packages:

apt-get update
apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 build-essential

Compile the kernel, change the directory to ///usr/src/appropriate_

make clean && make mrproper
cp /boot/config-`uname -r` ./.config
make menuconfig
make-kpkg clean
fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers
dpkg -i linux-image-2.6.21.3-custom_2.6.21.3-custom-10.00.Custom_i386.deb
dpkg -i linux-headers-2.6.21.3-custom_2.6.21.3-custom-10.00.Custom_i386.deb

Display

I had problems with xorg.conf, the one that worked for me was taken from here and looks like this:

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "macintosh"
Option "XkbLayout" "fr"
Option "XkbVariant" "latin9"
Option "XkbOptions" "lv3:rwin_switch"
endSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
EndSection

Section "Device"
Identifier "Configured Video Device"
#Option "UseFBDev" "true"
Option "CCEusecTimeout" "100000"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
HorizSync 43-62
VertRefresh 74-118 
# ModeLine "1024x768" 78.75 1024 1044 1140 1328 768 781 784 820 +hsync +vsync
ModeLine "800x600" 62.40 800 821 901 1040 600 609 612 644 +hsync +vsync
Modeline "640x480" 49.90 640 657 721 832 480 481 484 514 +hsync +vsync
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
DefaultDepth 24
Subsection "Display"
Modes "1024x768" "800x600" "640x480"
EndSubsection
EndSection

Section "Module"
Disable "dri"
EndSection

I've only changed the default resolution to 800x600

Modes "800x600" "640x480" "1024x768"

Fluxbox

shutdown

Mouse

I was given Apple Pro Mouse (thanks Conrad!), so I decided to use it. I often use middle button for copy-paste and the mouse has only one button. The solution is to emulate middle- and right-click with mouseemu using key modifiers. I am using left and right Apple key because Warlords II already uses shift, ctrl and alt. My /etc/default/mouseemu looks as follows:

MID_CLICK="-middle 126 272"  # Right Apple Key + click
RIGHT_CLICK="-right 125 272" # Left Apple Key + click

For some reasons Fluxbox (window manager) doesn't recognize the emulated Mouse2 and Mouse3, so I changed $HOME/.fluxbox/keys to:

OnDesktop Mouse1 :RootMenu
#OnDesktop Mouse1 :HideMenus
#OnDesktop Mouse2 :WorkspaceMenu
#OnDesktop Mouse3 :RootMenu
#OnDesktop Mouse4 :NextWorkspace
#OnDesktop Mouse5 :PrevWorkspace

Joystick

todo

802.11g

kernel
usb
/etc/modules.conf
rtl8187
54M
networking
avahi - resolv.conf

Emulators

DOS

dosbox - Warlords II works in fullscreen mode (in native resolution 640x480).

C64

vice - sound problems
required files downloaded from here

MAME

mame - works

ZX Spectrum

zxspectrum - works

ToDo

To Do:

  • SCREENSHOTS
  • make PR3 (Polish Radio) work
  • find nice way to play this station (maybe a dockapp?)
  • sound mixer (dockapp)
  • try to install Flash equivalent
  • sound issues in dosbox, vice, mame
  • separate page with mame games (most of them from http://www.ankman.de/mame/)
  • try to build fuse (another zxspectrum emu)
  • opera
  • Warlords ][ (1.07?)
  • OpenTTD
  • Scorched Earth readme

Games

Joystick:

WiFi:

*

O ile nie zaznaczono inaczej, treść tej strony objęta jest licencją Creative Commons Attribution-Share Alike 2.5 License.