[an error occurred while processing this directive]
by Guido Socher (homepage)
¹ØÓÚ×÷Õß:
Guido ·Ç³£Ï²»¶ gentoo£¬ÒòΪ gentoo ÄܸøËû¶Ô°²×°¹ý³Ì¸ü¶àµÄ¿ØÖÆȨ£¬±ÈÆäËüÈκη¢Ðа涼¶àµÄ¿ØÖÆȨ¡£
Ŀ¼:
|
Gentoo linux
ÕªÒª:
Gentoo Linux ÊÇÒ»¸ö»ùÓÚÔ´Âë°üµÄ Linux ϵͳ¡£ºÍÒÑÓеÄÉÌÒµ·¢ÐаæÏà±È£¬Gentoo ·Ç³£¶ÀÌØ¡£
_________________ _________________ _________________
|
¼ò½é
Èç½ñµÄÉÌÒµ linux ·¢ÐаæÌṩÁËÒ»¸ö¼¸ºõÍêÈ«×Ô¶¯»¯µÄ°²×°¹ý³Ì¡£ÔÚ×Ô¶¯µÄÓ²¼þ¼ì²âÖ®ºó£¬ÄãÖ»Òª»Ø´ð¼¸¸öÎÊÌ⣬»®·ÖÓ²Å̾ͿÉÒÔÁË¡£Ò»»á¹¦·ò£¬ËùÓеĶ«Î÷¾Í¶¼°²×°ºÃÁË£¬ÄãÖ»ÒªµÇ½¾ÍÐÐÁË¡£
ºÜ¶àÈ˶¼Í¦Ï²»¶ÕâÖÖ°²×°·½Ê½µÄ£¬ÒòΪÕâȷʵ·Ç³£¼òµ¥£¬Äã¸ù±¾¾Í²»ÐèÒª¶ÔÄãµÄÓ²¼þÓÐʲôÁ˽⡣
È»¶ø£¬ÓÐÒ»¸öÎÊÌ⣺Äã¶ÔϵͳµÄ¹¤×÷·½Ê½Ò»ÎÞËùÖª¡£ÒÔºóÈç¹û³öÏÖÁËʲôÅäÖÃÎÊÌ⣬Äã¸ù±¾¾Í²»ÖªµÀÒÑÓеÄÉèÖôӺζøÀ´£¬ÐèÒªÐÞ¸ÄÄĸöÎļþ»òÊÇʹÓÃʲôÅäÖù¤¾ßÀ´½â¾öÕâ¸öÎÊÌâ¡£
Gentoo µÄ²»Í¬Ö®´¦
Gentoo ºÍÆäËü³£¼û·¢ÐаæÏà±ÈÊ®·ÖÓëÖÚ²»Í¬¡£¼¸ºõûÓж«Î÷ÊÇ×Ô¶¯Íê³ÉµÄ¡£´ó²¿·ÖµÄÉèÖö¼ÊÇͨ¹ýʹÓñà¼Æ÷ÊÖ¹¤ÉèÖÃÅäÖÃÎļþÍê³ÉµÄ£¬°²×°¹ý³Ì»áÏûºÄ´óÁ¿µÄʱ¼ä¡£
Gentoo µÄ°²×°¹ý³Ì¿ÉÒÔ¿´×öÊÇÒ»´Î Linux µÄ¿Î³Ì¡£Äã¿ÉÒÔ´ÓÖÐѧµ½ºÜ¶àÓйØϵͳµÄ֪ʶ¡£´óÁ¿µÄ²½Ö趼ÊÇÊÖ¹¤Íê³ÉµÄ£¬ÏûºÄÁ˺ܶàʱ¼ä£¬µ«´Ó´ËÒÔºó£¬Äã¿ÉÒÔ¸üºÃµØÀí½âÄãµÄ Linux ϵͳµØ¹¤×÷ÁË¡£
Gentoo »¹Ê¹ÓÃÌض¨µØ±àÒëÆ÷Ñ¡Ïî±àÒë³ÌÐò£¬ÕâЩѡÏî¿ÉÒÔÉú³ÉΪÄãµÄ CPU ¶¨ÖƵÄÓÅ»¯´úÂë¡£³ý´ËÖ®Í⣬Ä㻹¿ÉÒÔ¼ÓÈë»òÈ¥µôijЩ±àÒëÌØÕ÷¡£×îÖյĽá¹û¾ÍÊÇÒ»¸ö·ûºÏÄãµÄÐèÒªµÄÓÅ»¯µÄ¡¢¸öÐÔ»¯µÄϵͳ¡£
Gentoo µÄ°²×°¹ý³ÌÊÇ»ùÓÚÃüÁîÐÐµÄ |
Èí¼þ°ü¹ÜÀí
Gentoo ÊÇ»ùÓÚÔ´´úÂë·¢²¼µÄ¡£»»¾ä»°Ëµ£ºÈ±Ê¡Çé¿öÏ£¬Ä㽫ʹÓÃÒ»¸ö³ÆΪ emerge/ebuild µÄ×Ô¶¯±àÒëϵͳ´ÓÔ´´úÂ뿪ʼ°²×°ÏµÍ³¡£Emerge ʹÓà /usr/portage Ŀ¼Ê÷ϵıàÒëÖ¸Áî¡£ÔÚ /usr/portage ֮ϣ¬Äã¿ÉÒÔ¿´µ½´æ·Å emerge µÄ±àÒë½Å±¾µÄ×ÓĿ¼¡£±ÈÈ磬Ŀ¼ /usr/portage/app-editors/ ´æ·ÅÁËÓÃÓÚ±àÒë¸÷ÖÖ±à¼Æ÷µÄ±àÒë½Å±¾¡£ÔÚ /usr/portage/packages Ï£¬ÕâÀï´æ·Å×űàÒëÇ°µÄ¶þ½øÖÆ°ü¡£ÕâЩ¶þ½øÖÆ°ü¿ÉÒÔÓÃÓÚ¼ÓËÙ°²×°¹ý³Ì¡£ÔÚ /usr/portage/distfiles ֮ϣ¬Äã¿ÉÒÔ´æ·ÅÓÉÆäËü¿ª·¢Õß·¢²¼µÄ tar ´ò°üµÄÔ´´úÂë¡£Èç¹ûÕâÀïÒѾ´æÔÚ´úÂëÁË£¬emerge ¾Í²»»áÔÙÈ¥´ÓÍøÉÏÏÂÔØÔ´´úÂëÁË¡£
Ò»¸ö·Ç³£ÖØÒªµÄ¸öÐÔ»¯Ñ¡Ïî¾ÍÊÇ /etc/make.conf ÎļþÖÐµÄ "USE flags"¡£Ðí¶àÓ¦ÓóÌÐò¶¼ÎªËüÃǵÄÒÀÀµ¹ØϵÌṩÁ˱àÒëÆÚÑ¡Ïî(È磺ÊÇ·ñ¼ÓÈë mysqlµÄÖ§³Ö£¬Ê¹Óà Athena widget »¹ÊÇ Qt£¬Ê¹Óà oss »¹ÊÇ alsa ...)¡£Í¨¹ýÕýÈ·ÉèÖÃÕâЩѡÏÄã¿ÉÒÔµ÷ÕûÄãµÄ°²×°¡£
ÕâÊÇÒ»¸ö emerge ʹÓõÄÀý×Ó¡£Òª°²×° vim£¬ÄãÖ»ÒªÔËÐУº
emerge -k app-editors/vim
»òÖ±½ÓÔËÐÐ
emerge -k vim
-k Ñ¡ÏîÒâζ×ÅÈç¹û¿ÉÒÔ£¬¾Í´Ó¶þ½øÖÆ°ü¿ªÊ¼°²×°£¬·ñÔò¾Í´ÓÍøÉÏÏÂÔØÔ´´úÂë¡¢±àÒë°²×°¡£Èç¹ûÒªÔËÐÐ "emerge -k vim" µÄ»°£¬Äã¿ÉÒÔʹÓà "-p" Ñ¡ÏîÔÚ°²×°Ç°²é¿´ÏµÍ³½«Òª×öЩʲô¡£
emerge -k -p vim
Õ⽫¸æËßÄ㣬ÄÇЩÆäËüµÄ±»ÒÀÀµµÄÈí¼þ°ü½«»á±»°²×°ºÍÈç¹ûÄãûÓÐʹÓÃ"-p"Ñ¡ÏîµÄ»°£¬ÏµÍ³½«»á×öʲô¹¤×÷¡£(p Òâζ×Å pretend£¬¼Ù×°¡¢Ñð¶¯)
´Ó Red hat ת¹ýÀ´µÄÓû§»áϲ»¶ ¡°epm¡±ÃüÁîµÄ£¬Ëü¾ÍÊÇ gentoo µÄ "rpm" ÃüÁî¡£±ÈÈ磬²éѯһ¸öÎļþÊÇÊôÓÚÄĸöÈí¼þ°üµÄ£¬Äã¿ÉÒÔÓãº
epm -qil -f /the/file
ÈçÄãËù¼û£¬¸ñʽºÍ redhat µÄ rpm ÍêÈ«Ò»Ö¡£
²éѯÈí¼þ°üµÄÐÅÏ¢µÄÁíÒ»¸öÑ¡ÔñÊÇ qpkg ÃüÁî¡£qpkg Ò²ÊÇÒ»¸ö·Ç³£Ç¿´óµÄ½Ó¿Ú£¬µ«ÃüÁî¸ñʽºÍ rpm ²»Ò»ÑùÁË¡£ÀýÈ磬Ҫ´óÓ¡ËùÓÐÒÑ°²×°µÄÈí¼þ°üµÄÁÐ±í£¬¿ÉÒÔÔËÐУº
qpkg -I -nc
°²×°
Gentoo ÐèÒªÁ¼ºÃµÄÍøÂçÌõ¼þ (DSL ÀàµÄ½ÓÈë»ò¸üºÃ)¡£ÀíÂÛÉϽ²£¬gentoo Ò²¿ÉÒѽö½öʹÓà CD£¬µ«ÔÚÎÒ¿´À´ÕâÊDz»Ì«ÏÖʵµÄ¡£×Ü»áÓÐЩÄãÐèÒªµÄÈí¼þ°üÔÚ¹âÅÌÉÏÎÞ·¨ÕÒµ½¡£Gentoo Óзdz£·á¸»µÄÈí¼þ°ü (»òÊDZàÒëÖ¸Áî¸üÐÂ)¡£
ÎÒ½¨ÒéµÚÒ»´Î³¢ÊÔ gentoo µÄÈËʹÓùâÅÌ£¬´Ó "state3" ¿ªÊ¼¡£"state3" µÄ tar °üÊÇ´óµÄÔ¤±àÒë°ü¡£Ê¹ÓÃÕâЩ°ü¿ÉÒÔ´ó´ó¼Ó¿ì°²×°Ëٶȡ£
³ýÁËÕâ¸ö½¨Ò飬ÎÒ²»×¼±¸¸øʲô¸üϸ½ÚµÄ½âÊÍ£¬ÒòΪ gentoo µÄ°²×°Ö¸ÁîÉæ¼°µ½ÁËÌ«¶àµÄ¶«Î÷¡£¶ø gentoo µÄÓû§ÊÖ²á (pdf, 1102643 bytes) ºÍ ¿ìËٲο¼ÊÖ²á (pdf, 17899 bytes) ·Ç³£Ï꾡¡£ÄãÓ¦¸ÃÊ×ÏÈÔĶÁÓû§Êֲᣬ²¢´òÓ¡Ò»·Ý¿ìËٲο¼Êֲᣬһ±ßÒ»¿ÌÒÑÔÚ°²×°µÄʱºò²Î¿¼¡£
Äã¿ÉÄÜ»¹ÐèÒª¿´¿´ gentoo 1.4 °²×°Ö¸ÁîÊÖ²á (pdf, 92926 bytes)¡£ÕâЩָÁîÖеĴ󲿷ÖÔÚ gentoo 2004.0 ÖÐÒÀÈ»ÊǺϷ¨µÄ£¬µ«ÓÐЩ¶«Î÷ÐèҪͬʱ²Î¿¼Õâ·Ý 117 Ò³µÄ°²×°Ö¸ÁîÊÖ²áºÍ¿ìËٲο¼Ö¸ÄÏ¡£
Gentoo µÄÒ»´óÓŵã¾ÍÊÇÄã¿ÉÒÔÔÚ°²×°¹ý³ÌÖÐËæʱ´ò¶Ï¡£Èç¹ûÄãÓöµ½Ê²Ã´ÎÊÌ⣬Äã¿ÉÒÔжÔØÕâЩ·ÖÇø¡¢µ÷²éÎÊÌâ¡£µ±ÄãÐèÒª¼ÌÐøµÄʱºò£¬ÖØмÓÔØÕâЩ·ÖÇø²¢¼ÌÐøÖÐÖ¹Á˵ݲװ¹ý³Ì¾ÍÐÐÁË¡£
¶ÔÓÚÕâЩ¹âÅÌ£¬ÎÒ½¨ÒéÄãÏÂÔØ CD1 ºÍ 2 µÄ ISO ¾µÏñ£¬µ«Ö»¿Ì¼ CD1¡£CD1 ÊÇÖ÷°²×°¹âÅÌ£¬Ò²ÊÇÒ»ÕŲ»´íµÄÐÞ¸´ÅÌ£¬°üÀ¨ºÜ¶à¹¤¾ß¡£
CD2 Ö»ÓÉÔ¤±àÒë°ü£¬°²×°Ö®ºóÄã¾Í²»ÔÙÐèÒªËüÁË£¬³ý·ÇÄãÈ·ÐÅÄãÒª¶à´Î°²×° Gentoo¡£CD2ÎÞÐè¿Ì¼£¬Ö»ÒªÔÚ°²×°Ê±Óà loopback °ÑËü¼ÓÔص½ /usr/portage/packages ¾ÍÐÐÁË£º
mkdir /usr/portage/packages
mount -o loop -t iso9660 packages-pentium3-2004.0.iso /usr/portage/packages
# note: change the name of iso image to the right one for your cpu type
Íê³ÉÖ®ºó
Ö÷Òª°²×°¹ý³Ì½«ÒÔÃüÁîÐнáÊø¡£Ò²¾ÍÊÇ˵£¬Ä㻹ÐèÒªÊÖ¹¤°²×° X11, KDE, xfce, ... »òÆäËüÄãÏëÒªµÃ´°¿Úϵͳ¡£
ÄãÐèÒªÊÖ¹¤±à¼ XF86Config Îļþ²¢Óà startx Æô¶¯ X11¡£Ò»µ© X11 ¹¤×÷ÁË£¬Äã¿ÉÒԱ༠gdm »ò kdm µÄÅäÖÃÎļþÀ´µÃµ½Ò»¸öͼÐλ¯µÄµÇ½´°¿Ú¡£
°²×°Íê³ÉµÄϵͳ½ö°üÀ¨ÃüÁîÐпÉÄÜ»á´ò»÷һЩÓû§£¬µ«ÕâÒ²¸øÀëÄã¸ü¶àµÄ¿ØÖÆȨ£¬Äã¿ÉÒÔͨ¹ý emerge ¿ØÖÆÿһ¸öÈí¼þ°üµÄ°²×°¡£
½áÂÛ
Gentoo µÄÄ¿±êÊÜÖÚÊÇÓоÑéµÄ UNIX/Linux Óû§
ÒªÓÐЧµØʹÓà Gentoo£¬ÄãÐèÒªÖîÈç DSL µÄÁ¼ºÃµÄÍøÂçÌõ¼þ¡£ËäÈ»ºÜ¶àÍøÕ¾Ìṩ Gentoo °²×°¹âÅÌ£¬µ«ÔÚÓÐ DSL Á´½ÓµÄÇé¿öÏ£¬¿ÉÄÜ»¹ÊǰѹâÅ̾µÏñÏÂÔØÏÂÀ´¸üºÃ¡£
Èç¹ûÓм¸ÕÅ DVD ¿ÉÒÔÈÝÄÉÈ«²¿ gentoo µÄ distfiles ºÍ¶ÔÓ¦µÄ portage tree µÄ snapshots ½«ÊÇÒ»¼þºÜÃÀÃîµÄÊÂÇé¡£ÕâÑùµÄ DVD ¿ÉÒÔÔÊÐíÎÒÃÇÔÚûÓÐÍøÂçµÄÇé¿öÏ°²×°ÏµÍ³£¬²¢ÇÒ¿ÉÒÔ³¤ÆÚά³ÖÒ»¸ö±È½ÏÀϵݲװ°æ±¾¡£Èç¹ûËÌṩÕâÑùµÄ·þÎñÇë¸æÖª±ÖÈË£¬ÎÒ½«ÔÒ⹺ÂòÕâÕŹâÅÌ¡£
Gentoo µÄ°²×°¹ý³Ì°üÀ¨ºÜ¶à²½Ö裬»¨·ÑºÜ³¤Ê±¼ä£¬µ«¸öÐÔ»¯ºÍÓÅ»¯»á´øÀ´ºÜ¶à²»Í¬¡£ÔËÐÐËٶȵÄÔöÒæ¿ÉÒÔ´ïµ½ 3-5%£¬µ±È»ÕâÒÀÀµÓÚ USE flags µÄÉèÖá£Äã¿ÉÒÔÌå»áµ½ÕâÊÇÄãµÄϵͳ£¬¶ø²»ÊDzúÆ·¾ÀíµÄ¡£Ìرð¶ÔÓÚ×ÀÃæ¼ÆËã»úÀ´Ëµ£¬ÄãµÄϵͳÖеÄËùÓÐÈí¼þ¶¼ÊÇ°´ÕÕÄãµÄÐèÇóÉèÖõģ¬ÕâÊÇÒ»Öַdz£ÃÀÃîµÄ¸Ð¾õ¡£
µ±ÎÒµÚÒ»´Î¿´µ½ Gentoo µÄʱºò±»´ò»÷µÃ¹»Çº£¬µ«µ½ÏÖÔÚÎÒÒѾʹÓÃËü°ëÄêÁË£¬ÎÒ¸ù±¾¾Í²»ÏëÔÙʹÓÃÆäËüÈκη¢ÐаæÁË¡£ÎÒ̫ϲ»¶ Gentoo ÁË¡£
Ïà¹ØÁ´½Ó
¶ÔÕâƪÎÄÕ·¢±íÆÀÂÛ
ÿƪÎÄÕ¶¼Óи÷×Եķ´À¡Ò³Ãæ¡£ÔÚÕâ¸öÒ³ÃæÀÄú¿ÉÒÔÌá½»ÆÀÂÛ£¬Ò²¿ÉÒԲ鿴ÆäËû¶ÁÕßµÄÆÀÂÛ£º
<--, back to the index of this issue
2004-05-08, generated by lfparser version 2.46