Development for Multiple Linux Distributions mini-HOWTO

Ed Hill

<ed@eh3.com>

嶳岥偮偐偝 - 擔杮岅栿

PDC01212@nifty.com

2001-03-01

Revision History                                                       
Revision 0.9.1            2002-08-14         Revised by: EH3           
Small update for using X11 (sockets).                                  
Revision 0.9              2001-12-03         Revised by: EH3           
Initial version.                                                       

偙偺暥彂偱偼暋悢偺僨傿僗僩儕價儏乕僔儑儞岦偗偵儐乕僓乕僗儁乕僗僾儘僌儔
儉偺奐敪偲僥僗僩傪峴偆偲偒偵栶棫偮庤寉側曽朄偵偮偄偰奣棯傪帵偟傑偡丅

劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒 

Table of Contents
1. 巒傔偵
   
    1.1. 挊嶌尃媦傃巊梡嫋戻
   
2. 僙僢僩傾僢僾
3. 乽僙僇儞僟儕乿僨傿僗僩儕價儏乕僔儑儞偺棙梡
4. 僋儗僕僢僩
5. 擔杮岅栿偵偮偄偰

1. 巒傔偵

僾儘僌儔儉奐敪傪偟偰偄傞偲暋悢偺 Linux 僨傿僗僩儕價儏乕僔儑儞岦偗偵僾儘
僌儔儉偺嶌惉傗僥僗僩傪偡傞塇栚偵娮傞偙偲傕偁傞偱偟傚偆丅偙偺 mini-howto
偱奣愢偡傞曽朄傪巊偊偽丄岻柇側 chroot 僩儕僢僋傪巊偆偙偲偵傛傝丄僥僗僩
傗奐敪傪暋悢偺 Linux 僨傿僗僩儕價儏乕僔儑儞偱峴偆搙偵嵞婲摦偡傞偺傪傎傏
旔偗傜傟傑偡丅

娙扨偵尵偊偽丄乽僩儕僢僋乿偺僱僞偼丄偁傞 Linux 僨傿僗僩儕價儏乕僔儑儞屌
桳偺僼傽僀儖傪堦屄偺僨傿儗僋僩儕撪偵廂傔偰丄僾儘僌儔儉偺奐敪丒僥僗僩丒
僨僶僢僌偵嵺偟偰偼 chroot 偱偦偺僨傿儗僋僩儕傪儖乕僩偵愝掕偡傞揰偵偁傝
傑偡丅偙偺曽朄傪幚尰偡傞偵偼埲壓偺忦審偑偁傝傑偡乗

 1. 巊梡偡傞乽儊僀儞乿偁傞偄偼乽僾儔僀儅儕乿偺僨傿僗僩儕價儏乕僔儑儞偺
    僇乕僱儖偑乽僙僇儞僟儕乿傑偨偼 chroot 偝傟傞僨傿僗僩儕價儏乕僔儑儞
    偲(嵟掅尷壗傜偐偺)屳姺惈偑偁傞偙偲丄媦傃
   
 2. 懳徾偺傾僾儕働乕僔儑儞偑杮棃儐乕僓乕僗儁乕僗偺傕偺偱偁傝(僇乕僱儖儌
    僕儏乕儖側偳偱偼側偔)丄摿掕偺僇乕僱儖偺婡擻偵嫮偔埶懚偟偨傝偟偰偄側
    偄偙偲(椺偊偽 /proc 偺怳傞晳偄偵埶懚偟側偄)
   
劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒 

1.1. 挊嶌尃媦傃巊梡嫋戻

This document is copyright 2001 by Ed Hill III. Permission is granted
to copy, distribute and/or modify this document under the terms of the
GNU Free Documentation License, Version 1.1 or any later version
published by the Free Software Foundation; with no Invariant Sections,
with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the
license is available at http://www.gnu.org/copyleft/fdl.html.

劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒 

2. 僙僢僩傾僢僾

