Saturday, April 30, 2011

how to add mediubuntu repository in natty

Well,with release of natty(ubuntu 11.04) 2 days back,its now time for the mediubuntu repository update.
Medibuntu (Multimedia, Entertainment & Distraction In Ubuntu) is a repository of packages that cannot be included into the Ubuntu distribution for legal reasons(mainly due to geographical variation of patent law).This creates problem for many free and non-free softwares(free as in speech not as in eggroll).So they are packed in a separate repository.Now,its the responsibility of the end-user to  make sure that the software they are installing can be legally used in their country and for their intended purpose.If you are in india,usually you can go ahead with this repository without any legal problem.
Within 2 days of release of ubuntu 11.04,mediubuntu is also available now.
To install this,open the terminal and paste the following command
sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update
The following optional command  has two parts. The first will cause many apps from the Medibuntu repository to appear in Ubuntu Software Center (Ubuntu 9.10+) or Add/Remove Applications (versions prior to 9.10). The second will allow users to generate crash reports against Medibuntu packages and submit them to the Medibuntu bugtracker.
sudo apt-get install app-install-data-medibuntu apport-hooks-medibuntu

If you are not ready to install any non-free software(i.e,those softwares which are not open-source) then you could deactivate the non-free component of mediubuntu repository with the following command
sudo sed -e 's/ non-free//' -i /etc/apt/sources.list.d/medibuntu.list && sudo apt-get update
Please remember this is to applied only after the addition of mediubuntu repository is complete.