  Saving Space mini-HOWTO

  By Guido Gonzato,  guido@ibogeo.df.unibo.it <mailto:guido@ibo
  geo.df.unibo.it>

  v1.0.1, 7 April 1999
   : ȣ guru2k@kldp.org <mailto:guru2k@kldp.org>

   ̴ Ͽ ſ   ġ  ̿  ִ
   ϴ   ̴. Ư Ʈ ڸ 
  ۼ Ͽ.
  ______________________________________________________________________

  

  1. Ұ
  2. ʿ Ʈ
  3. 
     3.1 Ŀ ҽ ̱
     3.2 ø̼ ̱
     3.3 ̳ʸ ̱
     3.4 Upx ϱ
     3.5 Gzip ϱ

  4. ¥ ִ 
  5. The End
     5.1 Copyright
     5.2 Disclaimer

  ______________________________________________________________________

  1.  Ұ

     95 ġ Ʈ ϳ  ִ. 
   Ƽǿ 500ް,  240ް Ҵߴ. ڴ ۰
   ̴.  ű⿡  4.1   ý Ϻ ˸°
  ġ߰  ̿  ִ   ̻ϰԵ Ҵ.

    ʿϴٸ,   κп ã  ϵ
  ũ    ְ  ̴.   ſ
  Ǹ ش:    ߸Ǿٸ  å  !
  츮    ۾ ϴ 2 α׷  ̴. ׷
   ϴ.    ޾Ҵ.

  2.  ʿ Ʈ

  ʿ ͵:

    ý ۾ϱ ( ̶ );

  sunsite.unc.edu:/pub/Linux/utils/compress
  <ftp://sunsite.unc.edu:/pub/Linux/utils/compress>  ã  ִ
   gzip  ƿƼ Ȥ bzip2 ϳ;    gzip
   Ѵ. ׷     ޸𸮸 ҸѴ;

  cdata.tvnet.hu/~ml/upx.html <http://cdata.tvnet.hu/~ml/upx.html> 
  wildsau.idv.uni-linz.ac.at/mfx/upx.html <http://wildsau.idv.uni-
  linz.ac.at/mfx/upx.html>  Ȩ ִ upx   ִ 
  α׷;

  sunsite.unc.edu:/pub/Linux/libs/compression
  <ftp://sunsite.unc.edu:/pub/Linux/libs/compression>  ̿ 
  ִ zlibc Ű. zlibc-X.X.tar.gz Ҹ X.X ֽ ̴.

  ٸ    ִ  α׷ ִ. ϳ gzexe (ؾȴ),
   upx ̿  ְ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usr/X11R6/bin  ٸ
    丮 ݺض (TeX gcc ̳ʸ ؾ 
  ).  ׷ /sbin, /bin Ȥ /usr/sbin   !

  3.4.  Upx ϱ

  , upx ġϰ  о.   /usr/bin  upx *
     Ѷ;      ̴. ٸ
  丮  ۾ ݺ϶.

   Ű ġ      ϴ  ϶!

  3.5.  Gzip ϱ

  ѹ  ٸ   ִ. /usr/doc/  ;
  丮 ű  ϶

         machine:/usr/doc# find . -type f -exec gzip -9 {} \; 2> /dev/null

    Ű ġ   docs ϴ  ϶!

  TeX  Ե 丮  ۾ ݺϰ(ý
  /usr/lib/texmf/texmf/doc/. Ȯϸ  丮  ϶.

  , zlibc ġϰ     ̴.  ý 
  Ͱ ϴٸ,  μ libc() ٰ  ̴.
  ħϰ,   ʿ uncompress.o  Ҹ  ã
  ̴.   /usr/local/lib ű  /etc/profile Ͽ 
   ߰϶:

         export LD_ELF_PRELOAD=/usr/local/lib/uncompress.o

  ,  gzipθ    ִ. ׷  Ÿ : 
      ұϰ ø̼ װ  ̴.
  ̷, Ʈ κ ø̼ǰ ۾ ؾ  
   ܰ踦   ̴.    Ȱ 
  ʾҴ.

  4.  ¥ ִ 

      ǻ ϳ  Ų ̴. ϱ
  , df  398,798 1024--blocks ߴ:

   Ŀ ҽ Ŀ ش   ʾҴ;

    ø̼ǰ   . ׷  X11, X11
  , C Ʈ , Tcl/Tk, Ʈŷ  ׿ ٸ ǥ
  ø̼ǵ . df 244,669  Ѵٰ ߴ;

   /usr/bin /usr/X11R6/bin /usr/lib/texmf/bin/i586-linux
  /usr/lib/gcclib/i386-linux/2.7.2.1 upx ״.  226,270
   Ѵٰ ߴ;

   /usr/doc /usr/lib/texmf/tex/mf/dos  ߴ: 198,745
   Ѵٰ ߴ.

  հ踦 ϸ,  398,798  198,745  .  Ḧ
  غ.  200,000    ִ! gzip ſ bzip2
  ߴٸ     ̴.

   ,   ϰ ʿ ø̼ ġϰ,
    ϰ  20 ް   ش. ƮϿ,
     ڰ   ִ.

  ( :  κ ۱  κ   ʵ
  ϰڽϴ.)

  5.  The End

  5.1.  Copyright

  Unless otherwise stated, Linux HOWTO documents are copyrighted by
  their respective authors. Linux HOWTO documents may be reproduced and
  distributed in whole or in part, in any medium physical or electronic,
  as long as this copyright notice is retained on all copies. Commercial
  redistribution is allowed and encouraged; however, the author would
  like to be notified of any such distributions.

  All translations, derivative works, or aggregate works incorporating
  any Linux HOWTO documents must be covered under this copyright notice.
  That is, you may not produce a derivative work from a HOWTO and impose
  additional restrictions on its distribution. Exceptions to these rules
  may be granted under certain conditions; please contact the Linux
  HOWTO coordinator at the address given below.

  In short, we wish to promote dissemination of this information through
  as many channels as possible. However, we do wish to retain copyright
  on the HOWTO documents, and would like to be notified of any plans to
  redistribute the HOWTOs.

  If you have questions, please contact Tim Bynum, the Linux HOWTO
  coordinator, at tjbinum@sunsite.unc.edu
  <mailto:tjbinum@sunsite.unc.edu> via email.

  5.2.  Disclaimer

  ``Saving Space mini-HOWTO''was written by Guido Gonzato,
  REMOVE_MEguido@ibogeo.df.unibo.it
  <mailto:REMOVE_MEguido@ibogeo.df.unibo.it>.

  This document is provided ``as is''. I put great effort into writing
  it as accurately as I could, but you use the information contained in
  it at your own risk. In no event shall I be liable for any damages
  resulting from the use of this work.

  Feedback is welcome. For any requests, suggestions, flames, etc., feel
  free to contact me.

  Enjoy Linux and life,

  Guido   =8-)

