cvs commit: hints/PREVIOUS_FORMAT lyx.txt nfs.txt xfig.txt

tushar at linuxfromscratch.org tushar at linuxfromscratch.org
Wed Oct 22 22:13:10 PDT 2003


tushar      03/10/22 23:13:10

  Modified:    MAINTAINER STATUS
  Added:       PREVIOUS_FORMAT lyx.txt nfs.txt xfig.txt
  Removed:     HOLD     lyx.txt nfs.txt xfig.txt
  Log:
  Removed some hints from HOLD
  
  Revision  Changes    Path
  1.32      +3 -0      hints/MAINTAINER/STATUS
  
  Index: STATUS
  ===================================================================
  RCS file: /home/cvsroot/hints/MAINTAINER/STATUS,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -u -r1.31 -r1.32
  --- STATUS	23 Oct 2003 02:06:47 -0000	1.31
  +++ STATUS	23 Oct 2003 05:13:10 -0000	1.32
  @@ -44,10 +44,12 @@
      * lin2win: Conversion in progress.
      * linuxlogo: No response from author.
      * lowspace: Orphaned. To be merged with stripped-down.
  +   * lyx: No response from author.
      * lzw_graphics: No response from author.
      * metalog: Could not contact author.
      * more_control_and_pkg_man: Conversion in progress.
      * newbie: No response from author.
  +   * nfs: No response from author.
      * numlock: Conversion in progress.
      * openssh_remote_floppy: No response from author.
      * pam+shadow+cracklib: Could not contact author.
  @@ -75,4 +77,5 @@
      * xasroot: Could not contact author.
      * xawtv: Could not contact author.
      * xconsole_setup: Conversion in progress.
  +   * xfig: No response from author.
      * xmail: Orphaned.
  
  
  
  1.1                  hints/PREVIOUS_FORMAT/lyx.txt
  
  Index: lyx.txt
  ===================================================================
  TITLE:		LyX from scratch
  LFS VERSION:	4.1
  AUTHOR:		Marnix Kaart <marnix_lfs at mkaart.net>
  
  SYNOPSIS:	How to install LyX
  
  HINT:
  
  Contents:
   1. Preface
   2. Requirements
   3. Installing tetex-2.0.2
   4. Installing ImageMagick-5.5.6
   5. Installing Lyx-1.3.2
   6. Additional settings
   7. Changelog
  
  1. Preface
  ----------
  I am not an expert on the area of LaTeX of LyX, I just managed to get it
  running on my box. This hint describes how I did it. Please send all
  questions to the blfs mailinglist. Suggestions for improving this hint are
  welcome.
  
  Please refer to the DISCLAIMER at
  http://hints.linuxfromscratch.org/hints/DISCLAIMER
  
  2. Requirements
  ---------------
  This hint assumes you have the following installed on your box already:
  	- XFree86-4.3.0
  	- qt-3.1.2
  	(Older versions may work, but above is the setup I have)
  
  For viewing or exporting to postscript you need at least:
  	- ghostscript-8.00
  	- gsview-4.3
  	(gsview is not supported in the "view" menu. I tried to make a symlink
  	gv to gsview but this does not work. You probably need gv or ghostview
  	if you insist on previewing your work as postscript. Exporting to ps
  	and later viewing it with gsview DOES work.)
  
  For viewing or exporting to pdf you need:
  	- xpdf-2.02
  
  For importing older LyX files you need:
  	- python-2.2.2
  
  Setup instructions for these packages are in the BLFS book
  I am not sure if this list is complete, but this is what I have.
  As far as I know the "reconfigure" option in the "edit" menu can be used when
  you later install some package that can be used by LyX.
  
  3. Installing tetex-2.0.2
  -------------------------
  Download the following packages:
  
  ftp://sunsite.informatik.rwth-aachen.de/pub/comp/tex/teTeX/2.0/distrib/tetex-src-2.0.2.tar.gz
  ftp://sunsite.informatik.rwth-aachen.de/pub/comp/tex/teTeX/2.0/distrib/tetex-texmf-2.0.2.tar.gz
  ftp://sunsite.informatik.rwth-aachen.de/pub/comp/tex/teTeX/2.0/distrib/tetex-texmfsrc-2.0.2.tar.gz
  
  I copied these instructions from the BLFS book:
  
  TeX is installed slightly differently than a typical GNU package, these
  instructions will assume /usr/src to be the current working directory,
  containing the three TeX tarballs.
  
  Install TeX by running the following commands:
  
  mkdir -p /usr/share/texmf &&
  tar zxvf tetex-src-2.0.2.tar.gz &&
  cd tetex-src-2.0.2 &&
  gzip -dc ../tetex-texmf-2.0.2.tar.gz \
        | (umask 0; cd /usr/share/texmf; tar xvf -)
  
  If the optional texmf source code tarball was downloaded, untar it now:
  
  gzip -dc ../tetex-texmfsrc-2.0.2.tar.gz \
        | (umask 0; cd /usr/share/texmf; tar xvf -)
  
  ./configure --prefix=/usr \
      --without-texinfo   --with-system-ncurses --with-system-zlib \
      --exec-prefix=/usr --bindir=/usr/bin &&
  make world &&
  texconfig dvips paper letter &&
  texconfig font rw
  
  Mind that I left the --with-x=no option out, since I like to have xdvi for
  previewing my work.
  
  4. Installing ImageMagick-5.5.6
  -------------------------------
  The convert tool from ImageMagick is used for displaying inline figures.
  
  Download ImageMagick at
  ftp://ftp.imagemagick.net/pub/ImageMagick/ImageMagick-5.5.6.tar.gz
  
  Configure and build it with:
  ./configure --prefix=/usr --sysconfdir=/etc --with-gslib \
  	--with-gs-font-dir=/usr/share/ghostscript/fonts --with-x &&
  make &&
  make install
  
  To verify the build run:
  ./utilities/display
  or
  make check
  
  5. Installing Lyx-1.3.2
  -----------------------
  Download Lyx at
  ftp://ftp.lyx.org/pub/lyx/stable/lyx-1.3.2.tar.bz2
  
  Configure and build with:
  ./configure --with-frontend=qt --prefix=/usr -sysconfdir=/etc \
  	--with-qt-dir=/usr/local/qt &&
  make all &&
  make install
  
  6. Additional settings
  ----------------------
  I use the IEEEtran.cls classfile for writing articles, but I had some trouble
  in setting it up the first time. The IEEE template is already present in lyx,
  you just need to place the IEEEtran.cls file somewhere latex can find it.
  Here is how I did it:
  
  Download the author kit (IEEEtran.tar.gz) from
  http://www.ieee.org/organizations/pubs/transactions/stylesheets.htm
  
  As root:
  - Unpack the file and copy IEEEtran.cls into /usr/share/texmf/tex/latex
  - Run texhash
  
  As normal user (inside Lyx):
  Edit --> Reconfigure and restart LyX
  
  Now you should be able to actually create documents using the IEEEtran.lyx
  template.
  
  Enjoy!
  
  7. Changelog
  ------------
  20030527	Initial document
  
  
  
  1.1                  hints/PREVIOUS_FORMAT/nfs.txt
  
  Index: nfs.txt
  ===================================================================
  TITLE:		Running an NFS Server on LFS
  LFS VERSION:	any
  AUTHOR:		Ian Chilton <ian at ichilton.co.uk>
  
  SYNOPSIS:
  	A while ago, I wrote an LFS-Hint on setting up an NFS server on an LFS system. There is now a much better way to do it, using the NFS code in the later kernels.
  
  HINT:
  KERNEL VERSION:	2.2.18+ or 2.4.0+
  
  NOTE:
  This is not a complete guide to using NFS...it is only ment as a quick
  introduction to compiling the packages.
  
  ** There are some important security issues when using NFS **
  Please read: http://nfs.sourceforge.net/nfs-howto  for more info before
  you start using NFS.
  
  The author holds no responsibility for any loss or damage etc etc..
  
  
  First, we need TCP Wrappers:
  
  Download the following:
  http://files.ichilton.co.uk/nfs/tcp_wrappers_7.6.diff.gz
  http://files.ichilton.co.uk/nfs/tcp_wrappers_7.6.tar.gz
  
  Then do:
  tar xzvf tcp_wrappers_7.6.tar.gz
  cd tcp_wrappers_7.6
  zcat ../tcp_wrappers_7.6.diff.gz | patch -p1
  make REAL_DAEMON_DIR=/usr/sbin linux
  cp libwrap.a /usr/lib
  cp tcpd.h /usr/include
  cp safe_finger /usr/sbin
  cp tcpd /usr/sbin
  cp tcpdchk /usr/sbin
  cp tcpdmatch /usr/sbin
  cp try-from /usr/sbin
  
  
  Next we need the Portmapper:
  
  Download the following:
  http://files.ichilton.co.uk/nfs/portmap_5-1.diff.gz
  http://files.ichilton.co.uk/nfs/portmap_5.orig.tar.gz
  
  tar xzvf portmap_5.orig.tar.gz
  cd portmap_5beta
  zcat ../portmap_5-1.diff.gz | patch -p1
  make
  make install
  
  
  Now we do NFS Utils:
  
  Download:
  http://download.sourceforge.net/nfs/nfs-utils-0.2.1.tar.gz
  
  tar zxvf nfs-utils-0.2.1.tar.gz
  cd nfs-utils-0.2.1
  ./configure --prefix=/usr
  make
  make install
  
  
  That's all the software we need. You should do the above on all clients
  and the server. You should also update to the latest util-linux package
  on the clients. This is available from:
  ftp://ftp.win.tue.nl/pub/linux/utils/util-linux/
  
  
  Now, we need to recompile the kernel.
  
  In the Filesystems -> Network Filesystems section on the kernel config,
  you should have the following:
  
  * NFS filesystem support
     - NFS Version 3 filesystem support
  
  * NFS server support
     - NFS Version 3 server support
     - NFS server TCP support
  
  
  For the server, you should enable these:
  
  * NFS filesystem support
     - NFS Version 3 filesystem support
  
  
  For the clients, you should enable these:
  * NFS server support
     - NFS Version 3 server support
  
  
  Recompile and boot the new kernel.
  
  
  Then, we need an /etc/exports file.
  
  An example 'share' is:
  
  /home/ian 192.168.0.1(rw)
  
  
  The format is obvious:  /home/ian is the directory to share,
  192.168.0.1 is the client to share to, and rw is read-write mode.
  
  
  Then, on the server, start NFS...this is my startup script:
  
  #!/bin/sh
  # Begin /etc/init.d/nfs
  
  source /etc/init.d/functions
  
  case "$1" in
          start)
                  echo -n "Starting RPC Portmapper"
                  loadproc /sbin/portmap
                  echo -n "Starting NFS"
                  loadproc /usr/sbin/rpc.mountd
                  loadproc /usr/sbin/rpc.nfsd 8
                  loadproc /usr/sbin/rpc.statd
                  ;;
  
          stop)
                  echo -n "Stopping NFS"
                  killproc /usr/sbin/rpc.nfsd
                  killproc /usr/sbin/rpc.mountd
  
                  echo -n "Stopping Portmapper"
                  killproc /sbin/portmap
                  ;;
  
          reload)
                  echo "Reloading NFS"
                  /usr/sbin/exportfs -ra
                  ;;
  
          restart)
                  $0 stop
                  /usr/bin/sleep 1
                  $0 start
                  ;;
  
          *)
                  echo "Usage: $0 {start|stop|reload|restart}"
                  exit 1
          ;;
  
  esac
  
  # End /etc/init.d/nfs
  
  
  
  On the workstations, you just need this:
  
  #!/bin/sh
  # Begin /etc/init.d/nfsclient
  
  source /etc/init.d/functions
  
  case "$1" in
          start)
                  echo -n "Starting RPC Portmapper"
                  loadproc /sbin/portmap
                  echo -n "Starting statd for NFS" 
                  loadproc /usr/sbin/rpc.statd
                  ;;
  
          stop)
                  echo -n "Stopping Portmapper"
                  killproc /sbin/portmap
                  ;;
  
  
          restart)
                  $0 stop
                  /usr/bin/sleep 1
                  $0 start
                  ;;
  
          *)
                  echo "Usage: $0 {start|stop}"
                  exit 1
          ;;
  
  esac
  
  # End /etc/init.d/nfsclient
  
  
  Now all that remains is to mount the remote directory on the client:
  
  mount server:/home/ian /mntdir
  (or, I use mount -o rsize=8192,wsize=8192,hard,intr server:/home/ian
  /mntdir)
  
  See the new version of the NFS-HOWTO
  (http://nfs.sourceforge.net/nfs-howto) for more information.
  
  
  
  
  1.1                  hints/PREVIOUS_FORMAT/xfig.txt
  
  Index: xfig.txt
  ===================================================================
  TITLE:		Xfig and Transfig
  
  LFS VERSION:	4.1, but probably anything with gcc >= 2.95.3
  
  AUTHOR:		Uli Fahrenberg <uli at math dot auc dot dk>
  
  SYNOPSIS:
  	Installing Xfig and Transfig in /usr
  
  HINT:
  
  Xfig is a powerful drawing program especially useful for schematic drawings,
  and Transfig is the image format conversion tool that goes with it. Xfig
  depends on Transfig, but Transfig can be used as a standalone tool, too. This
  hint covers installation of them both, and we tweak the Imakefiles to make
  them install in the /usr hierarchy, instead of /usr/X11R6 and /usr/local.
  
  
  SOFTWARE:
  
  xfig.3.2.4.full.tar.gz and transfig.3.2.4.tar.gz from
  
  	http://www.xfig.org/xfigdist/
  
  
  DEPENDENCIES:
  
  Xfig needs:
  
  	png
  	zlib (?)
  
  Xfig will utilize:
  
  	jpeg
  	xpm
  	ghostscript
  	netpbm
  
  Transfig needs:
  
  Transfig will utilize:
  
  	png
  	xpm
  
  I install Xfig first, but the order most probably doesn't matter. The variable
  XFIGLIBDIR is used in both programs' Imakefiles and should point to the same
  directory, so for consistency I declare it first:
  
  XFIGLIBDIR=/usr/share/xfig
  
  
  So now for the Xfig installation. If your X is too old and does not contain
  Xpm, leave out the USEXPM stuff below, or install Xpm separately before (or
  upgrade your X).
  
  mv Imakefile{,.orig}
  echo MANDIR=/usr/share/man/man1 > Imakefile
  cat Imakefile.orig | sed "s:XCOMM BINDIR = /usr/bin/X11:BINDIR=/usr/bin:g" \
      | sed "s:XCOMM MKDIRHIER = /bin/sh /usr/bin/X11/mkdirhier:MKDIRHIER=$(type -p mkdirhier):g" \
      | sed "s:XCOMM #define USEXPM:#define USEXPM:g" \
      | sed "s:XFIGLIBDIR = \$(LIBDIR)/xfig:XFIGLIBDIR=$XFIGLIBDIR:g" \
      | sed "s:XFIGDOCDIR = \$(LIBDIR)/xfig:XFIGDOCDIR=/usr/share/doc/xfig:g" \
      >> Imakefile
  xmkmf
  make
  make install.all
  
  
  Note: This will install some html and pdf documentation of Xfig, some of
  it in Japanese. If you want to avoid the japanese stuff, replace the
  `make install.all' above with
  
  make install
  make install.libs
  make install.man
  make install.rhtml
  
  
  Leave out the last one if you're not interested in html documentation at all.
  
  If your compilation bails out at SimpleMenu.c, you most probably do not have
  Xaw3d installed. Don't worry, you don't need Xaw3d (not for Xfig, that is).
  SimpleMenu.c wants to include some Xaw3d headers, but the original Xaw ones
  will do fine. Do the following to your Xfig sources and you should be going
  strong:
  
  mv SimpleMenu.c{,.orig}
  sed 's:#include <X11/Xaw3d/:#include <X11/Xaw/:g' SimpleMenu.c.orig \
      > SimpleMenu.c
  
  
  Thanks to Ken Moffat for the info. Note that not only will Xfig do fine with
  Xaw instead of Xaw3d, it even seems to look the same regardless of which
  headers are used.
  
  
  OK, here we go with transfig. The DDA4 = -DA4 stuff is because I use DIN A4
  paper, leave it out if you don't. For Xpm see above. The DDEPSFIG and
  USELATEX2E sed's are useful only if you use LaTeX and partly influenced by my
  personal tastes. Read the Imakefiles for further info (hint: There's graphicx
  support too (and if you copy my instructions, you'll get both graphicx and
  epsfig)).
  
  mv Imakefile{,.orig} 
  echo BINDIR=/usr/bin > Imakefile 
  echo MANDIR=/usr/share/man/man1 >> Imakefile 
  cat Imakefile.orig >> Imakefile 
  mv fig2dev/Imakefile{,.orig} 
  echo BINDIR=/usr/bin > fig2dev/Imakefile 
  echo MANDIR=/usr/share/man/man1 >> fig2dev/Imakefile 
  cat fig2dev/Imakefile.orig | \
      sed "s:/usr/local/lib/X11/xfig:$XFIGLIBDIR:g" \
      | sed "s:XCOMM #define USEXPM:#define USEXPM:g" \
      | sed "s:XCOMM DDA4 = -DA4:DDA4 = -DA4:g" \
      | sed "s:XCOMM DDEPSFIG = -DEPSFIG:DDEPSFIG = -DEPSFIG:g" \
      | sed "s:FIG2DEV_LIBDIR = /usr/local/lib/fig2dev:FIG2DEV_LIBDIR=/usr/share/transfig:g" \
      >> fig2dev/Imakefile 
  mv transfig/Imakefile{,.orig} 
  echo BINDIR=/usr/bin > transfig/Imakefile 
  echo MANDIR=/usr/share/man/man1 >> transfig/Imakefile 
  cat transfig/Imakefile.orig | \
      sed "s:XCOMM USELATEX2E = -DLATEX2E:USELATEX2E = -DLATEX2E:g" \
      >> transfig/Imakefile 
  xmkmf 
  make Makefiles 
  make 
  make install 
  make install.man 
  
  
  That's it.
  
  
  



More information about the hints mailing list