Difference between revisions of "Ubuntu"

From Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
Here are instructions grouped according to the version of Ubuntu you are running.
 
Here are instructions grouped according to the version of Ubuntu you are running.
  
== Maverick (10.10) with Ubuntu packages ==
+
== With Ubuntu packages – should work with Ubuntu 7.10 and above ==
  
 
TeX Live and ConTeXt have been part of Ubuntu's main repositories since Ubuntu 7.10, so you can simply  
 
TeX Live and ConTeXt have been part of Ubuntu's main repositories since Ubuntu 7.10, so you can simply  
Line 23: Line 23:
 
Note that Ubuntu's packaged version of ConTeXt is quite old (circa 2009), so a better option for advanced users is...
 
Note that Ubuntu's packaged version of ConTeXt is quite old (circa 2009), so a better option for advanced users is...
  
== Maverick (10.10) with ConTeXt Minimals ==
+
== With ConTeXt Minimals – should work with all Ubuntu Versions==
  
Example of setting up [ConTeXt Minimals]:
+
Example of setting up [[ConTeXt Minimals]]:
  
   $ sudo mkdir /usr/local/context
+
   sudo mkdir /usr/local/context
   $ sudo chown yourusername /usr/local/context
+
   sudo chown yourusername /usr/local/context
   $ cd /usr/local/context
+
   cd /usr/local/context
   $ wget http://minimals.contextgarden.net/setup/first-setup.sh
+
   wget http://minimals.contextgarden.net/setup/first-setup.sh
   $ sh first-setup.sh
+
   sh first-setup.sh
   $ vi ~/.bashrc
+
   vi ~/.bashrc
  
Add:
+
Add these three lines:
  
 
   export OSFONTDIR=~/.fonts:/usr/share/fonts                                                       
 
   export OSFONTDIR=~/.fonts:/usr/share/fonts                                                       
Line 44: Line 44:
 
Also, remember that you have to source ~/.bashrc after changing it, in order to have the changes take effect in your current shell. (Either that, or start a new shell.)
 
Also, remember that you have to source ~/.bashrc after changing it, in order to have the changes take effect in your current shell. (Either that, or start a new shell.)
  
== Gutsy (7.10) ==
+
===Installing third party modules in ConTeXt Minimals===
  
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 ConTeXt packages.  So you could use them now (if you are brave).
+
See here: [[ConTeXt_Minimals#Installing_third_party_modules|Installing third party modules]]
  
== Edgy (6.10) and Feisty (7.04) ==
+
===Updating ConTeXt Minimals===
 
+
The update procedure is similar to [[ConTeXt_Minimals#Updating|the normal procedure]]. If you installed the ConTeXt Minimals with the commands from above, you can update to a new (beta) version like this:
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 these two lines in your <tt>/etc/apt/sources.list</tt>:
+
  cd /usr/local/context
 
+
   wget http://minimals.contextgarden.net/setup/first-setup.sh
  <nowiki>deb    http://web.mit.edu/download/sanjoy/texlive-backports/ edgy/
+
   ./firstsetup.sh --keep
   deb-src http://web.mit.edu/download/sanjoy/texlive-backports/ edgy/</nowiki>
 
 
 
Then you can install the texlive 2007 and recent context packages. See the [[Debian installation]] instructions for the details, but here is the quickstart:
 
 
 
   apt-get update
 
  apt-get install cm-super texlive-fonts-recommended context context-nonfree context-doc-nonfree
 
 
 
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, try:
 
 
 
  ctxtools --contextversion
 
 
 
Let me (Sanjoy) know if you find anything broken.
 

Revision as of 12:18, 16 June 2011

Here are instructions grouped according to the version of Ubuntu you are running.

With Ubuntu packages – should work with Ubuntu 7.10 and above

TeX Live and ConTeXt have been part of Ubuntu's main repositories since Ubuntu 7.10, so you can simply

 apt-get install context

to install ConTeXt and its dependencies.

The dependencies pull in various PDF utilities which you will probably find useful, including pdfcrop.

If you would like to use the TeXworks GUI-based TeX editing environment usually included with TeX Live CDs, it is available via

 apt-get install texworks

and will appear under Applications, Science & Math.

See also:

Note that Ubuntu's packaged version of ConTeXt is quite old (circa 2009), so a better option for advanced users is...

With ConTeXt Minimals – should work with all Ubuntu Versions

Example of setting up ConTeXt Minimals:

 sudo mkdir /usr/local/context
 sudo chown yourusername /usr/local/context
 cd /usr/local/context
 wget http://minimals.contextgarden.net/setup/first-setup.sh
 sh first-setup.sh
 vi ~/.bashrc

Add these three lines:

 export OSFONTDIR=~/.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 that the order of items in the PATH is significant. If you put /usr/local/context/bin in the path first, you will get an error at run time.

Also, remember that you have to source ~/.bashrc after changing it, in order to have the changes take effect in your current shell. (Either that, or start a new shell.)

Installing third party modules in ConTeXt Minimals

See here: Installing third party modules

Updating ConTeXt Minimals

The update procedure is similar to the normal procedure. If you installed the ConTeXt Minimals with the commands from above, you can update to a new (beta) version like this:

 cd /usr/local/context
 wget http://minimals.contextgarden.net/setup/first-setup.sh
 ./firstsetup.sh --keep