埲壓偵嫇偘傞傕偺傪慜採偲偟偰偄傑偡乗

 1. 2.4 宯埲崀偺僇乕僱儖傪巊梡偡傞乽儊僀儞乿傑偨偼乽僾儔僀儅儕乿偺
    Linux 僨傿僗僩儕價儏乕僔儑儞偑僀儞僗僩乕儖嵪傒
   
 2. 2 乣 4 GByte 偺嬻偒僷乕僥傿僔儑儞偑棙梡壜擻
   
 3. 乽僙僇儞僟儕乿偺僨傿僗僩儕價儏乕僔儑儞偺僀儞僗僩乕儖(偦傟偵懕偗偰峴
    偆奐敪丒僥僗僩嶌嬈)偵廫暘側嬻偒僗儁乕僗
   
忋弎偺忦審傪枮偨偟偨忋偱丄埲壓偺庤弴偵傛傝乽僙僇儞僟儕乿偺 Linux 僨傿僗
僩儕價儏乕僔儑儞傪僙僢僩傾僢僾偟丄奐敪丒僥僗僩側偳偺栚揑偵棙梡偟傑偡乗

 1. 巒傔偵丄廫暘側嬻偒梕検 (捠忢 2 乣 4 GByte) 偺偁傞僴乕僪僨傿僗僋偵枹
    巊梡偺僷乕僥傿僔儑儞傪嶌惉偟丄乽僙僇儞僟儕乿偺僨傿僗僩儕價儏乕僔儑
    儞傪捠忢捠傝僀儞僗僩乕儖偡傞偺偵巊偄傑偡丅
   
 2. 乽僙僇儞僟儕乿偺僨傿僗僩儕價儏乕僔儑儞傪丄嶌惉偟偨僷乕僥傿僔儑儞偵
    僀儞僗僩乕儖偟傑偡偑丄婲摦梡偺愝掕崁栚偵捛壛偼偟傑偣傫丅偙偙偱偼奐
    敪懳徾(僥僗僩懳徾)偺傾僾儕働乕僔儑儞偵昁梫側僷僢働乕僕偩偗傪僀儞僗
    僩乕儖偡傞揰偵拲堄偟偰偔偩偝偄丅椺偊偽 X 僒乕僶乕側偳偺応強怘偄拵傪
    擖傟傞偙偲偼側傜側偄偱偟傚偆丅
   
 3. 乽僾儔僀儅儕乿偺 Linux 僨傿僗僩儕價儏乕僔儑儞傪嵞婲摦偟偰丄師偵怴偟
    偔僀儞僗僩乕儖偟偨乽僙僇儞僟儕乿偺僨傿僗僩儕價儏乕僔儑儞偑擖偭偨僷
    乕僥傿僔儑儞傪儅僂儞僩偟傑偡丅乽僙僇儞僟儕乿僨傿僗僩儕價儏乕僔儑儞
    偺慡僼傽僀儖傪 /opt/distros/DISTRO_NAME 摍偺応強偵僐僺乕偟傑偡乮嫋
    壜懏惈偺曐帩偑壜擻側 tar -cp 側偳偺曽朄偑岲傑偟偄乯丅
   
 4. 2 乣 3 偺庤弴傪孞傝曉偟偰昁梫側僨傿僗僩儕價儏乕僔儑儞傪僀儞僗僩乕儖
    偟傑偡丅偦偺寢壥丄壓偵帵偡傛偆側僨傿儗僋僩儕峔憿偵側傞偼偢偱偡乗
   
    /opt/distros/redhat_6.2/                                    
                 suse_7.2/                                      
                 mandrake_8.1/                                  
                 debian-potato/                                 
                 slackware_8.0/                                 
   
    奺乆偺僨傿僗僩儕價儏乕僔儑儞傪僀儞僗僩乕儖偟偨嵺偵嶌惉偝傟偨僼傽僀
    儖偼慡偰奺僨傿儗僋僩儕壓偵偁傝傑偡丅
   
劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒 

3. 乽僙僇儞僟儕乿僨傿僗僩儕價儏乕僔儑儞偺棙梡

