User Tools

Site Tools


linux

How to Hack Metroid on Linux

FAQ

Minimum Requirements

Requires wine 10.x and winetricks. If your distro's Wine is too old, install it from Wine HQ instead.

Why all the wineprefixes?

Having separate wineprefixes for each windows program is ideal.

Metroid (1986): Editroid

  1. Download and Extract Editroid
  2. creating separate wine prefixes is ideal. create an editroid wine prefix: WINEPREFIX=~/.wine_editroid winecfg
  3. save this shell script next to Editroid.exe:
run_editroid.sh
#!/bin/bash
WINEPREFIX=~/.wine_editroid ./Editroid.exe

give the shell script and Editroid execution permissions so you can double-click/hit enter on the script to run it:
chmod +x run_editroid.sh Editroid.exe

from now on, use the shell script to launch Editroid, because this will use the correct Editroid wine prefix. If you try to run the EXE directly, it will use the default wine prefix, which is a no-no.

Metroid II: LAMP

Download and Extract LAMP. for best results grab LAMP 32-bit (x86), since 64-bit wine is still experimental
Next, either use the helper script, or follow the steps below

LAMP Helper Script

wine_lamp_helper.sh
#!/bin/bash
BITS=64
WINEPREFIX=~/.wine_lamp
 
export WINEPREFIX
# create wine prefix if it doesn't exist
if [ ! -e "$WINEPREFIX" ]; then
    wine hostname
fi
cd $WINEPREFIX
 
if [ "$BITS" = "64" ]; then
    export WINEARCH=win64
 
    # download LAMP and the .NET 6 runtime if we don't have them already
    if [ ! -f "$WINEPREFIX/LAMP.64bit.exe" ]; then
        wget https://builds.dotnet.microsoft.com/dotnet/WindowsDesktop/6.0.36/windowsdesktop-runtime-6.0.36-win-x64.exe
        wine windowsdesktop-runtime-6.0.36-win-x64.exe
        wget https://github.com/LAMP-Platform/LAMP/releases/download/Beta/LAMP.64bit.exe
    fi
 
    # launch LAMP
    wine LAMP.64bit.exe $@
else
    # download LAMP and the .NET 6 runtime if we don't have them already
    if [ ! -f "$WINEPREFIX/LAMP.32bit.exe" ]; then
        wget https://builds.dotnet.microsoft.com/dotnet/WindowsDesktop/6.0.36/windowsdesktop-runtime-6.0.36-win-x86.exe
        wine windowsdesktop-runtime-6.0.36-win-x86.exe
        wget https://github.com/LAMP-Platform/LAMP/releases/download/Beta/LAMP.32bit.exe
    fi
 
    # launch LAMP
    wine LAMP.32bit.exe $@
fi

64-bit LAMP

  1. Create a wine prefix for LAMP: WINEARCH=win64 WINEPREFIX=~/.wine64_lamp winecfg
  2. install .NET 6.0 Desktop Runtime with your LAMP wine prefix: WINEARCH=win64 WINEPREFIX=~/.wine64_lamp winetricks dotnetdesktop6
  3. save this shell script next to LAMP.64bit.exe:
run_lamp.sh
#!/bin/bash
WINEARCH=win64 WINEPREFIX=~/.wine64_lamp ./LAMP.64bit.exe

give the shell script and LAMP execution permissions so you can double-click/hit enter on the script to run it: chmod +x run_lamp.sh LAMP.64bit.exe

from now on, use the shell script to launch LAMP, because this will use the correct LAMP wine prefix. If you try to run the EXE directly, it will use the default wine prefix, which is a no-no

Super Metroid: SMART

Download SMART.
(optional) SMILE RF
(optional) ASAR

  1. download and extract the latest beta of SMART: bsdtar -x -v -f SMART.2.0.9342.15795.zip
  2. Create a SMART wineprefix: WINEPREFIX=~/.wine_smart winecfg
  3. Install .NET 8 desktop runtime to your SMART wine prefix: WINEPREFIX=~/.wine_smart winetricks dotnetdesktop8
  4. (Optional) install VB6 to your SMART wineprefix for smile RF support. WINEPREFIX=~/.wine_smart winetricks vb6run
  5. using a text editor, create a shell script (*.sh) to launch SMART. save it in the same directory as SMART.
run_smart.sh
#!/bin/bash
WINEPREFIX=~/.wine_smart ./SMART.exe

give the shell script and SMART execution permissions so you can double-click/hit enter on the script to run it:
chmod +x run_smart.sh SMART.exe

from now on, use the shell script to launch SMART, because this will use the correct SMART wine prefix. If you try to run the EXE directly, it will use the default wine prefix, which is a no-no

GBATroids: MAGE Themes

  1. Download and Extract MAGE Themes.
  2. make a MAGEThemes wineprefix: WINEARCH=win64 WINEPREFIX=~/.wine64_mage winecfg
  3. install .net 6 desktop runtime: WINEARCH=win64 WINEPREFIX=~/.wine64_mage winetricks dotnetdesktop6
  4. obtain the microsoft sans serif font micross.ttf, extract, and put it in your 64 bit wineprefix's fonts folder (drive_c/windows/fonts)
  5. create a shell script that sets the proper wineprefix and 64-bit for launching mage:
run_mage.sh
#!/bin/bash
WINEARCH=win64 WINEPREFIX=~/.wine64_mage ./mage.exe

give the shell script and MAGE execution permissions so you can double-click/hit enter on the script to run it:
chmod +x run_mage.sh mage.exe

from now on, use the shell script to launch MAGE, because this will use the correct MAGE wine prefix. If you try to run the EXE directly, it will use the default wine prefix, which is a no-no

linux.txt · Last modified: by felixwright