Play Rick Dangerous, Play xrick

June 5, 2026    Blog Post

Rick Dangerous

You may remember game Rick Dangerous released in 1989 by Core Design. It was relesed on platforms like Amiga, Amstrad CPC, Atari ST, Acorn Archimedes, Commodore 64, ZX Spectrum, SAM Coupé, MS-DOS as was very popular. I used to play this game when I was a teenager and recently I was wondering if there was a copy I could play on Linux. This is how I found xrick.

xrick is a Rick Dangerous game clone that runs on Linux, Windows, BeOs, Amiga, QNX, all kinds of game consoles… If you want to know more about this clone or its configuration, visit its main page https://www.bigorno.net/xrick.

The xrick source code was last updated in 2002 and the compiled binary available on the website is designed for 32-bit systems. However, I’ve found that compiling from source on modern 64-bit Linux works without problems.

Compiling

Compiling directly on your Linux

I work on Linux Mint so below steps should works on any Debian/Ubuntu based systems.

  • Install required packages
    sudo apt-get install -y build-essential libsdl1.2-dev libsdl1.2debian zlib1g-dev imagemagick wget
    
  • Download xrick sources
    wget https://www.bigorno.net/xrick/xrick-021212.zip && tar zvxf xrick-021212.zip && cd xrick-021212
    
  • Make some source code and Makefile adjastments
    These are based on information published by xrick package maintainer for Arch Linux.

    Add build flags and gcc10+ fix.
    sed "s|CFLAGS=|CFLAGS+=-fcommon |;s|LDFLAGS=|LDFLAGS+=|" -i Makefile
    

    Fix format-security.

    sed 's|printf(s)|printf("%s\\n", s)|' -i src/system.c
    
  • Create xrick desktop icon
    convert src/xrickST.ico xrick.png
    
  • Compile
    make
    

    After sucesfull compilation, you should get xrick file in directory.

Compiling using Docker

  • Install Docker if you don’t have it
  • Find version/codename of your system
    $ lsb_release -a
    No LSB modules are available.
    Distributor ID:	Ubuntu
    Description:	Ubuntu 24.04.4 LTS
    Release:	24.04
    Codename:	noble
    

    or on systems based on Ubuntu

    $ cat /etc/upstream-release/lsb-release
    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=24.04
    DISTRIB_CODENAME=noble
    DISTRIB_DESCRIPTION="Ubuntu Noble Numbat"
    

    In this situation (mine situation), base Ubuntu system have version 24.04 and its codename is noble.

  • Create xrick directory
    mkdir xrick
    cd xrick
    
  • Building script
    Place below build script into the file buildxrick.sh. This script will do all nesesary job.
#!/bin/bash

XRICK_VER=021212

# install required dependencies
DEBIAN_FRONTEND=noninteractive apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential libsdl1.2-dev libsdl1.2debian zlib1g-dev imagemagick wget

# get sources
cd /
wget https://www.bigorno.net/xrick/xrick-$XRICK_VER.tgz && tar zvxf xrick-$XRICK_VER.tgz && cd xrick-$XRICK_VER

# add our build flags and gcc10+ fix
sed "s|CFLAGS=|CFLAGS+=-fcommon |;s|LDFLAGS=|LDFLAGS+=|" -i Makefile
 # fix format-security
sed 's|printf(s)|printf("%s\\n", s)|' -i src/system.c

# create icon
convert src/xrickST.ico xrick.png

# build
make

cp xrick data.zip xrick.png KeyCodes README /xrick
chown -R $UUID:$GGID /xrick/
echo "Build done !!!"
  • Start build script
    docker run -it --rm -v $PWD:/xrick -e UUID=$(id -u) -e GGID=$(id -g) ubuntu:noble /xrick/buildxrick.sh
    

After sucesfull compilation, you should get xrick file in directory with additional files rquired by game.

Game luncher

In both situations, you can create desktop luncher and use previously created icon to make it looks nice. As Command in luncher configuration you should use something like this:

sh -c "cd /path_to_directory/xrick && ./xrick"

or

sh -c "cd /path_to_directory/xrick-021212 && ./xrick"

Starting xrick

To start xrick game, go to xrick-021212 or xrick directory and run ./xrick.