个人工具

UbuntuHelp:Medibuntu

来自Ubuntu中文

跳转至: 导航, 搜索


Introduction

Medibuntu (Multimedia, Entertainment & Distractions In Ubuntu) is a repository of packages that cannot be included into the Ubuntu distribution for legal reasons (copyright, license, patent, etc). Some of these packages include the libdvdcss package from VideoLAN and the external binary codecs package (commonly known as w32codecs) used by MPlayer and xine.

Disclaimer

Patent and copyright laws operate differently depending on which country you are in. Please obtain legal advice if you are unsure whether a particular patent or restriction applies to a media format you wish to use in your country. See Ubuntu's Free Software Philosophy and the FreeFormats page for a more comprehensive discussion of these issues.

Adding the Repository

The following bash command adds Medibuntu's repository to Ubuntu. It also adds Medibuntu's GPG key to your keyring, which is needed to authenticate the Medibuntu packages.

  • This command should be run in the | Terminal (Applications → Accessories → Terminal):

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

Medibuntu's repository is deactivated by upgrading to a newer Ubuntu release, so you should run this command again after the release upgrade. You may also wish to add the following packages. 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 --yes install app-install-data-medibuntu apport-hooks-medibuntu

Please note you may have to use --force-yes instead of --yes in order for this command to succeed.

Free and Non-Free Software

Medibuntu's repository comprises two components: free and non-free. The free component contains Free software, whose source code is distributed under an open source licence. Software in the free component is not distributed by Ubuntu because of legal issues with that software in certain countries. Some software—such as Amarok and Kaffeine—is distributed by Ubuntu but with certain functionality taken away, again because of legal issues. Medibuntu distributes this kind of software with that functionality in place. The non-free component contains software whose source code is not distributed under an open source licence. “Non-Free” refers to freedom and not to price. Software in the non-free component is not distributed by Ubuntu because the software's licence restricts how it can be distributed. This software is usually not needed for general use, as open source alternatives are usually available. Some software—such as Google Earth and Adobe Reader—is also available from the producer's website. You should be aware that software installed without a repository may not keep itself up-to-date and secure.

Removing Non-Free Software

Some people don't want to install Non-Free software on their computer, or simply have no need for the software in Medibuntu's non-free component. The following command deactivates the non-free component.

  • This command should be run in the Terminal, after adding the repository:

sudo sed -e 's/ non-free//' -i /etc/apt/sources.list.d/medibuntu.list

Removing the non-free component will remove access to these packages:

  • `alsa-firmware` (needed for some audio cards)
  • AMR and FAAC support in MPlayer and FFmpeg
  • Google Earth (also available from Google)
  • Restricted video formats (`ppc-codecs`, `w32codecs`, `w64codecs`)

Medibuntu maintains a complete package list.

Installing Individual Packages

Most Ubuntu users will only require a few packages from the Medibuntu repository; nonetheless, it's easier simply to add the repository to your setup as detailed above. The most common packages are libdvdcss2 for playing DVDs and the non-native codecs packages (w32codecs, w64codecs, ppc-codecs) for playing non-native media formats. If you wish to install individual packages, then follow the steps below.

  • With your favourite web browser, go to http://packages.medibuntu.org/.
  • Choose the Ubuntu version you're currently using.
  • Find the package for your architecture in the listing, and save it to your personal directory on your hard drive. You may need to also download any dependencies that are also in medibuntu.
  • Right click on the package you just downloaded.
  • Select Ubuntu Package Menu.
  • Choose Install Package.

Note about Adobe Acrobat Reader (acroread)

If you were using acroread from medibuntu before Jaunty was released, you can uninstall it as medibuntu no longer provides acroread. Instead you can get acroread by enabled the Canonical partner repository under System->Administration->Software Sources->Third Party Software. The option should look like this:

 
URI: http://archive.canonical.com/ubuntu

Distrubution: jaunty

Components: partner

Playing Encrypted DVDs

To play encrypted DVDs, the libdvdcss2 package is essential. libdvdcss is a simple library designed for accessing DVDs like a block device without having to bother about the decryption. Some more information about this package can be found at http://www.videolan.org/developers/libdvdcss.html. Below are the instructions for installing the packages using the command line. For other methods, please refer to Installing Software.

