From Fedora Project Wiki
Line 11: Line 11:


The easy solution is to put a mirror inside the institute or organisation, so that the contents are downloaded only once and users can get contents from it. Considering that the cost of bandwidth inside a LAN is trivial and it offers much better throughput, mirroring can be an ideal solution to reduce the expenditure and can considerably speed up installations of new software or updates.
The easy solution is to put a mirror inside the institute or organisation, so that the contents are downloaded only once and users can get contents from it. Considering that the cost of bandwidth inside a LAN is trivial and it offers much better throughput, mirroring can be an ideal solution to reduce the expenditure and can considerably speed up installations of new software or updates.
In the subsequent sections, I shall take you to a step by step guide on how to mirror. Yes, it is easy, but at times it can be puzzling.


==  Why mirror it? ==   
==  Why mirror it? ==   

Revision as of 15:48, 4 August 2009

Mirroring

Introduction

The most common nocturnal activity of an engineering student, particularly when exams are approaching, is to fire up a first person shooter game. Now suppose, the geek in you, fed up with all the trivialities a text book has to offer, decide to challenge your friend to a deadly dual of OpenAreana. According to murphy's law, he won't have it installed, and the Internet connection will go down at the very moment. Now being a geek, though you are sure the world is conspiring against you, you won't give up so easily, would you? You will decide to see the end of it by creating a local repository of the Fedora, so that every package is ready to serve when you want them. Of course you will be able to do it yourself, but I consider it my duty to make it easier so to allow you to take up more important duties like running a OpenArena server.


Now, having read so far, if you are not entirely sure what this is all about, let me tell you: it is about locally mirroring fedora repositories.

According to wikipedia, In computing, a mirror is an exact copy of a data set. On the Internet, a mirror site is an exact copy of another Internet site. When you try to install a new package into your Fedora Installation, either via packagekit or via yum, what they basically do is fetch the packages from an Internet site along with the libraries required for it and install it on your computer. Now softwares like OpenOffice or OpenArena are very big in size and along with all the dependencies, that is the other softwares on which this particular software depends, the download size may be in a order of hundreds of Megabits.

Now consider a simple calculation, if your hostel or organisation has 100 users and each downloads OpenOffice separately, it will take around 100x150 = 15000Mb = Apprx.14.5Gbs of bandwidth. If you consider even a normal usage senario, where users occationally install new softwares and updates there system, the download can easily reach Terabite level per month. In countries like India, where bandwidth is a costly commodity, it is hardly possible for an Institute or Organisations to invest an astronomical amount for such a huge bandwidth and this can easy play a spoilsport to the advent of FOSS.

The easy solution is to put a mirror inside the institute or organisation, so that the contents are downloaded only once and users can get contents from it. Considering that the cost of bandwidth inside a LAN is trivial and it offers much better throughput, mirroring can be an ideal solution to reduce the expenditure and can considerably speed up installations of new software or updates.

In the subsequent sections, I shall take you to a step by step guide on how to mirror. Yes, it is easy, but at times it can be puzzling.

Why mirror it?

Size estimate.

What do I mirror?

How?

Hardware requisite

Software requisite - apache/vsftpd/rsync

Test your download speed

Clean the board (Setup your System)

Setup webserver and ftp server

Start syncing

When synced, put in a cron job

Run report mirror

Setup firewall

Monitor regularly

Build up Stats