C.2. Setting Up the Distribution

To set up a distribution from a full Fedora DVD or ISO image, use this procedure.

[Note] Network Locations

To create a local mirror from an existing network source, skip this section and refer instead to Section C.3, “Mirroring a Network Location”.

  1. If you are using a DVD disc or ISO image, Create a directory mount point:

    mkdir /mnt/dvd

    To mount a physical DVD disc, use the following command:

    mount -o context=system_u:object_r:httpd_sys_content_t:s0 /dev/dvd /mnt/dvd

    To mount a DVD ISO image, use the following command:

    mount -ro loop,context=system_u:object_r:httpd_sys_content_t:s0 /path/to/image.iso /mnt/dvd
  2. To support NFS installation, create a file /etc/exports and add the following line to it:

    /mnt/dvd *(ro,async)

    Start the NFS server using the following commands:

    /sbin/service rpcbind start
    /sbin/service nfs start
  3. To support HTTP installation, use yum to install the Apache web server if it is not already installed:

    yum -y install httpd

    Make a link to the mounted disc in the Apache public content area:

    ln -s /mnt/dvd /var/www/html/distro