乽僙僇儞僟儕乿僨傿僗僩儕價儏乕僔儑儞偺僀儞僗僩乕儖屻偼師偺庤弴偱棙梡偱
偒傞傛偆偵偟傑偡乗

 1. 偙偙偱廳梫側偺偼乽僾儔僀儅儕乿Linux 僨傿僗僩儕價儏乕僔儑儞偵偼 2.4
    宯埲崀偺僇乕僱儖傪梡偄傞偙偲偱丄偦偺寢壥 2.4 宯偑旛偊傞儅儖僠儅僂儞
    僩億僀儞僩婡擻偑巊偊傑偡丅懡偔偺嶌嬈偱偼丄埲壓偵帵偡曽朄偱 /proc 偲
    /tmp 僼傽僀儖僔僗僥儉傪乽僙僇儞僟儕乿僨傿僗僩儕價儏乕僔儑儞偵嵞儅僂
    儞僩偡傞昁梫偑偁傞偱偟傚偆乗
   
    mount --bind /proc /opt/distros/redhat_6.2/proc             
    mount --bind /tmp /opt/distros/redhat_6.2/tmp               
   
 2. 傑偨丄乽僾儔僀儅儕乿僨傿僗僩儕價儏乕僔儑儞偺僜乕僗僣儕乕偼乽僙僇儞
    僟儕乿僨傿僗僩儕價儏乕僔儑儞偵嵞儅僂儞僩偡傞曽偑 ( 僐僺乕偡傞傛傝偼
    ) 桳塿偱偡乗
   
    mount --bind /home/USER/src/PROJECT /opt/distros/redhat_6.2/USER/src/PROJECT
   
 3. root 偵側偭偰師偺僐儅儞僪傪巊偄傑偡乗
   
    xhost +localhost chroot /opt/distros/redhat_6.2             
    /bin/bash                                                   
   
    偙傟偱乽僙僇儞僟儕乿僨傿僗僩儕價儏乕僔儑儞偺僔僃儖傪巊偊傞傛偆偵側
    傝傑偡丅X Window System偺傾僾儕働乕僔儑儞傪巊偍偆偲偟偰偄傞応崌偵偺
    傒 xhost 僐儅儞僪偑昁恵側揰偵拲堄偟偰偔偩偝偄丅
   
 4. 嵟屻偵丄(昁梫偵墳偠偰) chroot 偟偨僔僃儖忋偱儐乕僓乕傪嶌惉偟丄偙偺
    乽撈棫偟偨乿Linux僨傿僗僩儕價儏乕僔儑儞偱奐敪丄價儖僪丄僥僗僩傪峴偭
    偰偔偩偝偄丅X 梡傾僾儕働乕僔儑儞傪巊偆応崌偼丄朰傟偢偵DISPLAY 娭楢
    偺曄悢傪巜掕偟偰偔偩偝偄丅
   
偱偒忋偑傝両偙傟偱擟堄偺乽僙僇儞僟儕乿僨傿僗僩儕價儏乕僔儑儞偱岲偒側傛
偆偵僔僃儖偑巊偊傞傛偆偵側傝傑偟偨丅

劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒 

4. 僋儗僕僢僩

偙偺暥彂偺傾僀僨傾偼巹偑峫偊弌偟偨傕偺偱偼偁傝傑偣傫丅( OpenNMS <http:/
/www.opennms.org/> 偺) Ben Reed 巵偑 TriLUG <http://www.trilug.org/> 偺
儊乕儕儞僌儕僗僩偵搳峞偟偨傕偺偱偡丅巹偵偼偲偰傕桳梡偵巚傢傟偨偺偱暥彂
壔偟偰懡偔偺恖偵抦傜偣傞偙偲偵偟傑偟偨丅

劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒 

5. 擔杮岅栿偵偮偄偰

東栿偵偁偨偭偰揔愗側彆尵傪捀偄偨 JF 儊乕儕儞僌儕僗僩偺彫椦夒揟偝傫丄
IKEDA Katsumi 偝傫偵姶幱偟傑偡丅偁傝偑偲偆偛偞偄傑偟偨丅

