This commit is contained in:
gferg 2002-08-14 13:30:29 +00:00
parent ce6494e423
commit 65750b40ed
3 changed files with 27 additions and 14 deletions

View File

@ -1016,7 +1016,7 @@ Multi-Distro-Dev</ULink>, <CiteTitle>
Development for Multiple Linux Distributions mini-HOWTO</CiteTitle>
</Para><Para>
<CiteTitle>
Updated: December 2001</CiteTitle>.
Updated: August 2002</CiteTitle>.
Outlines a quick hack to aid in developing and testing
user-space programs for multiple Linux distributions. </Para>
</ListItem>

View File

@ -763,7 +763,7 @@ Multi-Distro-Dev</ULink>, <CiteTitle>
Development for Multiple Linux Distributions mini-HOWTO</CiteTitle>
</Para><Para>
<CiteTitle>
Updated: December 2001</CiteTitle>.
Updated: August 2002</CiteTitle>.
Outlines a quick hack to aid in developing and testing
user-space programs for multiple Linux distributions. </Para>
</ListItem>

View File

@ -12,8 +12,14 @@
and testing user-space programs for multiple Linux
distributions.</para>
</abstract>
<pubdate>2001-12-03</pubdate>
<pubdate>2001-03-01</pubdate>
<revhistory>
<revision>
<revnumber>0.9.1</revnumber>
<date>2002-08-14</date>
<authorinitials>EH3</authorinitials>
<revremark>Small update for using X11 (sockets).</revremark>
</revision>
<revision>
<revnumber>0.9</revnumber>
<date>2001-12-03</date>
@ -155,10 +161,12 @@ each distribution install. </para>
It is important to use a 2.4-series or newer Linux kernel in the
"primary" Linux distribution in order to take advantage of the
multiple mount points feature that the 2.4-series permits. For many
tasks, the <filename>/proc</filename> filesystem will have to be
remounted in the secondary distribution using:
tasks, the <filename>/proc</filename> and <filename>/tmp</filename>
filesystems will have to be remounted in the secondary distribution
using:
<programlisting>
mount --bind /proc /opt/distros/redhat_6.2/proc</programlisting>
mount --bind /proc /opt/distros/redhat_6.2/proc
mount --bind /tmp /opt/distros/redhat_6.2/tmp</programlisting>
</para>
</listitem>
<listitem>
@ -173,15 +181,19 @@ mount --bind /home/USER/src/PROJECT /opt/distros/redhat_6.2/USER/src/PROJECT</pr
<para>
Become root and use:
<programlisting>
chroot /opt/distros/redhat_6.2 /bin/bash</programlisting>
to obtain a shell with one of the secondary distros.
xhost +localhost chroot /opt/distros/redhat_6.2
/bin/bash</programlisting> to obtain a shell with one of the secondary
distros. Note that the <filename>xhost</filename> command is only
necessary if you intend to use X-windows applications.
</para>
</listitem>
<listitem>
<para>
Finally, create a user (if necessary) within the
<filename>chroot</filename>-ed shell and develop, build, and/or test
your application within this "separate" Linux distribution!
your application within this "separate" Linux distribution! Not that
you may also have to specify your <filename>DISPLAY</filename>
environment variable if you'd like to use X applications.
</para>
</listitem>
</orderedlist>
@ -194,15 +206,16 @@ your application within this "separate" Linux distribution!
<sect1 id="Credits"> <title>Credits</title>
<para>The ideas contained in this mini-HOWTO are not mine. They
are culled from posts by Ben Reed (of <ulink
<para>The ideas contained in this mini-HOWTO are not originally
mine. They are culled from posts by Ben Reed (of <ulink
url="http://www.opennms.org/"> OpenNMS </ulink>) to one of the
<ulink url="http://www.trilug.org/"> TriLUG </ulink> mailing lists.
I found the information to be so useful that I wanted to document
the idea for others. </para>
<ulink url="http://www.trilug.org/"> TriLUG </ulink> mailing
lists. I found the information to be so useful that I wanted to
document the idea for others. </para>
</sect1>
</article>