home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / t / t-info / install < prev    next >
Encoding:
Text File  |  1995-10-10  |  10.6 KB  |  203 lines

  1. How To Install NTeX Release 1.2
  2. ===============================
  3.  
  4. 0. Read the whole file INSTALL (the one you are looking at right now) before 
  5.    you start to install anything!
  6.  
  7.    If you have an installed the version 1.1 of NTeX you should remove this
  8.    installation with removepkg before you install 1.2 since the directory
  9.    structure changed. If you do not have other packages starting with nt?-*
  10.    you can do this with (assuming the package files are store in 
  11.    /usr/adm/packages)
  12.  
  13.      cd /var/adm/packages
  14.     removepkg nt?-*
  15.  
  16.    Please also note that the dvi drivers xdvik, xdvipsk and dviljk use the
  17.    kpathsea library 2.1, but TeX and MetaFont (web2c) still use version 1.7.
  18.    So if you change the paths for kpathsea 2.1 by editing the file texmf.cnf,
  19.    TeX and MetaFont will not use these paths. As soon as there is a version
  20.    of web2c that supports kpathsea 2.1 I will install it. Right now the
  21.    definitions in texmf.cnf and the one for web2c are equal. So there should
  22.    be no problems with the default values. If you have to change them use
  23.    the environment variables to do so.
  24.  
  25. 1. Download the directories ntex01 to ntex13. The contents of each directory 
  26.    should be copied on a 3.5" HD disk (1.44MB) with a MS-DOS file system. 
  27.  
  28.    If you are using another format and the files in one directory do not fit 
  29.    onto one disk you can copy them on different ones. Just make sure that each
  30.    disk contains a empty file ntexN where N is a number from 01, 02, 03, ...
  31.    Then edit the file disknam on the disk ntex01. This file should contain
  32.    the names of the empty files. If you are not using a msdos filesystem
  33.    you also have to change the file diskfs on ntex01. It contains the name of 
  34.    the filesystem used for the mount command.
  35.  
  36. 2. To install NTeX mount the disk ntex01 with a command like
  37.  
  38.      mkdir /tmp/ntex01
  39.      mount -r -t msdos /dev/fd0 /tmp/ntex01
  40.  
  41.    where msdos is the filesystem /dev/fd0 is the disk drive (you may
  42.    change it to /dev/fd1) and /tmp/ntex01 is the directory under which the
  43.    disk is installed. Then copy the install.sh script on your harddisc. For
  44.    example
  45.  
  46.     cp /tmp/ntex01/install.sh /tmp/install.sh
  47.  
  48. 3. Now call the installation script install.sh with the directory name you 
  49.    used for mounting ntex01. In the example above this would be
  50.  
  51.      cd /tmp
  52.      install.sh /tmp/ntex01
  53.  
  54.   (Don't stay in the /tmp/ntex01 directory during installation since it
  55.   ntex01 will be unmounted by install.sh.)
  56.   This script will copy some basic information for installing ntex in
  57.   /tmp/install.ntex and calls the script installntex contained in
  58.   install.tgz on ntex01. installntex does the real installation and could
  59.   also be used to install the packages from the current directory. If you want
  60.   to install the packages from the current directory create a directory
  61.   on your hardisk, unzip and untar the package install.tgz in this directory. 
  62.   Copy the packages you want to install in the same directory and call the 
  63.   installntex script form there.
  64.  
  65. 4. installntex asks you if you want to install from floppy or from the current 
  66.    directory. If you did not copy all the files from ntex01 to ntex13 in one 
  67.    directory on your harddisk, choose floppy (as supposed in step 1 and 2). In
  68.    this case you also have to choose the device file of the floppy drive 
  69.    (/dev/fd0 for DOS drive A and /dev/fd1 for DOS drive B). Now you can choose
  70.    the installation script which is used for installing the package. If you 
  71.    are using slackware you probably want to use the slackware installation 
  72.    script. I have included this in the installation package. If you do not 
  73.    want to use the slackware installation script, the installation will be 
  74.    done with a simple script provided by installntex. This simple script 
  75.    creates for each installed package a .files file in the installation 
  76.    directory which contains a list of the installed files. After this short 
  77.    configuration you get a list of the packages  and have to choose which you 
  78.    want to install. If you have limited disk  space you should choose the 
  79.    packages wisely and just install what you really need. All the packages 
  80.    have a status, which is either necessary, recommended or optional. You have
  81.    to install the packages with the status necessary in order to run TeX. The 
  82.    recommended packages should be installed unless you are sure that you do 
  83.    never need them. You should just install the optional packages if you 
  84.    really want to use them. After you have chosen the packages, they will be 
  85.    installed and you are asked to insert disk ntex01 to ntex13. Of course if 
  86.    you are installing from current directory, you do not have to do this.
  87.  
  88.    After all the packages are installed you go through a basic configuration
  89.    for NTeX. Here you can configure dvips, xdvi, LaTeX2e and MetaFont for your
  90.    local printer and the hyphenation tables you want to use. If you do not
  91.    know what you have to change, keep the default settings. You can change
  92.    them later. To configure xdvi you have to change the file 
  93.    /usr/lib/texmf/X/XDvi. This is an app-defaults file and has to be linked
  94.    to your app-defaults directory for X11/openwin (for openwin this is most
  95.    likely /usr/openwin/lib/app-defaults and for X11 it is most likely
  96.    /usr/X11/lib/X11/app-defaults). installntex can do this job for you if 
  97.    you know the name of your app-defaults directory or you can do it later 
  98.    with
  99.  
  100.      ln -s /usr/lib/texmf/X/XDvi <app-defaults-directory>/XDvi
  101.  
  102.    A general note: Don't change anything in the configuration files and the
  103.    fonts unless you know exactly what you are doing. The default configuration
  104.    should work for a lot of systems and should always do it for a beginner.
  105.    You can run the configuration script for the packages you have installed
  106.    from /usr/lib/texmf/tools. If the package has an configuration script you
  107.    find a file <packagename>.cfg in this directory which you can run at
  108.    every time you want to change the configuration. 
  109.    The only thing that you really might have to change is the localfont mode 
  110.    in /usr/lib/texmf/mf/base/modes.mf. This is easiest done with the 
  111.    installntex script. You do not necessarily have to create the fonts after
  112.    you have done this. The script MakeTeXPK will do this for you.
  113.  
  114. 5. Note that the distribution does not contain any pk font files. They can
  115.    be created with a shell script in /usr/lib/texmf/fonts/create. The shell 
  116.    script is called createallfonts. Before you build the fonts you have to 
  117.    set the localfont mode to your printer in the file 
  118.    /usr/lib/texmf/mf/base/modes.mf. You can do this either with the 
  119.    installntex script after you have installed MetaFont or later by hand. If 
  120.    you do not know how this works, do it with installntex when you are asked 
  121.    so. After you changed the localfont mode in modes.mf you also have to 
  122.    recreate the bases for MetaFont. installntex does this automatically. In 
  123.    order to build the pk font files type
  124.  
  125.     cd /usr/lib/texmf/fonts/create
  126.     createallfonts
  127.  
  128.    This can take quite some time and you should run it over night. You can
  129.    also run it as background process with
  130.  
  131.     cd /usr/lib/texmf/fonts/create
  132.     createallfonts &>/dev/null &
  133.  
  134.    You can ignore the "font not installed" messages during creation.
  135.    There might also be created some *.ferr files in 
  136.    /usr/lib/texmf/fonts/create. They document some errors in some of
  137.    the fonts which are not removed... Don't care about them unless
  138.    you have some problems with a font (send a report to me in this
  139.    case).
  140.  
  141.    If you want to build just a part of the fonts you have installed you
  142.    can call one of the create.sh scripts in the subdirectories of 
  143.    /usr/lib/texmf/fonts which just builds the fonts in this directory and
  144.    below. Please note that the create.sh scripts are the old version of
  145.    creating the fonts. They will not create all the fonts which are
  146.    created by createallfonts! 
  147.  
  148.    However you do not have to build any pk files. TeX and the printer 
  149.    drivers can do this automatically with the shell script MakeTeXPK.
  150.    If you do not have a lot of diskspace or are not experienced with
  151.    TeX this may be the best solution. You might have to wait for the
  152.    creation of the fonts in the beginning, but just those fonts are
  153.    creasted which you really need. If you let MakeTeXPK create the pk 
  154.    fonts they will be installed in the directory /usr/lib/texmf/fonts/tmp/pk.
  155.  
  156.    After you have created the fonts you should call 
  157.  
  158.    /usr/lib/texmf/tools/create_ls-R
  159.  
  160.    in order to update the kpathsea ls-R databse.
  161.  
  162.    Note that also xdvi uses the localfont mode. If your localfont mode does 
  163.    not go along with xdvi, you should change the default mode of xdvi in
  164.    the app-defaults file /usr/lib/texmf/X/XDvi (this could also be done
  165.    with installntex or the ntb-xdvi.cfg script in /usr/lib/texmf/tools).
  166.  
  167. 6. After the installation is complete you can remove the installation directory
  168.    /tmp/install.ntex and the direcotry you used for mounting ntex01. In the
  169.    example above this was /tmp/ntex01. The disk ntex01 is unmounted 
  170.    automatically by the script install.sh
  171.  
  172. All the packages are installed in the directories /usr/bin (binaries),
  173. /usr/lib/texmf (fonts, macros, etc.), /usr/info (info files) and /usr/src/tex
  174. (sources). If you want to use /usr/local instead of /usr, just move the 
  175. directory /usr/lib/texmf to /usr/local/lib/texmf and the binaries for ntex 
  176. from /usr/bin to /usr/local/bin. To figure out which binaries are installed 
  177. in /usr/bin, type 
  178.         grep ./usr/bin/ *.idx
  179. in the installation directory and you'll get a list of the binaries. You get
  180. a list of the info files with
  181.         grep ./usr/info/ *.idx
  182. If you have a /usr/local/info directory, you can copy them there. To change
  183. the directories for the sources just move /usr/src/tex to /usr/local/src/tex. 
  184. After you have copied all the files to /usr/local/... , you have to change the
  185. paths for TeX and MetaFont. See the manual pages of TeX and MetaFont for the
  186. environment variables which have to be changed. Note that you do not need
  187. these environment variables if you keep TeX where it is installed since these
  188. paths are used as default paths.
  189.  
  190. Please also read the README file. You can find a list of the contents of the 
  191. disks ntex01 to ntex13 in the file DISKS. The files contained in each package 
  192. could be found in the .idx files on the installation disk. The .inf files on 
  193. the installation disk contain a short description for each package. All these
  194. descriptions could also be found in INFO.
  195.  
  196. If you have serious problems with the installation, please contact me. I will
  197. try my best to answer your mail.
  198.  
  199. Comments, suggestions and bug reports to Frank Langbein -
  200. e94fla@student.tdb.uu.se (till November 1994),
  201. langbein@fermat.mathematik.uni-stuttgart.de
  202.  
  203.