== Goal == To create a local mirror of the Ubuntu repositories for fast updating of lab == Materials == * Edubuntu server * USB hard drive (160 gigs) plugged into server * Local network of Ubuntu,Kubuntu, Xubuntu, and Edubuntu machines == Procedure == 0. {{{sudo apt-get install apt-mirror apache2}}} (make sure universe is enabled) 0. Now edit {{{/etc/apt/mirror.list}}} to include the following lines: {{{ deb http://archive.ubuntu.com/ubuntu feisty main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu feisty-updates main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu feisty-security main restricted universe multiverse}}} 0. Uncomment set base_path and change its value to /media/disc/apt-mirror 0. Run apt-mirror(as root) 0. Do a symlink from /media/disk/apt-mirror to /var/www/apt-mirror 0. Edit the sources.list on networked machines to refer to server == Debmirror Procedure == 0. {{{sudo apt-get install debmirror apache2}}} 0. Run {{{/usr/bin/debmirror --nosource -v -m --passive --host=mirrors.easynews.com --root=:mirrors/linux/ubuntu --method=rsync --progress --dist=feisty,feisty-security, --ignore-release-gpg --section=main,restricted,universe,multiverse --arch=i386,amd64}}} where is the path where the mirror shall be located. 0. Do a symlink from the location of the mirror to /var/www/ubuntu 0. Edit the sources.list on networked machines to refer to server