Many of the user’s/first time tester’s of Linux (Ubuntu) are having difficulties in installing a softwares that are not pre-shipped with the distribution CDs. Most of the home user’s don’t have an unlimited bandwidth broadband connection to download all those softwares through Synaptic or other package managers. This is a HOWTO for the unlimited bandwidth internet users who can help those who are not having an Internet connection, by downloading the complete Ubuntu repositories and make DVD images of the repositories. You can distribute them to others so that they can use the DVDs as a repository and they don’t have to depend Internet to install softwares. This method is taken from Howtoforge.
Ubuntu doesn’t offer DVDs ready to download with its main, universe, multiverse and/or restricted repositories. With the contents of this howto you can do it yourself.
Having the Ubuntu or Debian repositories on DVD can be useful for those users who don’t have access to the Internet where they have their Ubuntu installed but have access somewhere else to download the repository and build and burn the DVDs.
Building a local mirror
We have to install debmirror:
sudo apt-get install debmirror
Now we get the Ubuntu repositories in a local directory. In the example below we get main, universe and multiverse sections of the repository in the i386 architecture.
debmirror --nosource -m --passive --host=archive.ubuntulinux.org --root=ubuntu/ --method=ftp --progress --dist=dapper --section=main,multiverse,universe --arch=i386 ubuntu/ --ignore-release-gpg
You could change the options below as you prefer:
- –host – the URL of the repository.
- –dist – the distro of your OS (dapper, edgy, sarge, … ).
- –section – the section you want to mirror locally.
- –arch – the architecture of your box.
Separating the archive into DVD-sized directories
The repositories we got are too big (about 30Gb) to burn them to a DVD so we have to separate them into volumes.
The tool debpartial will do it for us.
sudo apt-get install debpartial
We make the directory where the volumes will reside.
mkdir ubuntu-dvd
and we make it to construct the package descriptors to every volume.
debpartial --nosource --dirprefix=ubuntu --section=main,universe,multiverse --dist=dapper --size=DVD ubuntu/ ubuntu-dvd/
Now we have to put the packages into the directories debpartial has just created. The script debcopy which also comes with the debpartial package will do it. The script needs ruby.
sudo apt-get install ruby
If everything is ok…
ruby debcopy ubuntu/ ubuntu-dvd/ubuntu0 ruby debcopy ubuntu/ ubuntu-dvd/ubuntu1 ruby debcopy ubuntu/ ubuntu-dvd/ubuntu2
Where ubuntu/ is the directory with the complete repository created with debmirror and ubuntu-dvd/* are the directories ready to host the new DVD-ready repository.
If we want to make soft links from the complete repository instead of copying the packages we can call debcopy with the option -l:
ruby debcopy -l ubuntu/ ubuntu-dvd/ubuntu0 ruby debcopy -l ubuntu/ ubuntu-dvd/ubuntu1 ruby debcopy -l ubuntu/ ubuntu-dvd/ubuntu2
Now every directory (ubuntu0, ubuntu1 and ubuntu2) fits on one DVD.
Making iso images
To get the directories ubuntu0, ubuntu1, ubuntu2 into an iso image ready to burn we can use mkisofs:
mkisofs -f -J -r -o ubuntu-dvd-0.iso ubuntu-dvd/ubuntu0 mkisofs -f -J -r -o ubuntu-dvd-1.iso ubuntu-dvd/ubuntu1 mkisofs -f -J -r -o ubuntu-dvd-2.iso ubuntu-dvd/ubuntu2
Now you can burn the iso images or mount them. Add them to the /etc/apt/source.list with the command:
sudo apt-cdrom add
Now we can verify the new repositories…
sudo apt-get update sudo apt-get upgrade
… and, if I explain in the right way, you should have your box upgraded.
About the script ‘debcopy’
I heard about someone who can not find the script debcopy, above described.
In that case, download it from here
One of my friend said, the internet speed in Linux is very fast compared to Windows. Is it true?
Well, Internet speed highly depends on the connection plan and the speed of the cable lines you are using. But the speed can be improved by some tweaks in Linux. For eg: see this post
https://sreejithemk.wordpress.com/2008/10/01/how-to-load-web-site-faster-in-mozilla-firefox/
As there are no virus/spyware issues in Linux the browsing experience is good and faster in Linux than in Windows.. Have a try with it………..