\documentclass[letterpaper]{article}
\nonstopmode
\akai
\usepackage{linuxdoc-sgml}
\usepackage{qwertz}
\usepackage{url}
\usepackage[latin1]{inputenc}
\usepackage{t1enc}
\usepackage[english]{babel}
\usepackage{epsfig}
\usepackage{null}
\def\addbibtoc{
\addcontentsline{toc}{section}{\numberline{\mbox{}}\relax\bibname}
}%end-preamble
\setcounter{page}{1}
\title{Saving Space mini-HOWTO }
\author{§@ªÌ: Guido Gonzato, \nameurl{mailto:guido@ibogeo.df.unibo.it}{}\\ 
Ä¶ªÌ: Jing-Jong SHYUE, \nameurl{mailto:shyue@sonoma.com.tw}{}}
\date{v1.0.1, 7 April 1999}
\abstract{³o¥÷ mini HOWTO ´£¨ÑºÉ¥i¯à´î¤p Linux ¦w¸Ë©Ò»ÝªÅ¶¡ªº¤è¦V, ¯S§O°w¹ïµ§°O«¬¹q¸£ªº¨Ï¥ÎªÌ.}


\begin{document}
\maketitle
\tableofcontents

\section{Â²¤¶}

§Ú¶R¤F¤@¥xµ§°O«¬¹q¸£, ¦Ó°£¤F¹w¥ý¦w¸Ë¦nªº Windows ¤§¥~, §Ú·Q§â Linux ¤]¸Ë¤W¥h.
§Ú§â Windows ©Ò¨Ï¥Îªº¤À³Î°Ï´î¤p¨ì 500 MB, ¦p¦¹§Ú¦³ 240 MB ªºªÅ¶¡¥i¥Hµ¹ Linux ¨Ï¥Î.
§Ú¥²¶·¨Ï¥Î¤@¨Ç§Þ¥©, ¨Ã¾¨¶q´î¤ÖªÅ¶¡ªº»Ý¨D, ¤~¯à§â°ò©ó RedHat 4.1 ªº§¹¾ã¥\¯à¨t²Î¦w¸Ë¶i¥h.

´Nºâ§A¤£»Ý­n§ó¦hªºªÅ¶¡, ¦ý§A¤]¯à¦b³o¥÷¤å¥ó¤¤§ä¨ìÄÀ©ñµwºÐªÅ¶¡ªº¤èªk.
¦ý§Ú­n»¡¦b«e­±ªº¬O: ¦pªG¦³¥ô¦ó°ÝÃDµo¥Í, ½Ð¤£­n©Ç§Ú!!
§Ú±N¨Ï¥Î¤@¨Ç¥»½è¤W¦³¦MÀIªº¤è¦¡, ÁöµM§Ú¥Îªº«Ü¦n.
§Ú¤w¸gÄµ§i¹L§A¤F!!






\section{³nÅé»Ý¨D}



§A¥²¶·­n¦³:

