Saturday, September 25, 2010

How to install Vanilla TexLive 2010 on Ubuntu 10.04

Ubuntu 10.04 and Vanilla TexLive 2010 Installation

When    : September 24, 2010; Friday
Env        : Dell 4310, WinXP, Oracle VirtualBox, Ubuntu10.04 LTS   
Directory    : /home/sajang/texlive


I have installed TexLive 2010 locally under my home directory /home/sajang/texlive so that it won't cause any conflict with the Ubuntu TL (currently 2009 version) package that is already installed.

How to
Using VirtualBox and tl2010.iso image, (I prefer DVD installation; it's a lot faster than installing through network.)
the DVD image is mounted on /media/TeXLive2010

1. Run TeXLive installer

    $ cd /media/TeXLive2010
    $ install-tl --gui

2. To install under home directory, change TEXDIR from "/usr/local/texlive/2010" to "/home/sajang/texlive/2010"

3. After finishing the installation, update .profile file with the below three lines:

    PATH=/home/sajang/texlive/2010/bin/i386-linux:$PATH;export PATH
    MANPATH=/home/sajang/texlive/2010/texmf/doc/man:$MANPATH;export MANPATH
    INFOPATH=/home/sajang/texlive/2010/texmf/doc/info:$INFOPATH;export INFOPATH

4. Reconfigure Font for XeTeX and Update ConTeXt

    $ cp ~/texlive/2010/texmf-var/fonts/conf/texlive-fontconfig.conf  ~/.fonts.conf
    $ cd ~
    $ fc-cache  -fv
    $ luatools --generate
    $ context --make

5. It's not necessary, but update any change using tlmgr

    $ ~/texlive/2010/bin/i386-linux/tlmgr  -gui

I use TeXWorks to write a TeX document, let's install TeXWorks.

6. sudo apt-get install texworks

7 Now, I need to let TeXWorks know where is my local TeXLive 2010 installed.

    - Run TeXWorks
    - Goto "Edit" -> "Preferences..." -> "Typesetting"
    - Add the local path "/home/sajang/texlive/2010/bin/i36-linux" into "Paths for TeX and related programs"
    - Move the path on top of everything using the Arrow Button on the right.

Congratulations! Enjoy TeXing!

Sajang Yang, 09-25-2010


  1. "context --make" didn't work for me with TeXLive 20100722.

    MTXrun | unknown script 'context.lua' or 'mtx-context.lua'

    (Yes, I did run "luatools --generate" before, and the PATH is correct)

    Anyway, thank you for instructions.

  2. Hi Сергей,

    I'm sorry to hear that it didn't work out on your installation. As for me, the humble man who is just using pdflatex, the other tools are not very critical, and I didn't take a look very carefully whether that "context --make" actually finished successfully. Maybe next time.

    Thanks for the comment.