Mirror Setup   view as chat

(Part of the detailed Step-by-Step Installation Guide for setting up the Server)

See: http://www.howtoforge.com/local_debian_ubuntu_mirror

sudo apt-get install apt-mirror

(replace 'gb' with local country)

sudo vi /etc/apt/mirror.list 

deb http://gb.archive.ubuntu.com/ubuntu feisty main restricted universe
deb http://gb.archive.ubuntu.com/ubuntu feisty-updates main restricted universe
deb http://gb.archive.ubuntu.com/ubuntu feisty-security main restricted universe
clean http://gb.archive.ubuntu.com/ubuntu

sudo apt-mirror
sudo bash /var/spool/apt-mirror/var/clean.sh

NB For a short camp, we don't need to schedule fresh updates. Longer installs should:

sudo vi /etc/cron.d/apt-mirror

Configure Apache to serve the repository to clients:

sudo apt-get install apache2
sudo ln -s /var/spool/apt-mirror/mirror/gb.archive.ubuntu.com/ubuntu /var/www

Configure server to use local mirror:

sudo vi /etc/apt/sources.list

deb http://127.0.0.1/ubuntu/ feisty main restricted universe
deb http://127.0.0.1/ubuntu/ feisty-updates main restricted universe
deb http://127.0.0.1/ubuntu/ feisty-security main restricted universe

sudo apt-get update
sudo apt-get upgrade

Workstation Configuration

These can be configured by simply pointing to the 'ubuntu' alias:

sudo vi /etc/apt/sources.list

deb http://ubuntu/ubuntu/ feisty main restricted universe
deb http://ubuntu/ubuntu/ feisty-updates main restricted universe
deb http://ubuntu/ubuntu/ feisty-security main restricted universe

sudo apt-get update
sudo apt-get upgrade

Continue with the rest of the detailed Step-by-Step Installation Guide

Last edited by: Fran