OK, I solved my problem. I had to adopt and adapt an excerpt of the ConTeXt Standalone instructions for Ubuntu. This is a bit weird, since LMDE is not based on Ubuntu at all. Conversely, Ubuntu sure is derived from Debian.
Here is the complete recipe:
sudo mkdir /opt/context
sudo chown $USER -R /opt/context
cd /opt/context
rsync -av rsync://contextgarden.net/minimals/setup/first-setup.sh .
sh ./first-setup.sh
sudo mkdir /var/cache/context
sudo mkdir /var/cache/context/texmf-cache
sudo chmod 777 /var/cache/context/texmf-cache
nano ./tex/texmf/web2c/texmfcnf.lua
Change the value of TEXMFCACHE from "$SELFAUTOPARENT/texmf-cache" to "/var/cache/context/texmf-cache", save and close.
So far, this was all pretty standard procedure. Now comes the Debian-specific bit.
Open the following file in your favourite editor:
sudo nano /etc/bash.bashrc
At the end of this file, add the following lines in this specific order:
export OSFONTDIR=~/.fonts:/usr/share/fonts
export TEXROOT=/opt/context/tex
export PATH="/opt/context/tex/texmf-linux-64/bin:/opt/context/bin:$PATH"
Leave out the "-64" if you are using a 32-bit system.
Save and close, then issue the following commands at the prompt:
source /etc/bash.bashrc
sh ./first-setup.sh --modules=all
Check with context --version
mtx-context | ConTeXt Process Management 0.60
mtx-context |
mtx-context | main context file: /opt/context/tex/texmf-context/tex/context/base/context.mkiv
mtx-context | current version: 2013.09.09 19:45
wget http://minimals.contextgarden.net/setup/first-setup.sh && chmod +x first-setup.sh && ./first-setup.sh && . tex/setuptex– Marco Sep 09 '13 at 16:38setuptexis searching in vain for/texmf/tex/plain/base/plain.tex. – Serge Stroobandt Sep 09 '13 at 18:13find . -name plain.texin/opt/contextgives./tex/texmf/tex/plain/base/plain.tex– Serge Stroobandt Sep 09 '13 at 18:45/opt/context/tex/texmf/tex/plain/base/plain.texinstead of/texmf/tex/plain/base/plain.tex. Try. tex/setuptex tex. Which shell are you using? – Marco Sep 09 '13 at 18:50. tex/setuptex texand the like before; it does not help. I am usingbash. Where would theTEXROOTpath be defined? – Serge Stroobandt Sep 09 '13 at 18:56setuptexand usually determined automatically or constructed from the optional argument. What does. tex/setuptex texoutput (you can update your question)? And what doescontext --versionoutput after setting the path manually on the command line? – Marco Sep 09 '13 at 19:10PATH=/opt/context/tex/texmf-linux-64/bin/i386-linux:PATH$to the bashrc file. – doed Sep 09 '13 at 18:22