Modifications entre les versions 1 et 7 (s'étendant sur 6 versions)
Version 1 à la date du 2008-04-04 19:44:55
Taille: 2681
Éditeur: MoussaNombre
Commentaire:
Version 7 à la date du 2009-02-27 15:16:39
Taille: 3560
Éditeur: MoussaNombre
Commentaire: Complément d'info
Texte supprimé. Texte ajouté.
Ligne 8: Ligne 8:
 * Espace disque : '''total 89G''' / utilisé 40G (20080404)  * Espace disque : '''total 119G''' / utilisé 95G (20090226)
Ligne 36: Ligne 36:
####
###### 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
Ligne 49: Ligne 58:
 * Créer les répertoires mirror, skel et var : '''cd /srv/www/apt-mirror ; sudo mkdir mirror skel var'''
Ligne 59: Ligne 70:
== 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
   }}}
Ligne 61: Ligne 79:
Voici les lignes à ajouter aux sources.list pour utiliser le miroir : Voici les lignes à ajouter aux sources.list pour utiliser le miroir (modifier le fichier /etc/apt/sources.list) :
Ligne 71: Ligne 89:
    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 75: Ligne 93:
    #Les packages de gutsy-backports et de gutsy-proposed sont aussi disponibles.     #Les packages de hardy-backports et de hardy-proposed sont aussi disponibles.
Ligne 80: Ligne 98:
 * http://miroir.ca.auf.org  * http://mirroir.ca.auf.org

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é : apt-mirror / apache2

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

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)