Installing Inferno on Debian amd64

by loonattic

Inferno, now open source, was a commercial attempt at applying the Plan 9 operating system’s concepts. It runs on top of the virtual machine Dis.

A source tarball can be downloaded from here.

More up-to-date source from the development branch can be found here

(It has had a lot of changes since 2010).

NOTE: Extract the tarball to /usr so it ends up in /usr/inferno. Inferno doesn’t currently support amd64 on Linux (only on Plan 9 as a host OS), so it has to be compiled for 32-bit Linux.

# dpkg --add-architecture i386
# aptitude update
# aptitude install libxext-dev:i386 libxpm-dev:i386 \
      x11proto-xext-dev:i386 gcc-multilib build-essential

For newer versions of GCC, on both the Google Code version and the Vita Nuova tarball, the -fno-omit-frame-pointer compiler flag is needed because the assembly support code for 386 Linux requires frame pointers [1].

So, after extracting the tarball and cd'ing into its root,

$ ed mkfiles/mkfile-Linux-386
/CFLAGS
s/\\$/ -fno-omit-frame-pointer\\ 
.
w
q

…to add -fno-omit-frame-pointer to the CFLAGS.

Edit mkconfig. Set SYSHOST to Linux, OBJTYPE to 386.

Run:

$ ./makemk.sh
$ mk install
$ Linux/386/bin/emu -g1280x800
; wm/wm

And you’re probably done. Feel free to post in the forums if you have any trouble getting it compiled.

[1] http://comments.gmane.org/gmane.os.inferno.general/5305


Comments

By: Glenda (Mon Dec 14 17:18:55 EST 2015)
You need to set your PATH so the mk you compile is in it. Other than that, it works.