Achtung
This page assumes you are on Debian. You may have luck with other
distributions, but installing the i386 dependencies is likely to be a
different process. It is assumed you already have a basic development
environment (e.g. apt install build-essential on
Debian).
Enable i386 architecture and install dependencies
dpkg --add-architecture i386
apt update
apt install libx11-dev:i386
apt install libxext-dev:i386
Grab a copy of purgatorio
- Git
git clone https://github.com/9mirrors/purgatorio
- Mercurial
hg clone http://code.9front.org/hg/purgatorio
- After cloning,
cd purgatorio.
Setup mkconfig
- Change
ROOTto where you have purgatorio cloned.- In my case, I have purgatorio in
~/.local, soROOTis set to$HOME/.local/purgatorio.
- In my case, I have purgatorio in
Set PATH
export PATH=$PATH:$(pwd)/Linux/386/bin
Make mk and install
./makemk.sh
mkdirs
mk nuke
mk install
./makemk.shbuildsmk, needed to actually build purgatorio.mkdirscreates necessary directories.mk nukecleans everything up first.mk installbuilds and installs purgatorio.
Create home folder
cp -r usr/inferno usr/$USER
emu alias
- In your shell's profile/rc, it might be a good idea to add an alias
to run emu as your user with the options you'd like.
- Example:
alias purg='PATH=$HOME/.local/purgatorio/Linux/386/bin emu -r$HOME/.local/purgatorio -c1 /dis/sh.dis -c "wm/wm wm/logon -u $USER"'. -c1enables the JIT.- You can add options such as
-g1366x768afteremuto change the resolution.
- Example:
emu script
- You may also wish to use a script instead of an alais so you can
pass options to
emuat runtime.- Example:
echo PATH=\$HOME/Projects/purgatorio/Linux/386/bin emu \$* -r\$HOME/Projects/purgatorio -c1 /dis/sh.dis -c "wm/wm wm/logon -u \$USER" > purg && chmod +x purg.- This way, you could run
./purg -g1024x768in order to run purgatorio at 1024x768.
- This way, you could run
- Example:
wmsetup
- When
emuimmediately runswm/wmin this way, the global profile/lib/sh/profileisn't run. It might be a good idea to run it within your user'swmsetupfile (/usr/$USER/lib/wmsetup). - You may also wish to start factotum (the authentication agent).
- Example:
run /lib/sh/profile auth/factotum auth/feedkey