\begin{itemize}
\item ¤@­Ó§¹¾ã¥i¹B§@ªº Linux ¨t²Î (¥ô¦óª©¥»À³¸Ó³£¥i¥H);
\item ¤@¯ëªº {\ttfamily gzip} À£ÁY¤u¨ãµ{¦¡, ©Î¬O {\ttfamily bzip2} À£ÁYµ{¦¡.
§A¥i¥H¦b \nameurl{ftp://sunsite.unc.edu:/pub/Linux/utils/compress}{} §ä¨ì³o¨Ç¤u¨ã; 
{\ttfamily bzip2} ªºÀ£ÁY²v¤ñ {\ttfamily gzip} ­n¦n, ¦ý³t«×¸ûºC¥B»Ý­n¸û¦hªº°O¾ÐÅé.
\item {\ttfamily upx} °õ¦æÀÉÀ£ÁYµ{¦¡, ¥Lªººô­¶¦b
\nameurl{http://cdata.tvnet.hu/~ml/upx.html}{} ©ÎªÌ 
\nameurl{http://wildsau.idv.uni-linz.ac.at/mfx/upx.html}{};
\item {\ttfamily zlibc} ®M¥ó, §A¥i¥H¦b \nameurl{ftp://sunsite.unc.edu:/pub/Linux/libs/compression}{} §ä¨ì.
ÀÉ¦W¬O {\ttfamily zlibc-X.X.tar.gz}, ¦Ó {\ttfamily X.X} ª©¥»§Ç¸¹.
\end{itemize}

ÁÙ¦³¤@¨Ç¨ä¥Lªº°õ¦æÀÉÀ£ÁY¾¹, ¨Ò¦p {\ttfamily gzexe} (§O¥Î³o­Ó); »P¦b {\ttfamily upx} ¤§«e³Ì¦n¥Îªº {\ttfamily tcx};
¥t¥~ÁÙ¦³ {\ttfamily tzx}, ²z½×¤W¤ñ {\ttfamily tcx} ¦n¥Î; ¦ý¥L§â§Úªº¨t²Î§Ë¶Ã¤F, ÁöµM§Ú¤£½T©w§Ú¬O§_¥Ç¤F¿ù»~.
§A³Ì¦nÁÙ¬O¥Î {\ttfamily upx}, ¦]¬°¥L¥i«H¿à, ¦³®Ä²v, ¦Ó¥B®e©ö¨Ï¥Î.

¥t¥~¦³¤@­Ó®Ö¤ß­×¸ÉÀÉÅý§A¥i¥H¨Ï¥Î¦p Stacker µ¥µ{¦¡©ÒÀ£ÁYªºµwºÐ, ¦ý¬O¹ï©ó¸ê®Æªº¼g¤JÃ­©w©Ê¨Ã¤£¬O«Ü¦n.
¬°¤F¦w¥þ°_¨£, ³Ì¦n§O¥Î.






\section{µ{§Ç}








\subsection{²¾°£®Ö¤ß­ì©lÀÉ}

®Ö¤ßªº­ì©lÀÉ·|¦û¥h¬ù 20 MB ªºªÅ¶¡, ©Ò¥H§AÀ³¸Ó·|·Q²¾°£¥L.
¦b§A²¾°£¤§«e, «ØÄ³§A¥ý«Ø¥ß¤@­Ó°w¹ï§A¾÷¾¹²ÕºA±M¥Îªº®Ö¤ßÀÉ.

§Ú {\itshape ¤£«ØÄ³\/} §â®Ö¤ß­ì©lÀÉ²¾°£, °£«D§A½T©w§Aªº¾÷¾¹¤w¸g³]©w§¹¦¨.
¦¹¥~, ·í§A­n½sÄ¶µ{¦¡®É, §A¤]»Ý­n®Ö¤ßªº \#include ÀÉ.

¦pªG§A¨M©w­n²¾°£®Ö¤ß­ì©lÀÉ, {\itshape ¤£­n\/} ²¾°£±¼ \url{include/linux} ³o­Ó¸ô®|, °£«D§A¥H«á¤£¦b³o¥x¾÷¾¹¤W½sÄ¶µ{¦¡.






\subsection{§R´îÀ³¥Îµ{¦¡}

­º¥ý¨M©w¦³­þ¨Çµ{¦¡¬O§A {\itshape ¯uªº\/} »Ý­nªº.
­þ¨Ç«h¬O¦h¾lªº: ¨Ò¦p§AÄ±±o§A¤£¯à¨S¦³ {\ttfamily emacs} ¶Ü? §A¤]¥i¥H§ï¥Î {\ttfamily jed}.

­þ¨Çµ{¦¡À³¸Ó­n«O¯d¬O¥Ñ§A¨M©wªº, ¤U­±¬O¤@¨Ç¤@¯ë©Êªº­nÂI:

\begin{itemize}
\item {\ttfamily gcc} ¬O«D±`¤jªº®M¥ó.
¦ý«o¬O½sÄ¶®Ö¤ß»P¥ô¦ó­ì¥ý¨S¦³ªºÀ³¥Îµ{¦¡©Ò»Ý­nªº.
·íµM, ¦pªG§A¦Û¦æ¼¶¼g C ©Î¬O Fortran µ{¦¡®É, ¨ä¤¤ªº {\ttfamily f2c} ©Î {\ttfamily g77} ¤]¬O¥²¶·ªº.
¨Ì¾Ú§Aªºª¬ªp¨Ó¨M©w¬O§_­n²¾°£¥L­Ì.
¦Ó¨ä¥Lªº½sÄ¶¾¹¦p {\ttfamily lcc} ¤]ÁÙ¤£¿ù, ¥u¬O¨S¦³ {\ttfamily gcc} °ª¶¥, §Ú·Q§A¥i¯à·|¯dµÛ¥L.
\item X11 ¬OÀ~¤Hªº¤j, ¦ý¦³¥L¬O¤@¥ó¦n¨Æ.
¦pªG§A¨M©w¤£¯à¨S¦³¥L, ¦Ü¤Ö§@¤U­±ªº¨Æ±¡:
¥u¯d¤U¥²­nªº X ¦øªA¾¹, ¨Ï¥Î¤@­ÓÂ²³æªºµøµ¡ºÞ²z¤¶­±, ¥u¯d¤U {\ttfamily xterm}, ¤£­n¦w¸Ë 100 dpi ªº¦r«¬µ¥µ¥.
\item TeX »P¦ñÀHªº®M¥ó¤]¬Û·íªº¤j. ©ñ±ó LaTeX ¦Ó¨Ï¥Î³æ¯Âªº TeX ¯à¬Ù¤U«Ü¦hªºªÅ¶¡;
¦pªG§A¨Ï¥Î {\ttfamily dvitty} ©Î {\ttfamily dvivga}, «h§A¥i¥H©ñ±ó X11 ¤Uªº¹wÄýµ{¦¡, ¨Ò¦p {\ttfamily xdvi} »P {\ttfamily ghostview}.
°£¥h³o¨Ç X11 ªº³nÅé, ¤]¯à´î¤Ö X11 ©Ò»ÝªºªÅ¶¡.
\item ¹CÀ¸³nÅé¬O¤£»Ý­nªº
\end{itemize}







\subsection{À£º^¤G¶i¦ìÀÉ}



§Ú­Ì¥i¥H¶}©l´î¤p¤G¶i¦ìÀÉ©Ò¦ûªºªÅ¶¡.
­º¥ý±NÀÉ®×·h¨ì \url{/usr/bin}, ¨Ã¨Ï¥Î³o­Ó«ü¥O
\begin{tscreen}
\begin{verbatim}
machine:/usr/bin# strip *
\end{verbatim}
\end{tscreen}


³o·|±N©Ò¦³´O¤J©ó¤G¶i¦ìÀÉ¤¤ªº²Å¸¹²¾°£.
§A¥i¥H¦b \url{/usr/X11R6/bin/} »P¨ä¥L¥]§t¦³°õ¦æÀÉªº¥Ø¿ý¤U°õ¦æ³o­Ó«ü¥O.
(§O§Ñ¤F§ä TeX »P {\ttfamily gcc} ªº°õ¦æÀÉ)
¦ý¬O {\itshape ¤£­n\/} ¦b \url{/sbin}, \url{/bin}, ©Î \url{/usr/sbin/}
¤U­±¨Ï¥Î³o­Ó«ü¥O, ¥H§K¼vÅT¨t²Î.






\subsection{§Q¥Î {\ttfamily upx} À£ÁY°õ¦æÀÉ}



­º¥ý¦w¸Ë {\ttfamily upx} ¨Ã¾\Åª¬ÛÃö»¡©ú¤å¥ó.
µM«á¤Á´«¨ì \url{/usr/bin}, ¨Ã¥B°õ¦æ {\ttfamily upx *};
¥L·|§â©Ò¦³ªº°õ¦æÀÉÀ£ÁY, ¥]¬A¦³³]©w suid ªºÀÉ®×¤]·|³QÀ£ÁY ({\ttfamily tcx} ¤£·|À£³oºØÀÉ®×).
¦p¦P«e­±¤@¼Ë, ¦b©Ò¦³¥Ø¿ý¤U°õ¦æ³o­Ó«ü¥O.

·í§A¦w¸Ë¤F·sªºµ{¦¡®M¥ó«á, °O±o§â¥LÀ£°_¨Ó.






\subsection{§â¨ä¥LªF¦è¥Î Gzip À£°_¨Ó}



¨ä¥LÁÙ¦³¤@°ïÀÉ®×µLªk¤@¦¸À£°_¨Ó.
­º¥ý§Ú­Ì¥Ñ \url{/usr/doc/} ¶}©l.
²¾°Ê¨ì³o­Ó¸ô®|«á, ¨Ï¥Î¤U­±ªº«ü¥O:

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


·í§A¦w¸Ë¤F·sªºµ{¦¡®M¥ó«á, °O±o§â¥Lªº»¡©úÀÉÀ£°_¨Ó.

±µµÛ¦b¥]§t TeX »¡©ú¤å¥óªº¥Ø¿ý¤U­«½Æ¤W­±ªºÀ£ÁY«ü¥O,
¹ï§Úªº¨t²Î¦Ó¨¥, ³o¨Ç¤å¥ó¬O¦s©ñ¦b \url{/usr/lib/texmf/texmf/doc/}.
¦pªG§A§Æ±æªº¸Ü, ¤]¥i¥H§â³o¨ÇªF¦èª½±µ±þ±¼.

±µµÛ¦w¸Ë {\ttfamily zlibc}, ¨Ã½sÄ¶¥L. ¦pªG§Aªº¨t²Î©M§Ú¬Û¦üªº¸Ü, ½sÄ¶ªºµ{§Ç·|¦]¬°§ä¤£¨ìÀRºA³sµ²ªº libc ¦Ó³Q¤¤Â_.
¤£¥ÎºÞ¥L, §A·|§ä¨ì¤@­Ó¥s°µ {\ttfamily uncompress.o} ªºÀÉ®×, ³o´N¬O§Ú­Ì­nªº¤F.
§â³o­ÓÀÉ®×²¾¨ì \url{/usr/local/lib/} ¤U­±, ¨Ã¥B§â¤U­±³o¦æ¥[¨ì \url{/etc/profile} ¤¤.

\begin{tscreen}
\begin{verbatim}
export LD_ELF_PRELOAD=/usr/local/lib/uncompress.o
\end{verbatim}
\end{tscreen}


²{¦b°£¤F¤å¥óÀÉ¥i¥H¥Î {\ttfamily gzip} À£ÁY¥~, ¨ä¥Lªº¸ê®ÆÀÉ¤]¥i¥H³QÀ£ÁY.
¬ÛÃöªºµ{¦¡À³¸ÓÁÙ¬O¥i¥H¦s¨ú³o­Ó¸ê®ÆÀÉ.
²z½×¤W³o­Ó¤èªk¥i¥H¥Î¦b¦UºØµ{¦¡¤W.






\section{¤@­Ó¹ê¨Ò}



³o¬O§Ú¦b§Úªº¾÷¾¹¤W¥Î¤W­±ªº¤èªkªºµ²ªG, ®Ú¾Ú {\ttfamily df} ªº³ø§i,
¦b¶}©l´îªÎ«e, §Ú¥Î¤F 398,798 ­Ó¥H 1024 ¦ì¤¸²Õ¬°³æ¦ìªº°Ï¶ô.

\begin{itemize}
\item §Ú¨S¦³²¾°£®Ö¤ß­ì©lÀÉ»P®Ö¤ß¼ÐÀYÀÉ.
\item §Ú§â¤@¨Çµ{¦¡»P¹CÀ¸µ¹¤Ï¦w¸Ë±¼, ¦ý§Ú¯d¤U¤F X11,  X11 µ{¦¡µo®i®M¥ó,
C »P Fortran µo®i®M¥ó, Tcl/Tl, ºô¸ô¤u¨ã, ©M¨ä¥L¤@¨Ç¼Ð·Çµ{¦¡.
{\ttfamily df} ¦^³ø§Ú¥Î¤F 244,668 ­Ó°Ï¶ô.
\item §Ú¦b \url{/usr/bin}, \url{/usr/X11R6/bin},
\url{/usr/lib/texmf/bin/i586-linux}, ¥H¤Î \url{/usr/lib/gcc-lib/i386-linux/2.7.2.1}
¤U­±¨Ï¥Î {\ttfamily upx}, {\ttfamily df} ¦^³ø§Ú¥Î¤F 226,270 ­Ó°Ï¶ô.
\item §Ú§â \url{/usr/doc} »P \url{/usr/lib/texmf/texmf/doc}
¤U­±ªº¤å¥óÀ£ÁY°_¨Ó, {\ttfamily df} ¦^³ø§Ú¥Î¤F 198,745 ­Ó°Ï¶ô.
\end{itemize}


Á`µ²¦Ó¨¥, §Ú¤@¶}©l¥Î±¼¤F 398,798 ­Ó°Ï¶ô, ³Ì«á§Ú¥u¥Î¤F 198,745 ­Ó°Ï¶ô.
·Q·Q¬Ý§A¦b¤Ö©ó 200,000 ­Ó°Ï¶ôªº¨Ï¥Î¶q¤U¥i¥H¦³¦h¤ÖªF¦è!
¦pªG§Ú¥Î {\ttfamily bzip2} ¦Ó¤£¬O {\ttfamily gzip} ªº¸Ü, §ÚÁÙ¯à¬Ù¤U§ó¦hªºªÅ¶¡.

¥­§¡¦Ó¨¥, ¦pªG¤@¶}©l¦w¸Ë®É§A¥u¦w¸Ë¥²­nªºµ{¦¡, À£ÁY°õ¦æÀÉ»P»¡©úÀÉ,
¥i¯à¸`¬Ù 20 MB ªºªÅ¶¡, ¹ïµ§°O¹q¸£¦Ó¨¥, ³o¬O­Ó±Ï©R¤¦.




\section{Á`µ²}






\subsection{ª©ÅvÁn©ú(¦¹¬q¤£Ä¶)}



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 via email.




\subsection{§K³dÁn©ú(¦¹¬q¤£Ä¶)}



``Saving Space mini-HOWTO''was written by Guido Gonzato,
\nameurl{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   {\ttfamily =8-)}



\end{document}
