NONparametrics

geekdom without assumption
NONparametrics

man with a mirror

I’m sure that you’ve all heard me sing the glories of Linux at some point, and probably most of you know that I run Ubuntu (among other OSes). I’m constantly impressed by the relative ease of use and how quickly it is continually improving. I’ve got 7.04 (Feisty Fawn) running on 5 machines at the moment, and I’ve been wanting to upgrade to 7.10 (Gutsy Gibbon) since it came out a few weeks ago; I just haven’t had the time to add a new hard drive to my apt-mirror machine. BTW, any of you really geeky fellows who run Ubuntu on more than two machines, apt-mirror is well worth the effort and bandwidth (if you have it).

It takes all of about 10 minutes to set up, and about 12-72 hours to download the packages. Once it’s done, your updates and installs will happen in seconds, since the downloads are only limited by your local LAN. With my sources enabled (all of the official and community repos on the ubuntu mirror plus the wineHQ one) it was a 37 gig download. Assuming you have a running web server, all it takes is:

sudo apt-get install apt-mirror

After the install, open up your mirror.list and replace the lines that start with deb with the similar ones in your sources.list. here is mine:

sudo vim /etc/apt/mirror.list

############# config ##################
#
# set base_path /var/spool/apt-mirror
#
# if you change the base path you must create the directories below with write privlages
#
# 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
set nthreads 20
set tilde 0
#
############# end config ##############

deb http://us.archive.ubuntu.com/ubuntu/ feisty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ feisty main restricted

deb http://us.archive.ubuntu.com/ubuntu/ feisty-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ feisty-updates main restricted

deb http://us.archive.ubuntu.com/ubuntu/ feisty universe
deb-src http://us.archive.ubuntu.com/ubuntu/ feisty universe

deb http://us.archive.ubuntu.com/ubuntu/ feisty multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ feisty multiverse

deb http://security.ubuntu.com/ubuntu feisty-security main restricted
deb-src http://security.ubuntu.com/ubuntu feisty-security main restricted
deb http://security.ubuntu.com/ubuntu feisty-security universe
deb-src http://security.ubuntu.com/ubuntu feisty-security universe
deb http://security.ubuntu.com/ubuntu feisty-security multiverse
deb-src http://security.ubuntu.com/ubuntu feisty-security multiverse

clean http://us.archive.ubuntu.com/ubuntu

After that you just need to run the mirror updating command…
sudo su - apt-mirror -c apt-mirror
…and wait for several hours. Or days.

Once it has completed the first run, you can go into /etc/cron.d/apt-mirror and uncomment the line in there to make it run on it’s own every day.

Related Tags: [ , , ]

Leave a Reply