Changes

Jump to navigation Jump to search
421 bytes added ,  03:07, 25 February 2014
m
no edit summary
Here are instructions grouped according to the version of for ConTeXt installation on Ubuntu you are runningand its derivatives [K/X/L]ubuntu.
== Maverick Precompiled / Packaged Nightly Builds From PPA == Adam Reviczky was most generous to provide us with an Ubuntu PPA (10Personal Package Archive) that contains precompiled Ubuntu packages for both ConTeXt and LuaTeX nightlies. Instructions for your version of Ubuntu are available for [https://launchpad.net/~reviczky/+archive/context-daily ConTeXt] and [https://launchpad.net/~reviczky/+archive/luatex-daily LuaTeX].10)  == With Ubuntu packages – should work with Ubuntu packages 7.10 and above == Note that Ubuntu's packaged version of ConTeXt is quite old (circa 2009), so a better option is the ConTeXt Standalone
TeX Live and ConTeXt have been part of Ubuntu's main repositories since Ubuntu 7.10, so you can simply
See also:
* Setting up [[Setting up TeXworks]] * [[Using === Adding the system fonts === The standard Ubuntu LuaTeX in Ubuntu]]package does not scan any of your installed system fonts. Therefore you will want to set up the OSFONTDIR environment variable to point to all the font paths. For example:  export OSFONTDIR=~/.fonts:/usr/share/fonts:/usr/share/texmf/fonts/opentype/:/opt/libreoffice/basis3.3/share/fonts/ Once you have done that, run  mtxrun --script fonts --reload If you have an error do this
Note that Ubuntu's packaged version of ConTeXt is quite old (circa 2009), so a better option for advanced users is... luatools --generate
== Maverick (10to scan all the font directories.10) with ConTeXt Minimals ==Then run
Example of setting up [ConTeXt Minimals]: mtxrun --script fonts --list --all --pattern=*
$ sudo mkdir /usr/local/context$ sudo chown yourusername /usr/local/context$ cd /usr/local/context$ wget http://minimalsto list all the fonts LuaTeX now knows about.contextgarden.net/setup/first-setup.sh$ sh first-setup.sh$ vi ~/.bashrcFinally, run
Add: context --reload
export OSFONTDIR=~/to make sure ConTeXt's font cache is up to date.fonts:/usr/share/fonts export TEXROOT=/usr/local/context/tex export PATH=/usr/local/context/tex/texmf-linux/bin:/usr/local/context/bin:$PATH
Note If you are using TeXworks, you need to make sure that the order of items OSFONTDIR is set in the PATH is significant. If you put /usr/local/context/bin environment TeXworks runs in the path first, you will get an error at run timebecause ConTeXt may decide it needs to rescan fonts.
== Gutsy (7.10) With ConTeXt Standalone – should work with all Ubuntu versions==
Gutsy will be released in October 2007. Its repositories, which came from Debian unstable just after feisty (7.04) was released, already have the texlive 2007 and recent Example of setting up [[ConTeXt packages. So you could use them now (if you are brave).Standalone]]:
== Edgy (6 sudo mkdir /usr/local/context sudo chown yourusername /usr/local/context cd /usr/local/context wget http://minimals.10) and Feisty (7contextgarden.04) ==net/setup/first-setup.sh sh first-setup.sh vi ~/.bashrc
Unfortunately, you cannot use the repository given in [[Debian installation]] because the Debian packages were compiled with a (very very slightly) newer libc6 than the one that comes with Ubuntu 7.04. Here instead are slightly tested packages backported for Ubuntu 6.10 (edgy); they also work on my Feisty (7.04) laptop. To use them put Add these two three lines in your <tt>/etc/apt/sources.list</tt>:
<nowiki>deb http export OSFONTDIR=~/.fonts:/usr/web.mit.edushare/downloadfonts export TEXROOT=/sanjoyusr/texlive-backportslocal/ edgycontext/tex debexport PATH=/usr/local/context/tex/texmf-src httplinux/bin:/usr/web.mit.edulocal/downloadcontext/sanjoybin:$PATH Note that the order of items in the PATH is significant. If you put /texlive-backportsusr/ edgylocal/<context/nowiki>bin in the path first, you will get an error at run time.
Then Also, remember that you can install have to source ~/.bashrc after changing it, in order to have the texlive 2007 and recent context packageschanges take effect in your current shell. See the [[Debian installation]] instructions for the details(Either that, but here is the quickstart:or start a new shell.)
apt-get update apt-get install cm-super texlive-fonts-recommended context context-nonfree context-doc-nonfree===Installing third party modules in ConTeXt Standalone ===
That command also installs the needed texlive packages for pdftex, metapost, lmodern etc. The <tt>cm-super</tt> package is in the ''universe'' repository so you'll need that enabled in your <tt>sources.list</tt>. You should not need to chase down the old teTeX 3.0 packages, which will be removed automatically by the above installation line. To test whether the basics of ConTeXt are working after the upgrade, trySee here:[[ConTeXt_Standalone#Installing_third_party_modules|Installing third party modules]]
===Updating ConTeXt Standalone===The update procedure is similar to [[ConTeXt_Standalone#Updating|the normal procedure]]. If you installed the ConTeXt Standalone with the commands from above, you can update to a new (beta) version like this: ctxtools cd /usr/local/context wget http://minimals.contextgarden.net/setup/first-setup.sh ./first-setup.sh --contextversionkeep
Let me (Sanjoy) know if you find anything broken.{{Installation navbox}}
419

edits

Navigation menu