Development for Multiple Linux Distributions mini-HOWTO

Ed Hill

<ed@eh3.com>

R - {

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.                                                       

̕ł͕̃fBXgr[VɃ[U[Xy[XvO
̊JƃeXgsƂɖ𗧂yȕ@ɂĊT܂B

 

Table of Contents
1. n߂
   
    1.1. 쌠yюgp
   
2. ZbgAbv
3. uZJ_vfBXgr[V̗p
4. NWbg
5. {ɂ

1. n߂

vOJĂƕ Linux fBXgr[VɃv
O̍쐬eXgHڂɊׂ邱Ƃł傤B mini-howto
ŊT@g΁AI chroot gbNgƂɂAeXg
J𕡐 Linux fBXgr[VōsxɍċN̂ق
܂B

ȒPɌ΁AugbNṽl^́A Linux fBXgr[V
L̃t@C̃fBNgɎ߂āAvO̊JEeXgE
fobOɍۂĂ chroot ł̃fBNg[gɐݒ肷_ɂ
܂B̕@ɂ͈ȉ̏܂\

 1. gpuCv邢́uvC}ṽfBXgr[V
    J[luZJ_v܂ chroot fBXgr[V
    (Œ炩)݊邱ƁAy
   
 2. Ώۂ̃AvP[V{[U[Xy[X̂̂ł(J[l
    W[Ȃǂł͂Ȃ)ÃJ[l̋@\ɋˑ肵Ă
    (Ⴆ /proc ̐U镑ɈˑȂ)
   
 

1.1. 쌠yюgp

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. ZbgAbv

ȉɋ̂OƂĂ܂\

 1. 2.4 nȍ~̃J[lgpuCv܂́uvC}v
    Linux fBXgr[VCXg[ς
   
 2. 2 ` 4 GByte ̋󂫃p[eBVp\
   
 3. uZJ_ṽfBXgr[ṼCXg[(ɑčs
    JEeXg)ɏ\ȋ󂫃Xy[X
   
q̏𖞂ŁAȉ̎菇ɂuZJ_v Linux fBX
gr[VZbgAbvAJEeXgȂǂ̖ړIɗp܂\

 1. n߂ɁA\ȋ󂫗e (ʏ 2 ` 4 GByte) ̂n[hfBXNɖ
    gp̃p[eBV쐬AuZJ_ṽfBXgr[V
    ʏʂCXg[̂Ɏg܂B
   
 2. uZJ_ṽfBXgr[VA쐬p[eBV
    CXg[܂ANp̐ݒ荀ڂɒǉ͂܂Bł͊J
    Ώ(eXgΏ)̃AvP[VɕKvȃpbP[WCX
    g[_ɒӂĂBႦ X T[o[Ȃǂ̏ꏊH
    邱Ƃ͂ȂȂł傤B
   
 3. uvC}v Linux fBXgr[VċNāAɐV
    CXg[uZJ_ṽfBXgr[Vp
    [eBV}Eg܂BuZJ_vfBXgr[V
    ̑St@C /opt/distros/DISTRO_NAME ̏ꏊɃRs[܂i
    ̕ێ\ tar -cp Ȃǂ̕@D܂jB
   
 4. 2 ` 3 ̎菇JԂĕKvȃfBXgr[VCXg[
    ܂B̌ʁAɎ悤ȃfBNg\ɂȂ͂ł\
   
    /opt/distros/redhat_6.2/                                    
                 suse_7.2/                                      
                 mandrake_8.1/                                  
                 debian-potato/                                 
                 slackware_8.0/                                 
   
    eX̃fBXgr[VCXg[ۂɍ쐬ꂽt@C
    ͑SĊefBNgɂ܂B
   
 

3. uZJ_vfBXgr[V̗p

uZJ_vfBXgr[ṼCXg[͎̎菇ŗp
悤ɂ܂\

 1. ŏdvȂ̂́uvC}vLinux fBXgr[Vɂ 2.4
    nȍ~̃J[lp邱ƂŁǍ 2.4 n}`}E
    g|Cg@\g܂B̍Ƃł́AȉɎ@ /proc 
    /tmp t@CVXeuZJ_vfBXgr[Vɍă}E
    gKvł傤\
   
    mount --bind /proc /opt/distros/redhat_6.2/proc             
    mount --bind /tmp /opt/distros/redhat_6.2/tmp               
   
 2. ܂AuvC}vfBXgr[Ṽ\[Xc[́uZJ
    _vfBXgr[Vɍă}Eg ( Rs[
    ) Lvł\
   
    mount --bind /home/USER/src/PROJECT /opt/distros/redhat_6.2/USER/src/PROJECT
   
 3. root ɂȂĎ̃R}hg܂\
   
    xhost +localhost chroot /opt/distros/redhat_6.2             
    /bin/bash                                                   
   
    ŁuZJ_vfBXgr[ṼVFg悤ɂ
    ܂BX Window System̃AvP[VgƂĂꍇɂ
     xhost R}hK{ȓ_ɒӂĂB
   
 4. ŌɁA(Kvɉ) chroot VFŃ[U[쐬A
    uƗvLinuxfBXgr[VŊJArhAeXgs
    ĂBX pAvP[Vgꍇ́AYꂸDISPLAY ֘A
    ̕ϐw肵ĂB
   
łオIŔCӂ́uZJ_vfBXgr[VōDȂ
ɃVFg悤ɂȂ܂B

 

4. NWbg

̃̕ACfA͎lôł͂܂B( OpenNMS <http:/
/www.opennms.org/> ) Ben Reed  TriLUG <http://www.trilug.org/> 
[OXgɓêłBɂ͂ƂĂLpɎvꂽ̂ŕ
đ̐lɒm点邱Ƃɂ܂B

 

5. {ɂ

|ɂēK؂ȏ𒸂 JF [OXg̏щTA
IKEDA Katsumi Ɋӂ܂B肪Ƃ܂B

