piwik

dimarts, 30 de setembre del 2014

Mirroring Ubuntu 12.04 repo

Within the efforts of improving the performance of our network, we've decided to clone the official ubuntu repository to a local share which is served through anonymous FTP. There are plenty of tutorials explaining how to setup a local repo using apt-mirror, but what you basically need to know is how to configure this file
I've decided to clone also debian-installer packages in order to use this local repo for network installation through PXE.
/etc/apt/mirror.list


############# config ##################
#

set base_path    /mnt/my_ftp
#
 set mirror_path  $base_path/mirror
 set skel_path    $base_path/skel
 set var_path     $base_path/var
 set cleanscript $var_path/clean.sh
# set defaultarch  amd64
 set postmirror_script $var_path/postmirror.sh
# set run_postmirror 0
set nthreads     20
set _tilde 0
#
############# end config ##############
# Precise (12.04 LTS) for i386 architecture
deb-i386 http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-i386 http://archive.canonical.com/ubuntu precise partner
deb-i386 http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse
#Source code
deb-src http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://archive.canonical.com/ubuntu precise partner
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse
#Adding some entries to have the installer files for the new PXE installations
deb-i386 http://archive.ubuntu.com/ubuntu precise main/debian-installer restricted/debian-installer universe/debian-installer multiverse/debian-installer
deb-i386 http://archive.ubuntu.com/ubuntu precise-security main/debian-installer restricted/debian-installer universe/debian-installer multiverse/debian-installer
deb-i386 http://archive.ubuntu.com/ubuntu precise-updates main/debian-installer restricted/debian-installer universe/debian-installer multiverse/debian-installer
deb-i386 http://archive.ubuntu.com/ubuntu precise-backports main/debian-installer restricted/debian-installer universe/debian-installer multiverse/debian-installer
# Precise (12.04 LTS) for x86_64 architecture
deb-amd64 http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb-amd64 http://archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb-amd64 http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb-amd64 http://archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-amd64 http://archive.canonical.com/ubuntu precise partner
deb-amd64 http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse
#Adding some entries to have the installer files for the new PXE installations
deb-amd64  http://archive.ubuntu.com/ubuntu precise main/debian-installer restricted/debian-installer universe/debian-installer multiverse/debian-installer
deb-amd64  http://archive.ubuntu.com/ubuntu precise-security main/debian-installer restricted/debian-installer universe/debian-installer multiverse/debian-installer
deb-amd64  http://archive.ubuntu.com/ubuntu precise-updates main/debian-installer restricted/debian-installer universe/debian-installer multiverse/debian-installer
deb-amd64  http://archive.ubuntu.com/ubuntu precise-backports main/debian-installer restricted/debian-installer universe/debian-installer multiverse/debian-installer

clean http://archive.ubuntu.com/ubuntu
clean http://archive.canonical.com/ubuntu
clean http://security.ubuntu.com/ubuntu

Cap comentari:

Publica un comentari a l'entrada