3 Installation and use under Unix
You can use the TeX Live CD-ROM in three ways:
- You can mount the CD-ROM on your file system, run the install-cd.sh script, and select the
option <R> (‘do not install files, set up to run off CD-ROM’), and run everything off the CD-ROM;
this takes very little disk space, and gives you immediate access to everything on the CD-ROM;
although the performance will not be optimal, it is perfectly acceptable on, for instance, PCs
running Linux. You could also copy the entire CD contents to your hard disk and work in this way.
- You can install all or part of the system to your local hard disk; this is the best method for many
people, if they have enough disk space to spare (a minimum of about 100 megabytes, or 300
megabytes for a recommended good-sized system).
- You can install selected packages to work either with your existing TeX system or a TeX Live
system you installed earlier.
Each of these methods is described in more detail in the following sections.
Warning: This CD-ROM is in ISO 9660 (High Sierra) format, with Rock Ridge and Joliet extensions. In order
to take full advantage of the CD-ROM on a Unix system, your system needs to be able to use the Rock Ridge
extensions. Please consult the documentation for your mount command to see if it is possible. If you have several
different machines on a local network, see if you can mount the CD-ROM on one which does support Rock
Ridge, and use this with the others.
Linux, FreeBSD, Sun, SGI and DEC Alpha systems should be able to use the CD-ROM with no problems. We
would appreciate receiving detailed advice from other system users who also succeed, for future versions of this
documentation.
The discussion below about installation assumes you have been able to mount the CD-ROM with full Rock
Ridge compatibility.
|
3.1 Pre-installation procedure for MacOSX users
If you do not run MacOSX, you should skip this
section.
The install-cd.sh script is a sh script (begins with “#!/bin/sh”), but on MacOSX sh is unable to run it
because sh is emulated. However, bash will run it. Unfortunately (again) bash is not installed by default on
MacOSX1.
- (optional) See if bash is already installed. Launch Terminal (/Applications/utilities/Terminal)
and type in a window the answer will be:
- the bash location (e.g. /bin/bash or /usr/local/bin/bash) if installed;
- bash: command not found if not installed.
If bash is already installed, skip to 4
- bash installation:
-
Mac friendly procedure
- Look in the MacOSX directory of the CD-ROM for an image disk named
bash.dmg. mount that file by double-clicking it. The disk image (volume) will be mounted.
Then start the i-Installer application on that volume. You will be asked to authenticate,
if you have never seen that before, you might not have enough privileges to install. Just enter
your own user name and password. Hit install. bash will be installed on your system.
-
Terminal procedure
-
- Log in as an admin user, at least a user with Admin privileges or sudo user or as the
System Administrator.
- Open the MacOSX directory on the CD-ROM and copy bash.tar.gz to your home
directory (/)
- Then launch Terminal and type or copy/paste the line below in a Terminal window):
>> (cd /usr/local/; sudo tar xvzf ~/bash.tar.gz)
type a carriage-return: you will be asked for your password, and bash will be installed.
- Quit Terminal.
- Now after using either install method, goto 1: you must obtain /usr/local/bin/bash. . . (if not, try to log
out and in).
- The installation procedure is the same on MacOSX than on other UNIX platforms (as MacOSX is UNIX,
that’s quite normal!). Nevertheless, you should read what follows:
- Note that in all commands of the following sections, sh must be replaced by sudo bash:
becomes
>> sudo bash install-cd.sh
etc.
- On MacOSX, cd are auto-mounted: you don’t need to use mount. The CD-ROM will be mounted in
the /Volumes/ directory: in order to make it the current directory, you just have to type in Terminal:
>> cd /Volumes/TeXLive-7...
(complete this line with the real name of the CD-ROM: using “auto completion” by pressing the
<tab> key will do it).
3.2 Running TeX Live from the CD-ROM
The organisation of Web2c means that you can run programs
simply by adding the appropriate directory under bin on the CD-ROM to your PATH, and the support files will all
be found with no further ado. The following shows the list of available systems and the corresponding directories.
Only x86 Linux, Mac OSX, and Windows are available on the default CD. You need to ask for the Unix CD
if you need the other systems.
Compaq Alpha Linux | alpha-linux | CD2 |
Compaq Alphaev5 OSF 4.0d | alphaev5-osf4.0d | CD2 |
HP9000 HPUX 10.20 | hppa2.0-hpux10.20 | CD2 |
IBM RS 6000 AIX 4.2.* | rs6000-aix4.2.1.0 | CD2 |
Intel x86 Solaris 2.8 | i386-solaris2.8 | CD2 |
Intel x86 with GNU/Linux | i386-linux | CD1 |
Mac OSX | powerpc-darwin5.3 | CD1 |
Sun Sparc Solaris 2.7 | sparc-solaris2.7 | CD2 |
Windows 9X/ME/NT/2K/XP | win32 | CD1 |
|
You may worry that when you subsequently make fonts or change configuration, things will go wrong
because you cannot change files on the CD-ROM. However, you can maintain a parallel, writeable, TeX tree on
your hard disk; this is searched before the main tree on the CD-ROM. The default location is texmf-var on
the CD (which does not exist!), so you must override this by setting the VARTEXMF environment
variable.
Thus sh or bash users on an Intel PC running Linux can mount the TeX Live CD-ROM on /mnt/cdrom by
issuing the command:
>> mount -t iso9660 /dev/cdrom /mnt/cdrom
Then they should change the current directory to /mnt/cdrom, run and select the option <R> (do not install files, set up to run off CD-ROM). After that, they should include the
directory containing the binaries for the given architecture into the search path by updating the PATH
variable.
PATH=/mnt/cdrom/bin/i386-linux:$PATH
export PATH
VARTEXMF=/usr/TeX/texmf-var
export VARTEXMF
-
MacOSX users
- On MacOSX, the default shell is tcsh:
setenv PATH /Volumes/<cd-name>/bin/powerpc-darwin5.3:${PATH}
setenv VARTEXMF /usr/TeX/texmf-var
For convenience, these statements can also be entered into the .profile script. (for tcsh on MacOSX,
~/Library/init/tcsh/rc.mine).
If in doubt, ask your local system support guru to help you work out how to mount your CD-ROM or which
directory to use for your system.
Appropriate support files will be installed on your hard disk the first time you need them. You can edit and
change local configuration files which are stored to the directory designated by $VARTEXMF. Any format file that
is needed will be generated and stored here.
3.3 Installing TeX Live to a hard disk
All of the necessary steps to install all or part of the distribution on
your hard disk are achieved by mounting the CD-ROM, changing to the top-level directory, and typing:
(On some Unix systems, you may need to use sh5 or bash.) This script works by accessing lists of collections
and packages from the CD-ROM, and trying to guess what sort of computer system you are on. It should start by
displaying the following:
Initializing collections... Done initializing.
Counting selected collections... Done counting.
Calculating disk space requirements for collections...Done calculating that.
Initializing system packages... Done initializing system.
It will then show the main control screen (Figure 1), which lets you change five things:
- the type of system you are on, or want to install for;
- the installation scheme you want to use (eg full, recommended, basic etc)
- the collections you want to change from the installation scheme (they are organised into two sets:
standard collections and language collections);
- the location on your hard disk to put the files;
- some runtime behaviour features.
===> Note: Letters/digits in <angle brackets> indicate menu items <===
===> for commands or configurable options <===
Proposed platform: Intel x86 with GNU/Linux
<P> over-ride system detection and choose platform
<B> binary systems: 1 out of 9
<S> Installation scheme (texlive_recommended)
[customizing installation scheme:
<C> standard collections <L> language collections]
1 out of 57, disk space required: 12960 kB
<D> directories:
TEXDIR (The main TeX directory) : /usr/TeX
TEXMFLOCAL (Directory for local styles etc): /usr/TeX/texmf-local
VARTEXMF (Directory for local config) : /usr/TeX/texmf-var
<O> options:
[ ] alternate directory for generated fonts ()
[ ] create symlinks in standard directories
[ ] do not install macro/font doc tree
[ ] do not install macro/font source tree
<R> do not install files, set up to run off CD-ROM
<I> start installation, <H> help, <Q> quit
Enter command:
Figure 1: | Main control screen |
|
You choose options by typing a letter or number and pressing ‘return’. In the example, a Linux GNU/Linux
system has been detected, the default set of collections will be installed, and the default installation directory is
/usr/TeX; note that the disk space required for the current installation configuration is also displayed. If
you make a suggested setup, you need about 60 megabytes of disk free; however, the basic setup
will only take about 30 megabytes, and you can enhance it with selected packages as you need
them.
-
MacOSX users
- Most frontends (TeXShop, ITeXMac. . . ) use the teTeX default location which is /usr/
local/teTeX, so, Mac users could find interest in installing TeX Live in /usr/local/teTeX
rather than in /usr/TeX.
Under the directory you choose for installation, the installation script will put the binaries in a subdirectory of
bin, and the support tree in texmf. An additional tree texmf-var will contain copies of configuration files
(except the main texmf.cnf), which are to be modified by texconfig program. This tree will also store
generated format files for TeX, METAFONT, etc.
a [X] Essential programs and files p [ ] LaTeX supplementary packages
b [ ] Extra BibTeX styles s [ ] Advanced math typesetting
c [ ] Chemical typesetting t [ ] Music typesetting
d [ ] Context macro package u [ ] Omega
e [X] Extra documentation v [X] pdfTeX
f [ ] eTeX w [ ] Drawing and graphing packages
g [ ] TeX auxiliary programs x [ ] Plain TeX extra macros
h [ ] TeX font-related programs y [ ] Extra PostScript fonts
i [ ] Extra fonts z [ ] PostScript utilities
j [ ] Extra formats A [ ] Support for publishers
k [ ] Games typesetting (chess, etc B [ ] Type1 font manipulation
l [ ] Miscellaneous macros C [ ] Examples from TeX books
m [ ] HTML/SGML/XML support D [ ] Styles for University theses
n [X] Basic LaTeX packages E [ ] TrueType font manipulation
o [ ] Support for latex3 F [ ] Various support tools for win
<-> deselect all <+> select all <R> return to platform menu <Q> quit
Press key to toggle status of collection:
Figure 2: | Selecting standard collections |
|
a [ ] Support for some African scri o [X] Support for Italian
b [ ] Support for Armenian p [ ] Support for Latin
c [ ] Chinese, Japanese, Korean sup s [ ] Support for Manju
d [ ] Support for Croatian t [ ] Support for Mongolian
e [ ] Support for Cyrillic u [ ] Support for Norwegian
f [X] Support for Czech/Slovak v [ ] Other hyphenation files
g [ ] Support for Danish w [X] Support for Polish
h [X] Support for Dutch x [X] Support for Portuguese
i [ ] Support for Finnish y [X] Support for Spanish
j [X] Support for French z [ ] Support for Swedish
k [X] Support for German A [ ] Support for Tibetan
l [ ] Support for Greek B [X] Support for UK English
m [ ] Support for Hungarian C [ ] Support for Vietnamese
n [ ] Support for Indic
<-> deselect all <+> select all <R> return to platform menu <Q> quit
Press key to toggle status of collection:
Figure 3: | Selecting language collections |
|
When you choose <C> for standard collections, you will see the display of available collections (Figure 2).
Each collection — TeX macro files, Metafont font families, and so on — consists of several packages. You
can toggle their inclusion on or off by pressing the key. Note that the selection letter keys are case
sensitive.
When you choose <L> for language collections, you will see the display of available language support
collections (Figure 3). Each collection consists of several packages, which provide features like hyphenation files
and fonts.
The <O> for options item lets you decide whether to make new fonts be created in another location (if you
want the main package mounted read-only for most users), and whether to make symbolic links for the binaries,
man and GNU info pages in the ‘standard’ locations; you’ll need ‘root’ permissions for tasks to do this, of
course.
When you are finished, return to the main screen, and ask the installation to start. It will take each of the
collections and systems that you requested, consult the list of files on the CD-ROM, and build a master list of
files to transfer. These will then be copied to your hard disk. If you installed a system, an initialization sequence
is now run (creating format files, etc.). When this has finished, all you need do is add the correct subdirectory of
bin in the TeX installation to your path, and start using TeX. If you want, you can move the binaries up one level,
e.g. from /usr/local/bin/alpha-osf3.2 to /usr/local/bin; if you do this, however, you
must edit texmf/web2c/texmf.cnf (see Appendix 11) and change the line near the start which
reads
TEXMFMAIN = $SELFAUTOPARENT
to
If you move the whole installation to another directory tree entirely, you need to edit TEXMFMAIN to specify
the support tree explicitly, and set TEXMFCNF in your environment to $TEXMFMAIN/texmf/web2c.
3.4 Installing individual packages from TeX Live to a hard disk
You may want to use the TeX Live
CD-ROM to either update an existing setup, or add features to an earlier installation from the CD-ROM. The
main installation program is intended for the first time only, and subsequently you should use the
install-pkg.sh script on the CD-ROM. Run this by mounting the CD-ROM, changing to the mounted
directory, and typing
>> sh install-pkg.sh options
The script supports nine options; the first four let you set the individual package you want to install, the
whole collection (i.e., tex-mathextra), the name of the mounted CD-ROM directory, and the name of the
directory containing the list files (normally these latter two will be set automatically):
--package=name | |
--collection=name | |
--cddir=name | |
--listdir=name | |
|
What actually happens is controlled by four more switches; the first two allow you to exclude
documentation or source files from the installation, the third stops the default action of running mktexlsr on
completion to rebuild the file database, and the last does nothing but list the files that would be
installed:
--nodoc | |
--nosrc | |
--nohash | |
--listonly | |
|
Finally, you can specify that, instead of installing the files, the script should make a tar archive in a specified
location:
Thus, if we simply wanted to see the files that make up the package fancyhdr before we installed it, our
command and output would be as follows:
>> sh install-pkg.sh --package=fancyhdr --listonly
texmf/doc/latex/fancyhdr/fancyhdr.dvi
texmf/doc/latex/fancyhdr/fancyhdr.tex
texmf/lists/fancyhdr
texmf/source/latex/fancyhdr/README
texmf/source/latex/fancyhdr/fancyheadings.new
texmf/tex/latex/fancyhdr/extramarks.sty
texmf/tex/latex/fancyhdr/fancyhdr.sty
texmf/tex/latex/fancyhdr/fixmarks.sty
Other examples of usage are:
- Install the LaTeX package natbib:
>> sh install-pkg.sh --package=natbib
- Install the LaTeX package alg with no source files and no documentation:
>> sh install-pkg.sh --package=alg --nosrc --nodoc
- Install all the packages available in the collection containing additional Plain TeX macros:
>> sh install-pkg.sh --collection=tex-plainextra
- Place all files which are needed for PSTricks in a tar file in /tmp:
>> sh install-pkg.sh --package=pstricks --archive=/tmp/pstricks.tar
3.5 The texconfig program
After the installation program has copied all files to their final locations, you can use a program called texconøg
that allows you to configure the system to fit your local needs. This can be called at any other time to change
your setup, with a full-screen (which requires the dialog program, included as part of the binary
packages) or command-line interface. It should be used for all maintenance, such as changes of
installed printers, or rebuilding the file database. Both modes have help text to guide you through the
facilities.