Professional Documents
Culture Documents
Contents
1 Pre-Installation 2
1.1 Learn Your Optical Drive’s Designation . . . . . . . . . . . . . 2
1.2 Unmount the DVD and Create a New Mount Point . . . . . . . 3
2 Installation 3
2.1 Using the Installer’s Text Mode . . . . . . . . . . . . . . . . . 4
2.2 Alternate Method:
Using the GUI Version of the TL Installer . . . . . . . . . . . . 4
2.3 Duration of Installation . . . . . . . . . . . . . . . . . . . . . 5
2.3.1 TL 2009 . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.3.2 TL 2010 . . . . . . . . . . . . . . . . . . . . . . . . . . 6
4 Post-Installation Configuration 8
4.1 Setting the PATH Variable . . . . . . . . . . . . . . . . . . . . . 8
4.1.1 A Few More Words about the PATH . . . . . . . . . . . 9
4.2 Font Configuration for XeTeX . . . . . . . . . . . . . . . . . . 10
6 More on bash 12
1
Installing TEX Live from DVD: Notes
List of Figures
1 The TL Installer’s GUI mode. . . . . . . . . . . . . . . . . . . . 5
Abstract
These are notes I made during my attempt(s) to install TEX Live
(TL) from a DVD which I burned, using a TL .iso file downloaded
from a CTAN mirror on the Internet. I installed TL on three different
Linux systems:
• PCLinuxOS 2010 Phoenix Edition (Xfce 4.6.1 desktop)
• CentOS 5.5 (GNOME 2.16.0 desktop)
• Fedora 14 Xfce Spin (Xfce 4.6.2)
Disclaimer: Although there may be a few errors or inaccuracies
here, this procedure worked for me and it should be almost identical
on other Linux distributions, as TL’s installer takes a distro-neutral,
“plain vanilla” approach. The revised edition of this document has ad-
ditional tips which I received from helpful members of the LATEX Com-
munity Forum.1
The instructions are not 100% complete, so I recommend that you
read the TL documentation available on TUG’s website in conjunction
with this document.
1 Pre-Installation
Clean up any previous TeX installations by completely removing them. By
default, this would be in these two directories:
rm -rf /usr/local/texlive/2008
rm -rf ~/.texlive2008
If you try to run the installation script from the DVD as-is, you will get a
“Permission denied” error message.2 By default, many distros mount DVDs
with the noexec option, which prohibits executing binaries from the DVD.
So the first step is to mount the DVD without the noexec option, i.e., with
an -o exec option.
Comment: You will notice that almost all the installation steps are done
via the CLI (Command Line Interface) rather than a GUI (Graphical User
1
http://www.latex-community.org/forum/index.php
2
Permission denied at tlpkg/TeXLive/TLUtils.pm line 1045.
2
Installing TEX Live from DVD: Notes
Notice that in the final line, the optical drive is designated as /dev/hda.
(PCLinuxOS and Fedora, on the other hand, refer to this same Samsung
CD/DVD drive as /dev/sr0).
3
Installing TEX Live from DVD: Notes
2 Installation
In general, we will use the Quick Install instructions from TUG’s website as
a guideline:
http://www.tug.org/texlive/quickinstall.html
“TEX Live – Quick Install.”
The full-length guide (for TEX Live 2010) can be read here:
http://www.tug.org/texlive/doc/texlive-en/texlive-en.html
Berry, Karl, ed. “The TEX Live Guide: TEX Live 2010.” July 2010.
All commands below were issued by / (root) rather than a normal user.
Follow these steps:
• # cd /media/TL09
[root@dhcppc2 TL09]# ls
autorun.inf install-tl.bat README.usergroups tlpkg
bin LICENSE.CTAN release-texlive.txt tl-portable
doc.html LICENSE.TL rr_moved tl-portable.bat
index.html README source
install-tl readme-html.dir texmf
install-tl-advanced.bat readme-txt.dir texmf-dist
If you want to use the TL Installer’s text mode, follow these instruc-
tions. If you prefer using a GUI, please note that the installer also has
a GUI mode, which is discussed in Subsection 2.2 below.
3
-o
4
exec
5
The optical drive.
6
The mount point we just created.
4
Installing TEX Live from DVD: Notes
• Now you are ready to run the installer script (install-tl). Type:
./install-tl
(Do not forget the initial period (.) before the forward slash).
• From the text menu, select the o command to change the default paper
size (if you are a North American who uses letter-size paper rather
than A4).
• If you wish to bypass the need for manually changing the PATH, as dis-
cussed in Section 4.1, you have the option here of selecting Create
symlinks in system directories. I have never tried this option
myself, but two members of the LATEX Community Forum noted that
it works and that it will auto-configure your PATH.7
2.3.1 TL 2009
If you are installing TL 2009, please wait patiently. The installation process
will take ca. 55–60 minutes if you have a relatively fast CPU and optical
drive.
7
I would like to thank members frabjous and sommerfee for clarifying this.
8
This is the package name used in Fedora; your distro may have given it a slightly different
name.
5
Installing TEX Live from DVD: Notes
6
Installing TEX Live from DVD: Notes
2.3.2 TL 2010
Changes have been made to the TL 2010 DVD. It is no longer “live,” i.e.,
you cannot run it directly from DVD any more. It was too large this year to
fit on a single DVD, so the TL developers switched to compressed packaging
(the same that is used for over-the-network installations). This allows for
a much faster installation, because there is much less I/O on a DVD drive.9
On my hardware, the TL 2010 installation process took approximately 10
minutes.
Whichever method you choose, the script will install packages in alpha-
betical order, beginning with 12many and ANUfinalexam, and ending with
zwgetfdate and zwpagelayout.
As the installation progresses, you will see output like this scrolling down
your Terminal screen:
7
Installing TEX Live from DVD: Notes
mktexlsr: Done.
Setting default paper size to letter
/usr/local/texlive/2009/bin/i386-linux/tlmgr: setting paper size for context to lette
/usr/local/texlive/2009/bin/i386-linux/tlmgr: setting paper size for dvipdfm to lette
/usr/local/texlive/2009/bin/i386-linux/tlmgr: setting paper size for dvipdfmx to lett
/usr/local/texlive/2009/bin/i386-linux/tlmgr: setting paper size for dvips to letter.
/usr/local/texlive/2009/bin/i386-linux/tlmgr: setting paper size for pdftex to letter
/usr/local/texlive/2009/bin/i386-linux/tlmgr: setting paper size for xdvi to letter.
running mktexlsr ...
done running mktexlsr.
Regenerating all formats, this may take some time ...running fmtutil-sys --all ...
done running fmtutil-sys --all.
done
pre-generating all format files (fmtutil-sys --all), be patient...done
running package specific postactions
finished with package specific postactions
See
/usr/local/texlive/2009/index.html
for links to documentation. The TeX Live web site (http://tug.org/texlive/)
contains any updates and corrections.
TeX Live is a joint project of the TeX user groups around the world;
please consider supporting it by joining the group best for you. The
list of groups is available on the web at http://tug.org/usergroups.html.
Logfile: /usr/local/texlive/2009/install-tl.log
Unmount your TeX Live DVD and eject it from the optical drive:
You should now umount the TL DVD and eject it: # umount /dev/hda
Next, remove the directory you created at the beginning of the installa-
tion process.
8
Installing TEX Live from DVD: Notes
4 Post-Installation Configuration
4.1 Setting the PATH Variable
After the installation finishes, you must add the TEX Live binary directory to
your PATH, if you did not select the option to Create symlinks in system
directories when you began the installation process. (See Subsection 2.1
for details). For the bash shell, the file to edit might be $HOME/.profile (or
another file sourced by .profile, and the lines to add would look like this:
9
Installing TEX Live from DVD: Notes
• Add your PATH variable to ~ /.bash profile (if it exists) as your first
choice.
• If you have no ~ /.bash profile, then add your PATH to ~ /.bash login.
• If you have neither of the above files, look for ~ /.profile and add
your PATH there.
• Try the same three lines in your ~ /.bashrc if putting them in ~ /.profile
does not work.
10
Installing TEX Live from DVD: Notes
You will make this change as a regular user (since .bash profile resides
in your /home directory). Use your favorite text editor to open the file, e.g.:
$ nano .bash_profile
$ gedit .bash_profile
$ vi .bash_profile
$ emacs .bash_profile
A change like this does not take effect immediately, so log out of your
account, completely reboot your system and log back in.
Finally, issue the command: # texhash
[root@dhcppc2 david]# texhash
texhash: Updating /usr/share/texmf/ls-R...
texhash: Updating /usr/share/texmf-config/ls-R...
texhash: Updating /usr/share/texmf-var/ls-R...
texhash: Updating /var/lib/texmf/ls-R...
texhash: Done.
11
Installing TEX Live from DVD: Notes
If we test the XeTeX font configuration now (from our regular user ac-
count), it should pass and produce a PDF file:
Note: The technique above did not work for me—XeTeX continued to
complain about “Invalid fontname”—therefore I resorted to becoming root
and using the steps outlined at the beginning of Subsection 4.2.
12
Installing TEX Live from DVD: Notes
$ tex --version
$ latex sample2e.tex
$ xdvi sample2e.dvi (or, $ evince sample2e.dvi) (or, $ acroread sample2e.dvi)
$ pdflatex sample2e.tex
$ xpdf sample2e.pdf (or, $ evince sample2e.pdf) (or, $ okular sample2e.pdf)
/usr/local/texlive
/usr/local/texlive/2009
/usr/local/texlive/2009/texmf
/usr/share/texmf
/usr/share/texmf-texlive
6 More on bash
The brief information below was copied from Agustı́n Velasco’s “How Linux
Works” (ver. 0.6.0, 1 June 2000), hosted by the Computer Documentation
Project12 :
When bash starts it runs script files in the following order if the files
exist and if the shell is a login shell (called by the login program):
13
Installing TEX Live from DVD: Notes
3. When bash exits the file called .bash logout in the user’s home di-
rectory is run.
14