Mirror Setup   threaded view
Last edited by: Fran
Topic: (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-mirrorsudo bash /var/spool/apt-mirror/var/clean.shNB For a short camp, we don't need to schedule fresh updates. Longer installs should:sudo vi /etc/cron.d/apt-mirrorConfigure Apache to serve the repository to clients:sudo apt-get install apache2sudo ln -s /var/spool/apt-mirror/mirror/gb.archive.ubuntu.com/ubuntu /var/wwwConfigure server to use local mirror:
sudo vi /etc/apt/sources.listdeb 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 universesudo 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.listdeb http://ubuntu/ubuntu/ feisty main restricted universe
deb http://ubuntu/ubuntu/ feisty-updates main restricted universe
deb http://ubuntu/ubuntu/ feisty-security main restricted universesudo apt-get update
sudo apt-get upgradeContinue with the rest of the detailed Step-by-Step Installation Guide