Installing TEX Live 2012 on Fedora 17: Abridged Notes

By kalwisti Updated 29 July 2012

Contents
1 Pre-Installation 1.1 Learn Your Optical Drive’s Designation . . . . . . . . . . . . . 1.2 Unmount the DVD and Create a New Mount Point . . . . . . . 2 Installation 2.1 Using the Installer’s Text Mode . . . . . . . . . . . . . . . . . 2.2 Duration of Installation . . . . . . . . . . . . . . . . . . . . . 3 Finishing the Installation 4 Post-Installation Configuration 4.1 Setting the PATH Variable . . . . . . . . . . . . . . . . . . . . . 4.2 My $PATH in F17 GNOME (for Reference) . . . . . . . . . . . 4.3 Font Configuration for XeTeX . . . . . . . . . . . . . . . . . . 5 Testing the Installation
Abstract These are abridged notes I made during my installation of TEX Live (TL) 2012 from a DVD which I burned, using a TL .iso file downloaded from a CTAN mirror. I installed TL on a Fedora 17 (GNOME Shell 3.4.2) 32-bit system. The instructions are not 100% complete, so I recommend that you read the TL documentation available on TUG’s website1 in conjunction with the fuller version of this document from my Dropbox account.2
1 2

1 1 2 2 3 3 4 4 4 5 6 6

http://www.tug.org/texlive/doc/texlive-en/texlive-en.html http://dl.dropbox.com/u/7269942/tex-live-dvd-install-mod.pdf

1

Installing TEX Live 2012 on Fedora 17

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/2011 rm -rf ~/.texlive2011

1.1

Learn Your Optical Drive’s Designation

Insert the TL 2012 DVD into your optical drive. Using your regular user account, type the mount command from a Terminal to see the DVD’s name (TEX Live 2012) and your optical drive’s designation. [david@f17gnome ~]$ mount You will notice that the TL DVD is mounted in a user-specific directory. In my case, it was: /run/media/david/TeXLive2012 Beginning with version 17, Fedora no longer mounts removable disks under /media/, but instead mounts them under /run/media/$USER/. The reason for the switch is a change in udisks. Depending on your hardware configuration, the optical drive may be designated as something like /dev/hda or /dev/sr0.

1.2

Unmount the DVD and Create a New Mount Point

Now you can follow these steps: • Open up a Terminal / Konsole within your regular user account, issue the command su and type root’s password to acquire root user privileges. • Unmount the TEX Live (TL) DVD: # umount run/media/$USER/TeXLive2012 N.B.: The command is umount (‘unmount’ without the first letter “n”). Type your actual username instead of $USER. • Create a new mount point for the DVD: # mkdir /media/TL12

2

Installing TEX Live 2012 on Fedora 17 • Type: # mount -o exec /dev/sr0 /media/TL12 A gloss of this command is: mount [option flag]3 [permit execution of binaries]4 [source]5 [target directory]6 These preliminary steps will allow the TL install script to run.

2

Installation

Open up a Terminal / Konsole within your regular user account and type the commands: 1. [david@f17gnome ]$ su 7

2. Type root’s password. 3. Your Terminal should look something like this: [root@f17gnome david]# All commands below were issued by / (root) rather than a normal user. Follow these steps: • # cd /media/TL12 • Run the ls (list) command to show you the TL DVD’s contents: [root@f17gnome TL12]# 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
3 4

-o exec 5 The optical drive. 6 The mount point we just created. 7 Do not use the command su -, i.e. su followed by a single hyphen.

3

Installing TEX Live 2012 on Fedora 17

2.1

Using the Installer’s Text Mode

• 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). • Type the letter i (for i(nstall)) to begin the installation.

2.2

Duration of Installation

TL 2012 took approx. 18 minutes to install on my hardware. The script will install packages in alphabetical order, beginning with 12many and ANUfinalexam, and ending with zwgetfdate and zwpagelayout.

3

Finishing the Installation

When the installation completes, you should now unmount the TL DVD and eject it: # cd (This will allow you to exit from the currently active /media/TL12 directory). # umount /dev/sr0 Next, remove the directory you created at the beginning of the installation process. # cd /media # ls TL12 # rmdir TL12 Do not delete the /media directory!

4

Installing TEX Live 2012 on Fedora 17

4
4.1

Post-Installation Configuration
Setting the PATH Variable

After the installation finishes, you must add the TEX Live binary directory to your PATH. Activate the Show Hidden Files feature in your file manager, and look for the .bash profile file in your /home directory. Paste these three lines at the end of your file, then save it: PATH=/usr/local/texlive/2012/bin/i386-linux:$PATH; export PATH MANPATH=/usr/local/texlive/2012/texmf/doc/man:$MANPATH; export MANPATH INFOPATH=/usr/local/texlive/2012/texmf/doc/info:$INFOPATH; export INFOPATH 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. For reference, the full contents of my .bash profile are below: # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin export PATH PATH=/usr/local/texlive/2012/bin/i386-linux:$PATH; export PATH MANPATH=/usr/local/texlive/2012/texmf/doc/man:$MANPATH; export MANPATH INFOPATH=/usr/local/texlive/2012/texmf/doc/info:$INFOPATH; export INFOPATH 5

Installing TEX Live 2012 on Fedora 17

4.2

My $PATH in F17 GNOME (for Reference)

To verify that the TL binaries were added to your $PATH, type the following command; you should see output similar to this: [david@f17gnome ~]$ echo $PATH /usr/local/texlive/2012/bin/i386-linux:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin: /usr/sbin:/home/david/.local/bin:/home/david/bin Acquire root privileges by typing $ su (not $ su -) and the root user’s password. Finally, issue the command: # texhash You should see Terminal output like this: # texhash texhash: Updating texhash: Updating texhash: Updating texhash: Updating texhash: Done.

/usr/share/texmf/ls-R... /usr/share/texmf-config/ls-R... /usr/share/texmf-var/ls-R... /var/lib/texmf/ls-R...

4.3

Font Configuration for XeTeX

You need to configure your system so that XeTEX can find the fonts shipped with TEX Live. This is accomplished by configuring the texlive-fontconfig.conf file. In TL 2012, this file lives within the directory: /usr/local/texlive/2012/texmf-var/fonts/conf/ As root user, you will be copying this file to the /etc/fonts/conf.d/ directory and simultaneously renaming the file 12-texlive.conf. [root@f17gnome david]# cd /usr/local/texlive/2012/texmf-var/fonts/conf/ [root@f17gnome conf]# ls conf texlive-fontconfig.conf [root@f17gnome conf]# cp texlive-fontconfig.conf /etc/fonts/conf.d/12-texlive.conf Now you must run the fc-cache command: [root@f17gnome conf]# fc-cache -fv 6

Installing TEX Live 2012 on Fedora 17 If we test the XeTeX font configuration now (from our regular user account), it should pass and produce a PDF file: [david@f17gnome ~]$ xetex opentype-info.tex This is XeTeX, Version 3.1415926-2.4-0.9998 (TeX Live 2012) restricted \write18 enabled. entering extended mode (/usr/local/texlive/2012/texmf-dist/tex/xetex/xetexfontinfo/opentype-info.tex [1] ) Output written on opentype-info.pdf (1 page). Transcript written on opentype-info.log.

5

Testing the Installation

All the tests suggested in the TL online guide passed. Some sample tests are: $ $ $ $ $ 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)

If you are not a command-line geek, you’ll probably want to install a A LTEX editor / IDE (Integrated Development Environment), such as Texmaker or TEXworks, to make life easier. Good Luck and Happy TEXing!

7

Sign up to vote on this title
UsefulNot useful