Installing Multimedia Support in Ubuntu Hardy

[I have modified an original posting by Adrian Kingsley-Hughes @ blogs.zdnet/hardware]

Adding support for common media

Let’s first add support for common media file types.

Note: I’m going to assume that you have access to the Internet to make any required downloads.

  1. Click Applications > Add/Remove … to bring up the Add/Remove Applications screen (you may be prompted to update the list of available applications).
  2. From the Show dropdown box select All available applications.
    ubuntu_mm_05_sm.png
  3. In the Search box type mp3 and wait for the list of applications to be updated.
  4. From the list of applications select the following to install:
    – Ubuntu restricted extras
    – Gstreamer extra plugins
    – Gstreamer ffmpeg video plugin
    – Mplayer Movie Player
    – Exaile Music Player/Manager
  5. ubuntu_mm_07_sm.png
    To select these you will have to confirm the installation of restricted software and enable installation of unsupported and restricted software.
  6. Click Apply changes and confirm the installation of the software.
  7. Once you are done close the Add/Remove Applications screen.
  8. Click System Administration > Synaptic Package Manager to bring the Synaptic Package Manager screen (you will have to enter your password to conform the launch of this application).
    ubuntu_mm_20_sm.png
  9. In the toolbar click Search and look for openjdk.
  10. From the list right-click on openjdk-6-jre and openjdk-6-jre-headless and select Mark for Complete Removal. You will next be asked to confirm the removal of other components such as icedtea_gcjwebplugin, which are OK to remove.
    ubuntu_mm_22_sm.png
  11. Click Apply and Apply again. The system will carry out the changes you requested. Click Close when done.
  12. In the toolbar click Search and look for sun java.
  13. Find sun-java6-jre and sun-java6-plugin, right-click on each and select Mark for Installation. You will be asked to confirm additional required changes.
    ubuntu_mm_33_sm.png
  14. Click Apply and Apply again. The system will carry out the changes you requested. Click Close when done.
  15. In the toolbar click Search and look for vlc plugin.
  16. Find mozilla-plugin-vlc, right-click on this and select Mark for Installation.
  17. Click Apply and Apply again. The system will carry out the changes you requested. Click Close when done.
  18. In the toolbar click Search and look for mplayer plugin.
  19. Find mozilla-mplayer, right-click on this and select Mark for Installation.
  20. Click Apply and Apply again. The system will carry out the changes you requested. Click Close when done.

Enabling the Almighty Medibuntu Repository

By getting this far you’ve added support for a not of different multimedia file types, such as MP3, MPEG1, MPEG2, DivX and WMV. If this is enough support for you then you can stop here. However, if you want to add support for commercial DVDs and other proprietary media formats, read on …

  1. Click Applications > Accessories > Terminal to bring up a terminal window.
    ubuntu_mm_49_sm.png
  2. Type the following:
    sudo cp /etc/apt/sources.list /etc/apt/sources.old
    Press Enter. You will then be asked for your password. Note that when you type this noting will be displayed on screen. Press Enter again.
    ubuntu_mm_50_sm.png
  3. Type the following:
    gksudo gedit /etc/apt/sources.list
    Press Enter.
  4. A text file will be opened in gedit. At the very end add the following line:
    deb http://packages.medibuntu.org/ hardy free non-free
    Save the file and close gedit.
    ubuntu_mm_53_sm.png
  5. Switch back to the terminal window and type the following:
    wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add –
    Press Enter.
    ubuntu_mm_55_sm.png
  6. To reload the software repositories, type the following into the terminal window:
    sudo apt-get update
    Press Enter.
  7. Click System Administration > Synaptic Package Manager to bring the Synaptic Package Manager screen (you will have to enter your password to confirm the launch of this application).
  8. In the toolbar click Search and look for w32codecs.
    ubuntu_mm_59_sm.png
  9. Find w32codecs, right-click on this and select Mark for Installation.  You will be asked to confirm additional required changes.
  10. Click Apply and Apply again. The system will carry out the changes you requested.
    ubuntu_mm_63_sm.png
  11. In the toolbar click Search and look for libdvdcss2.
  12. Find libdvdcss2, right-click on this and select Mark for Installation.  You will be asked to confirm additional required changes.  Do the same for msttcorefont, Mark for Installation, Apply.
    ubuntu_mm_68_sm.png
  13. Click Apply and Apply again. The system will carry out the changes you requested.
  14. Finally, go to System > Administration > Software Sources. Click on the Third-Party Software tab and uncheck http://packages.medibuntu.org/ hardy free non free. Click Close (ignore the request to reload the list).
  15. Job done!

Enjoy!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: