Deploy a private Gentoo mirror accesible via HTTP, FTP and RSYNC

Gentoo, Linux, apache, rsyncd, vsftpd No Comments »

Download Video (497 KB)

This video describes how to create a private Gentoo Linux mirror of Portage Tree and source files on your server. Also, the tutorial shows how to update mirror using cron and rsync, how to serve the mirror via HTTP (with apache), via FTP (with vsftpd) and via RSYNC (with rsyncd) and how to set up the clients to use the mirror.

Video tutorial consists from 5 parts:
Part 1. Sync portage tree and Gentoo source files (distfiles, releases, snapshots etc.) with one of the official Gentoo rsync servers (03:40 min)
Part 2. Make mirror accesible via RSYNC (05:30 min)
Part 3. Make Gentoo source files accesible via HTTP (04:38 min)
Part 4. Make Gentoo source files accesible via FTP (03:17 min)
Part 5. Clients setup (02:07 min)

Installation steps.
Part 1. Sync portage tree and Gentoo source files (distfiles, releases, snapshots etc.) with one of the official Gentoo rsync servers

  1. First, check if installed rsync has latest version. If itsn't upgrade it:

    emerge --sync
    emerge -av rsync

  2. Create a new user with no login privileges that will be used for sync operations, and as the user to serve the files via HTTP, FTP and RSYNC:

    useradd -m -s /sbin/nologin mirror

  3. Make dirs for our Gentoo mirror:

    sudo -u mirror mkdir /home/mirror/gentoo-portage
    sudo -u mirror mkdir /home/mirror/gentoo

  4. Read the rest of this entry »

Entries RSS Comments RSS