229 lines
3.7 KiB
HTML
229 lines
3.7 KiB
HTML
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>Setup</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
|
|
"><LINK
|
|
REL="HOME"
|
|
TITLE="Development for Multiple Linux Distributions mini-HOWTO"
|
|
HREF="index.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="Introduction"
|
|
HREF="introduction.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="Using the Secondary Distributions"
|
|
HREF="use.html"></HEAD
|
|
><BODY
|
|
CLASS="SECT1"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
SUMMARY="Header navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
>Development for Multiple Linux Distributions mini-HOWTO</TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="introduction.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
></TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="use.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="SECT1"
|
|
><H1
|
|
CLASS="SECT1"
|
|
><A
|
|
NAME="SETUP">2. Setup</H1
|
|
><P
|
|
>We assume that you already have:</P
|
|
><P
|
|
></P
|
|
><OL
|
|
TYPE="1"
|
|
><LI
|
|
><P
|
|
>One "main" or "primary" Linux distribution installed that is running a
|
|
2.4-series or newer kernel,
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>a free partition with 2--4Gigs available, and
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>sufficient disk
|
|
space for the secondary installs (and any subsequent
|
|
development/testing work).
|
|
</P
|
|
></LI
|
|
></OL
|
|
><P
|
|
>Given those assumptions, the following outline is one way to
|
|
setup the multiple secondary Linux distributions that will be used
|
|
for development, testing, or other purposes:
|
|
</P
|
|
><P
|
|
></P
|
|
><OL
|
|
TYPE="1"
|
|
><LI
|
|
><P
|
|
>First, create or locate an unused partition on one of your hard drives
|
|
that is large enough (usually 2--4Gb is sufficient) to do a basic
|
|
install of one of the secondary Linux distributions.
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Install the secondary distro into this partition but do not add it to
|
|
your boot configuration. Note that this install need only include the
|
|
packages that your target application (or tests) require. For
|
|
instance, you may be able to ignore applications such as the X server
|
|
or other space-hogs.
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Reboot your primary Linux distribution and mount the partition
|
|
containing the freshly-installed "secondary" distro. Copy (preferably
|
|
using <TT
|
|
CLASS="FILENAME"
|
|
>tar -cp</TT
|
|
> or some other method that preserves
|
|
permissions) all the files from the secondary distro to a location
|
|
such as <TT
|
|
CLASS="FILENAME"
|
|
>/opt/distros/DISTRO_NAME</TT
|
|
>.
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Repeat steps 2--3 for any additional distributions that you wish to
|
|
install. The result should be a directory structure resembling:
|
|
</P
|
|
><TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="90%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="PROGRAMLISTING"
|
|
>/opt/distros/redhat_6.2/
|
|
suse_7.2/
|
|
mandrake_8.1/
|
|
debian-potato/
|
|
slackware_8.0/</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><P
|
|
>where each directory contains the complete set of files resulting from
|
|
each distribution install. </P
|
|
></LI
|
|
></OL
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
SUMMARY="Footer navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="introduction.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="index.html"
|
|
ACCESSKEY="H"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="use.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>Introduction</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
> </TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>Using the Secondary Distributions</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |