Taille: 3405
Commentaire:
|
Taille: 3449
Commentaire:
|
Texte supprimé. | Texte ajouté. |
Ligne 77: | Ligne 77: |
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) : |
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 89G / utilisé 40G (20080404)
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
- 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/ 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 #Les packages de gutsy-backports et de gutsy-proposed sont aussi disponibles.