With the entire Medibuntu repository

If you have added the entire Medibuntu repository, you just need to install the package using APT:
sudo apt-get install libdvdcss2

<<Anchor(libdvdcss-individual)>>

With individual packages

If you wish to install just libdvdcss2, you can first download the individual package and then install the package.

  • i386:

wget -c http://packages.medibuntu.org/pool/free/libd/libdvdcss/libdvdcss2_1.2.9-2medibuntu4_i386.deb sudo dpkg -i libdvdcss2_1.2.9-2medibuntu4_i386.deb

  • amd64:

wget -c http://packages.medibuntu.org/pool/free/libd/libdvdcss/libdvdcss2_1.2.9-2medibuntu4_amd64.deb sudo dpkg -i libdvdcss2_1.2.9-2medibuntu4_amd64.deb

  • powerpc:

wget -c http://packages.medibuntu.org/pool/free/libd/libdvdcss/libdvdcss2_1.2.9-2medibuntu2_powerpc.deb sudo dpkg -i libdvdcss2_1.2.9-2medibuntu2_powerpc.deb

Playing Non-Native Media Formats

There are a few formats such as certain Windows formats, Real, and Apple Quicktime which do not have native codecs under Linux. To work around this issue, external binary codecs are used instead to play these formats. MPlayer and xine use such external codecs and these codecs are stored in the MPlayer website in their codecs directory located at http://www.mplayerhq.hu/MPlayer/releases/codecs/. Medibuntu distributes a package which contains these codecs. The codecs are under the non-free component of the repository. If you followed the directions above to exclude the non-free component, follow the steps again to add the Medibuntu repository to your system's list of APT repositories and skip the step to exclude the non-free component. Below are the instructions for installing the packages using the command line. For other methods, please refer to Installing Software.

With the entire Medibuntu repository

If you have added the entire Medibuntu repository, install the package using APT.

  • For i386, the package is called w32codecs:

sudo apt-get install w32codecs

  • For amd64, the package is called w64codecs:

sudo apt-get install w64codecs

  • For ppc, the package is called ppc-codecs:

sudo apt-get install ppc-codecs

  • NOTE: This ppc-codecs package is currently only available for edgy and feisty. These codecs are also available from MPlayer and can be downloaded directly from http://www.mplayerhq.hu/MPlayer/releases/codecs/all-ppc-20061022.tar.bz2.
  • NOTE 2: the w64codecs is only made for feisty and later, so not for dapper or edgy
  • NOTE 3: the w32codecs can be used on amd64 ubuntu (hardy, intrepid) with the i386 mplayer, but it requires manual installation and forcing the install. The i386 mplayer executable can be extracted (and moved or renamed to mplayer32 to keep it separate from the 64 bit version), and will use the ia32 /usr/lib32 entries and w32 codecs - but updated libraries (e.g. libx264.so.59 v.s .57) may also be required.

<<Anchor(codecs-individual)>>

With individual packages

If you wish to install just the individual external codecs package, you can first download the individual package and then install the package.

  • For i386, the package is called w32codecs:

wget -c http://packages.medibuntu.org/pool/non-free/w/w32codecs/w32codecs_20071007-0medibuntu2.1_i386.deb sudo dpkg -i w32codecs_20071007-0medibuntu2.1_i386.deb

  • For amd64, the package is called w64codecs:

wget -c http://packages.medibuntu.org/pool/non-free/w/w64codecs/w64codecs_20071007-0medibuntu1_amd64.deb sudo dpkg -i w64codecs_20071007-0medibuntu1_amd64.deb

  • For ppc, the package is called ppc-codecs:

wget -c http://packages.medibuntu.org/pool/non-free/p/ppc-codecs/ppc-codecs_20071007-0medibuntu1_powerpc.deb sudo dpkg -i ppc-codecs_20071007-0medibuntu1_powerpc.deb

Reporting Bugs

Medibuntu has its own Launchpad page to report bugs and request features and other enhancements. To report a bug found in any package distributed with Medibuntu, file a bug report at https://launchpad.net/medibuntu/+filebug.

You can help Medibuntu with some donation. To donate, click on the Paypal donate button on Medibuntu homepage.

Links