|Astonish Results Blog|
Using jigdo to download Ubuntu under Windows
I was recently introduced to jigdo (IMHO the most powerful linux distribution download tool EVAR!). Unlike the traditional method of downloading a huge ISO file in one go, jigdo downloads parts of the CD image and then reassembles them locally in an ISO file. What makes jigdo special, however, is that you can use it to "update" a CD image. In other words, you will only have to download the updated files within the CD to compile an updated CD image, saving you time and precious bandwidth in the process. Jigdo uses wget to download small parts of the CD image. Using the
jigdo-lite-settings.txt file, you can pass your own parameters to wget including for example the proxy server address and the number of retries before failing.
Interestingly, jigdo can also be used to circumvent download limits put by network administrators. In some corporate environments, user downloads are limited to relatively small file sizes - preventing the user from downloading whole linux distributions compiled on a single large ISO file. By downloading small parts, jigdo allows that user to circumvent the limit and download the ISO file in small parts.
In our example we will be updating the daily build of Ubuntu Gutsy Gibbon 7.10. Note that jigdo can be used to download a fresh new CD from scratch.
- Grab a copy of jigdo's windows binary from here
- Extract all the files to a separate folder. When you extract the files you will notice that the
jigdo-lite-settings.txtfile is missing. Start jigdo using the
jigdo-lite.batfile. Type any thing at the first prompt, press ENTER and then press CTRL-C and answer Y to terminate the job. Jigdo now created the default
jigdo-lite-settings.txtfile for you. Open the file with notepad.
wgetOptsadd (or edit) your own wget parameters. Refer to wget manpage for more info. To add a proxy server add the following parameters:
-e ftp_proxy=http://LOCAL-PROXY:PORT/ -e http_proxy=http://LOCAL-PROXY:PORT/Where LOCAL-PROXY is the hostname to your proxy server and PORT is the port number. If the proxy requires authentication also add the following parameters:
http://cdimage.ubuntu.com/daily/current/gutsy-alternate-i386.jigdo.If say we want to download the release version of Ubuntu 7.06 Feisty Fawn the URL is
jigdo-lite-settings.txtfile change (or add) the URL to the jigdo file to the
jigdo=variable. Make sure you surround the URL with a single quote character
http://de.archive.ubuntu.com/ubuntu/because it's the closest to my location. For other mirrors refer to this page.
jigdo-lite-settings.txtfile change (or add) the URL to the jigdo mirror to the
debianMirror=variable. Make sure you surround the URL with a single quote character like so
tmpDir=variable to the location of a temporary directory where jigdo can store temporary files.
jigdo-lite-settings.txtfile so we press ENTER. jigdo downloads the jigdo file.
jigdo-lite-settings.txtand so we press ENTER. jigdo will now download the .template file and start downloading the CD files one by one. In most circumstances, this will take a very long time so you better leave the Command-Prompt window open and do other things.
ps. If you run into any problems refer to jigdo's documentation page