Modifications entre les versions 4 et 8 (s'étendant sur 4 versions)
Version 4 à la date du 2008-04-28 16:36:22
Taille: 3449
Éditeur: MoussaNombre
Commentaire:
Version 8 à la date du 2014-06-05 16:54:56
Taille: 3818
Éditeur: MoussaNombre
Commentaire: Mise à jour
Texte supprimé. Texte ajouté.
Ligne 7: Ligne 7:
 * Outils utilisé : '''apt-mirror / apache2'''
 * Espace disque : '''total 89G''' / utilisé 40G (20080404)
 * Outils utilisé : '''debmirror / apache2'''
 * Espace disque : '''total 119G''' / utilisé 95G (20090226)
Ligne 10: Ligne 10:
== Configuration == On utilise maintenant ces scripts avec `debmirror`:
 * [[attachment:miroirs-debian.sh|miroir Debian]]
 * [[attachment:miroirs-debian-security.sh|miroir Debian security]]
 * [[attachment:miroirs-ubuntu.sh|miroir Ubuntu]]

-------

'''OBSOLETE'''

==== Configuration ====
Ligne 58: Ligne 67:
 * Créer les répertoires mirror, skel et var : '''cd /srv/www/apt-mirror ; sudo mkdir mirror skel var'''
Ligne 87: Ligne 98:
    deb http://ubuntu.ca.auf.org/ubuntu/ gutsy main restricted universe multiverse
    deb http://ubuntu.ca.auf.org/ubuntu/ gutsy-updates main restricted universe multiverse
    deb http://ubuntu.ca.auf.org/ubuntu/ gutsy-security main restricted universe multiverse
    deb http://ubuntu.ca.auf.org/ubuntu/ hardy main restricted universe multiverse
    deb http://ubuntu.ca.auf.or
g/ubuntu/ hardy-updates main restricted universe multiverse
    deb http://ubuntu.ca.auf.org/ubuntu/ hardy-security main restricted universe multiverse
Ligne 91: Ligne 102:
    #Les packages de gutsy-backports et de gutsy-proposed sont aussi disponibles.     #Les packages de hardy-backports et de hardy-proposed sont aussi disponibles.

Miroir Debian et Ubuntu

Le serveur

  • Nom : miroir - miroir.ca.auf.org - debian.ca.auf.org - ubuntu.ca.auf.org

  • N° de VPS : 502 sur vz-tempo.ca.auf (10.36.0.21)

  • IP : 199.84.140.15

  • Outils utilisé : debmirror / apache2

  • Espace disque : total 119G / utilisé 95G (20090226)

On utilise maintenant ces scripts avec debmirror:


OBSOLETE

Configuration

  • Répertoire : /srv/www/apt-mirror/

  • fichier de configuration : /etc/apt/mirror.list
    •    set base_path     /srv/www/apt-mirror
         set mirror_path  $base_path/mirror
         set skel_path     $base_path/skel
         set var_path     $base_path/var
       
      ####
      ##### DEBIAN ETCH #####
      ####
      
      deb http://ftp.ca.debian.org/debian etch main contrib non-free
      deb http://security.debian.org etch/updates main contrib non-free
      
      ####
      ###### UBUNTU GUTSY #####
      #####
      
      deb http://ca.archive.ubuntu.com/ubuntu gutsy main restricted universe multiverse
      deb http://ca.archive.ubuntu.com/ubuntu gutsy-updates main restricted universe multiverse
      deb http://ca.archive.ubuntu.com/ubuntu gutsy-security main restricted universe multiverse
      deb http://ca.archive.ubuntu.com/ubuntu gutsy-backports main restricted universe multiverse
      deb http://ca.archive.ubuntu.com/ubuntu gutsy-proposed main restricted universe multiverse
      
      ####
      ###### UBUNTU HARDY #####
      #####
      deb http://ca.archive.ubuntu.com/ubuntu hardy main restricted universe multiverse
      deb http://ca.archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse
      deb http://ca.archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse
      deb http://ca.archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse
      deb http://ca.archive.ubuntu.com/ubuntu hardy-proposed main restricted universe multiverse
      
      ##
      ## Cleaner configuration example
      ##
      #
      # set cleanscript $var_path/clean.sh
      #
      
      # Cleaning section
      clean http://ca.archive.ubuntu.com
      clean http://ftp.ca.debian.org
      clean http://security.debian.org
  • Créer les répertoires mirror, skel et var : cd /srv/www/apt-mirror ; sudo mkdir mirror skel var

  • NB (cf /srv/www/apt-mirror/LISEZ-MOI) :
    • Le DocumentRoot du miroir est /var/www. On y trouve trois liens :
         * debian -> /srv/www/apt-mirror/mirror/ftp.ca.debian.org/debian
         * debian-security -> /srv/www/apt-mirror/mirror/security.debian.org/
         * ubuntu -> /srv/www/apt-mirror/mirror/ca.archive.ubuntu.com/ubuntu
      
              En cas de changement d'une des sources du miroir, il faudra recréer le lien correspondant.

Les mises à jour du miroir

  • Tous les jours à 5h, 13h et 21h :

    •      #/etc/cron.d/apt-mirror
           0 5,13,21 * * * apt-mirror      /usr/bin/apt-mirror > /var/log/apt-mirror.log

Utilisation

Voici les lignes à ajouter aux sources.list pour utiliser le miroir (modifier le fichier /etc/apt/sources.list) :

  • DEBIAN :
    •     deb http://debian.ca.auf.org/debian etch main contrib non-free
          deb http://debian.ca.auf.org/debian-security etch/updates main contrib non-free
  • UBUNTU
    •     deb http://ubuntu.ca.auf.org/ubuntu/ hardy main restricted universe multiverse
          deb http://ubuntu.ca.auf.org/ubuntu/ hardy-updates main restricted universe multiverse
          deb http://ubuntu.ca.auf.org/ubuntu/ hardy-security main restricted universe multiverse
        
          #Les packages de hardy-backports et de hardy-proposed sont aussi disponibles.

Via le web

ZA/Montréal/MiroirDebianUbuntu (dernière édition le 2014-06-05 17:01:09 par MoussaNombre)