/usr/share/doc/HOWTO/ja-html/Saving-Space-3.html is in doc-linux-ja-html 2006.05.25-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>Saving Space mini-HOWTO : ¼ê½ç</TITLE>
<LINK HREF="Saving-Space-4.html" REL=next>
<LINK HREF="Saving-Space-2.html" REL=previous>
<LINK HREF="Saving-Space.html#toc3" REL=contents>
</HEAD>
<BODY>
<A HREF="Saving-Space-4.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Saving-Space-2.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Saving-Space.html#toc3">Ìܼ¡¤Ø</A>
<HR>
<H2><A NAME="s3">3. ¼ê½ç</A></H2>
<P>
<P>
<P>
<H2><A NAME="ss3.1">3.1 ¥«¡¼¥Í¥ë¥½¡¼¥¹¤Îºï½ü</A>
</H2>
<P>¥«¡¼¥Í¥ë¥½¡¼¥¹¤Ï 20MB °Ê¾å¤â¤¢¤ê¤Þ¤¹¤«¤é¡¢ºï½ü¤·¤¿¤¯¤Ê¤ë¤È¤³¤í¤Ç¤·¤ç¤¦¡£
¤½¤¦¤È¤Ê¤Ã¤¿¤é¡¢¤´¼«Ê¬¤Î¥Þ¥·¥ó¤Ë¹ç¤Ã¤¿¿·¤·¤¤¥«¡¼¥Í¥ë¤ò¥³¥ó¥Ñ¥¤¥ë¤·¤Æ¤·
¤Þ¤¤¡¢¤·¤«¤ë¤Î¤Á¤Ë¥½¡¼¥¹¤ò½èʬ¤¹¤ë¤³¤È¤Ç¤¹¡£¤¿¤À¤·¡¢ºî¶È¤Ï¿µ½Å¤Ë¤É¤¦¤¾¡£
<P>¥Þ¥·¥ó¤ÎÀßÄ꤬¤¤Á¤ó¤È¤Ç¤¤Æ¤¤¤ë¤«¤É¤¦¤«¿´¤â¤È¤Ê¤¤¤Î¤Ê¤é¡¢¥«¡¼¥Í¥ë¥½¡¼¥¹¤Î
ºï½ü¤Ï·è¤·¤Æ¤ª´«¤á¤Ç¤¤Þ¤»¤ó¡£¤Þ¤¿¡¢¥«¡¼¥Í¥ë¤Î¥¤¥ó¥¯¥ë¡¼¥É¥Õ¥¡¥¤¥ë¤Ï C ¤Î¥×
¥í¥°¥é¥à¤ò¥³¥ó¥Ñ¥¤¥ë¤¹¤ëºÝ¤Ë·ç¤«¤»¤Þ¤»¤ó¡£»öÁ°¤Ë¤¸¤Ã¤¯¤ê¹Í¤¨¤Þ¤·¤ç¤¦¡ª
<P>ºï½ü¤¹¤ë¤³¤È¤Ë¤·¤¿¾ì¹ç¤â¡¢°Ê¸å¤½¤Î¥Þ¥·¥ó¤Ç¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ò¥³¥ó¥Ñ¥¤¥ë¤¹¤ë
²ÄǽÀ¤¬¥¼¥í¤Ç¤Ê¤±¤ì¤Ð¡¢include/linux °Ê²¼¤Î¥Ç¥£¥ì¥¯¥È¥ê¥Ä¥ê¡¼¤Ï¤¼¤Ò»Ä¤·¤Æ
¤ª¤¤Þ¤·¤ç¤¦¡£
<P>
<H2><A NAME="ss3.2">3.2 ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ÎÀ°Íý</A>
</H2>
<P>¤µ¤Æ¡¢¤É¤¦¤·¤Æ¤âɬÍפʥ¢¥×¥ê¥±¡¼¥·¥ç¥ó¤òÁªÊ̤·¤Æ¤¯¤À¤µ¤¤¡£¹Í¤¨¤Æ¤ß¤ì¤Ð;·×¤Ê
¤â¤Î¤â¤¢¤ë¤Ï¤º¤Ç¤¹¡£¤¿¤È¤¨¤Ð¡¢ËÜÅö¤Ë Emacs ¤Ê¤·¤Ç¤Ï¤ä¤Ã¤Æ¤¤¤±¤Þ¤»¤ó¤«¡©¡¡Âå¤ï
¤ê¤Ë jed ¤ò»È¤¦¼ê¤â¤¢¤ê¤Þ¤¹¤è¡£
<P>¤É¤ì¤ò»Ä¤¹¤Ù¤¤«È½ÃǤ¹¤ë¤Î¤Ï¤¢¤Ê¤¿¼«¿È¤Ç¤¹¡£°Ê²¼¤Ï°ìÈÌÏÀ¤Ë¤Ê¤ê¤Þ¤¹¡£
<P>
<UL>
<LI>gcc ¤Ï¤«¤Ê¤êÂ礤ʥѥ屡¼¥¸¤Ç¤¹¡£¤¬¡¢¥«¡¼¥Í¥ë¤òºÆ¹½ÃÛ¤¹¤ë¤È¤¤ä¡¢Linux ¸þ¤±¤Î
¥Ð¥¤¥Ê¥ê¤¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤Ê¤¤¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤òºÆ¥³¥ó¥Ñ¥¤¥ë¤¹¤ë¤È¤¤Ë¤Ï·ç¤«¤»¤Þ¤»¤ó¡£
¤Þ¤¿¡¢¸À¤¦¤Þ¤Ç¤â¤¢¤ê¤Þ¤»¤ó¤¬¡¢¼«Ê¬¤Î¼ê¤Ç C ¤ä¡Ê f2c ¤Ê¤¤¤· g77 ¤ò»È¤Ã¤Æ¡ËFortran
¤Î¥×¥í¥°¥é¥à¤ò½ñ¤¯¤È¤¤âÆþ¤êÍѤˤʤê¤Þ¤¹¡£¼«Ê¬¤Ë¤Ï²¿¤¬É¬ÍפʤΤ«¡¢ºï½ü¤¹¤ëÁ°¤Ë¤è
¤¯¹Í¤¨¤Æ¤¯¤À¤µ¤¤¡£lcc ¤Ê¤É¡¢¤Û¤«¤Î¥³¥ó¥Ñ¥¤¥é¤â°¤¯¤Ï¤¢¤ê¤Þ¤»¤ó¤¬¡¢gcc ¤Ë¤Ï¤ª¤è¤Ó
¤Þ¤»¤ó¡£»Ä¤·¤Æ¤ª¤¤¤Æ¤Ï¤É¤¦¤Ç¤·¤ç¤¦¡£
</LI>
<LI>X11 ¤Ï¤É¤¦¤·¤è¤¦¤â¤Ê¤¯Â礤¤¤Î¤Ç¤¹¤¬¡¢¤¢¤Ã¤¿¤Û¤¦¤¬¤¢¤ê¤¬¤¿¤¤¤â¤Î¤Ç¤¹¡£¼êÊü¤»¤Ê¤¤
¤È¤Ê¤Ã¤¿¤é¡¢¤»¤á¤ÆɬÍ׺Ǿ®¸Â¤Î¹½À®¤Ç´Ö¤Ë¹ç¤ï¤»¤ë¤è¤¦Åؤá¤Þ¤·¤ç¤¦¡£X ¥µ¡¼¥Ð¤Ï»È¤¦
¤â¤Î¤À¤±¡¢¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã¤Ï¥·¥ó¥×¥ë¤Ê¤â¤Î¤ò¤Ò¤È¤Ä¤À¤±¡¢xterm ¤â¤Ò¤È¤Ä¤À¤±¡¢
100 dpi ¤Î¥Õ¥©¥ó¥È¤Ï¤¹¤Ã¤«¤êºï½ü¡¢¤È¤¤¤¦¶ñ¹ç¤Ë¡£
</LI>
<LI>TeX ¤ª¤è¤ÓÉտ魯¤ë¥Ñ¥Ã¥±¡¼¥¸¤ÎÂ礤µ¤¿¤ë¤äÁêÅö¤Ê¤â¤Î¤Ç¤¹¡£LaTeX ¤ò¤ªÊ§¤¤È¢¤Ë¤·¤Æ¡¢
¤Ò¤¿¤¹¤é plain TeX ¤òÍøÍѤ¹¤ì¤Ð¡¢¤ª¤ª¤¤¤Ë¥¹¥Ú¡¼¥¹¤òÀáÌó¤Ç¤¤Þ¤¹¡£¤Þ¤¿¡¢dvi2tty
¤ä dvivga ¤ò»È¤¦¤³¤È¤Ë¤¹¤ì¤Ð¡¢xdvi ¤ä ghostview ¤È¤¤¤Ã¤¿ X11 ¤Î¥×¥ì¥Ó¥å¡¼ÍÑ¥×¥í
¥°¥é¥à¤â½èʬ¤Ç¤¤Þ¤¹¡£X11 ¤Î DVI ¥×¥í¥°¥é¥à¤¬ÉÔÍפȤʤ俤顢X11 ¤½¤Î¤â¤Î¤¹¤é
̵ÍѤÎĹʪ¤Ë¤Ê¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£
</LI>
<LI>¥²¡¼¥à¤¬¡ÖɬÍספȤ¤¤¦¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó¤è¤Í¡£
</LI>
</UL>
<P>
<P>
<H2><A NAME="ss3.3">3.3 ¥Ð¥¤¥Ê¥ê¤Î¥·¥§¥¤¥×¥¢¥Ã¥×</A>
</H2>
<P>¤³¤³¤Ç¤Ï¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤Î¥µ¥¤¥º¤ò½Ì¾®¤·¤Æ¤¤¤¤Þ¤·¤ç¤¦¡£/usr/bin ¤Ë°ÜÆ°¤·¤Æ¤«¤é¡¢
<P>
<BLOCKQUOTE><CODE>
<PRE>
# strip *
</PRE>
</CODE></BLOCKQUOTE>
<P>¤È¥³¥Þ¥ó¥É¤òÆþÎϤ¹¤ì¤Ð¡¢¥Ð¥¤¥Ê¥ê¤ËËä¤á¤³¤Þ¤ì¤Æ¤¤¤ë¥·¥ó¥Ü¥ë¤¬½üµî¤µ¤ì¤Þ¤¹¡£
/usr/X11R6/bin/ ¤Ê¤É¡¢¼Â¹Ô¥Õ¥¡¥¤¥ë¤¬ÃÖ¤¤¤Æ¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê¤ÇƱ¤¸ºî¶È¤ò¤¯
¤ê¤«¤¨¤·¤Æ¤¯¤À¤µ¤¤¡Ê TeX ¤È gcc ¤Î¥Ð¥¤¥Ê¥ê¤âÈ´¤«¤ê¤Ê¤¯Ãµ¤·¤À¤·¤Þ¤·¤ç¤¦¡Ë¡£
¤¿¤À¤·¡¢¤´¼«Ê¬¤Î¥·¥¹¥Æ¥à¤¬Âç»ö¤Ê¤é¡¢ÀäÂÐ¤Ë /sbin ¤ä /bin ¡¢/usr/sbin/ ¤Ç
¼Â¹Ô¤·¤Æ¤Ï¤¤¤±¤Þ¤»¤ó¤è¡ª
<P>
<H2><A NAME="ss3.4">3.4 upx ¤Ë¤è¤ë°µ½Ì</A>
</H2>
<P>¤Þ¤º¤Ï upx ¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¡¢ÉÕ°¤Îʸ½ñ¤ËÌܤòÄ̤·¤Þ¤¹¡£¤½¤ì¤«¤é /usr/bin ¤Ë
°ÜÆ°¤·¡¢upx * ¤ò¼Â¹Ô¤·¤Þ¤¹¡£¤³¤ì¤Ç¼Â¹Ô¥Õ¥¡¥¤¥ë¤Ï¤¹¤Ù¤Æ¡¢¤½¤ì¤â¡Ê tcx ¤È¤Ï°ã¤Ã¤Æ¡Ë
suid ¤µ¤ì¤¿¤â¤Î¤Þ¤Ç°µ½Ì¤Ç¤¤ë¤Ï¤º¤Ç¤¹¡£¤³¤Îºî¶È¤âÁ°½Ò¤Î³Æ¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤¯¤ê¤«
¤¨¤·¤Æ¤¯¤À¤µ¤¤¡£
<P>¿·¤¿¤Ë¥Ñ¥Ã¥±¡¼¥¸¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤È¤¤Ï¡¢³Æ¼ï¼Â¹Ô¥Õ¥¡¥¤¥ë¤Î°µ½Ì¤ò¤ªËº¤ì¤Ê¤¯¡ª
<P>
<H2><A NAME="ss3.5">3.5 ¤«¤¿¤Ã¤Ñ¤·¤«¤é gzip</A>
</H2>
<P>°µ½Ì¤·¤Æ¤·¤Þ¤¨¤ë¥Õ¥¡¥¤¥ë¤Ï¤Þ¤À¤Þ¤À¤¢¤ê¤Þ¤¹¡£¤Þ¤º¤Ï /usr/doc/ ¤Ë¼è¤ê¤«¤«¤ê¤Þ¤·¤ç¤¦¡£
¤³¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë°ÜÆ°¤·¤¿¤é¡¢¼¡¤Î¥³¥Þ¥ó¥É¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£
<P>
<BLOCKQUOTE><CODE>
<PRE>
# find . -type f -exec gzip -9 {} \; 2> /dev/null
</PRE>
</CODE></BLOCKQUOTE>
<P>¿·¤¿¤Ë¥Ñ¥Ã¥±¡¼¥¸¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤È¤¤Ï¡¢³Æ¼ïʸ½ñ¥Õ¥¡¥¤¥ë¤Î°µ½Ì¤ò¤ªËº¤ì¤Ê¤¯¡ª
<P>¤³¤Îºî¶È¤Ï TeX ¤Î´ØϢʸ½ñ¤¬¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê¡ÊÉ®¼Ô¤Î¾ì¹ç¤Ï /usr/lib/texmf/texmf/doc/¡Ë
¤Ç¤â¤¯¤ê¤«¤¨¤·¤Þ¤¹¡£¤Þ¤¿¡¢ËÜÅö¤Ë¤«¤Þ¤ï¤Ê¤¤¤È¸À¤¤ÀÚ¤ì¤ëÊý¤Ï¡¢¤³¤¦¤·¤¿¥Ç¥£¥ì¥¯¥È¥ê¤ò
¤¹¤Ã¤«¤êºï½ü¤·¤Æ¤¯¤À¤µ¤¤¡£
<P>¤µ¤Æ¡¢¤Ä¤Å¤¤¤Æ¤Ï zlibc ¤Î¥¤¥ó¥¹¥È¡¼¥ë¤È¥³¥ó¥Ñ¥¤¥ë¤Ç¤¹¡£¤ª»È¤¤¤Î¥·¥¹¥Æ¥à¤¬É®¼Ô¤Î´Ä¶
¤È»÷Ä̤äƤ¤¤ë¤Ê¤é¡¢¥³¥ó¥Ñ¥¤¥é¤Ï¡Êstatic ¤Ê¡Ëlibc ¤¬¤Ê¤¤¤È¤¤¤¦¼ñ»Ý¤Î¥á¥Ã¥»¡¼¥¸¤ò½Ð¤·¡¢
ÅÓÃæ¤Ç»ß¤Þ¤Ã¤Æ¤·¤Þ¤¦¤Ç¤·¤ç¤¦¡£¤½¤ì¤Ç¤â¿´ÇۤϤ¤¤ê¤Þ¤»¤ó¡£uncompress.o ¤È¤¤¤¦
̾¤Î¥Õ¥¡¥¤¥ë¤¬¤¢¤ê¤Þ¤¹¤Í¡© ɬÍפʤΤϤ³¤¤¤Ä¤Ç¤¹¡£¤³¤ì¤ò /usr/local/lib/ ¤Ë°ÜÆ°¤·
¤Æ¤ä¤ê¡¢/etc/profile ¤Ë¼¡¤Î°ì¹Ô¤òÄɵ¤·¤Æ¤¯¤À¤µ¤¤¡£
<P>
<BLOCKQUOTE><CODE>
<PRE>
export LD_ELF_PRELOAD=/usr/local/lib/uncompress.o
</PRE>
</CODE></BLOCKQUOTE>
<P>¤µ¤¢¡¢¤³¤ì¤Çʸ½ñ¥Õ¥¡¥¤¥ë¤Ð¤«¤ê¤«¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤â gzip ¤Ç°µ½Ì¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤·¤¿¡£
¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤¬ÍøÍѤ¹¤ë¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ï¡¢º£¤ä°µ½Ì¤µ¤ì¤Æ¤¤¤Æ¤âÍøÍѤǤ¤ë¤Î¤Ç¤¹¡£
¤³¤Î΢µ»¤Ï¡¢Íý¶þ¤Î¾å¤Ç¤Ï¤¿¤¤¤Æ¤¤¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ËÄÌÍѤ¹¤ë¤Ï¤º¤Ç¤¹¤¬¡¢¼ÂºÝ¤ÎÀ®²Ì¤Ï
¤Þ¤Á¤Þ¤Á¤Ç¤·¤ç¤¦¡£É®¼Ô¤Î¾ì¹ç¤Ïº£¤Ò¤È¤Ä¤Ç¤·¤¿¡£
<P>
<HR>
<A HREF="Saving-Space-4.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Saving-Space-2.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Saving-Space.html#toc3">Ìܼ¡¤Ø</A>
</BODY>
</HTML>
|