Tips and Tricks About Computers, Web Development, Linux, the Internet and the Like
Fastest way to install the media essentials in ubuntu
If you’re coming from Windows, or like me, find yourself living in a live CD while you figure out which step went wrong; you’ll be interested in the essential media codecs, flash, java, Microsoft fonts, etc.
I thought I’d share the way I did this as quickly as possible in in Ubuntu 10.04 using the command line.
Open up terminal, using ctrl+alt+t (Which I’m very happy about as this has been my default since 8.04). Alternativelty from the main menu -> Applications > Accessories > Terminal
Make a backup in case you’re scared, then remove the comments from repositories you need to unlock to access the restricted (proprietary) packages.
ubuntu@ubuntu:~$ sudo cp /etc/apt/sources.list . ubuntu@ubuntu:~$ sudo sed -i 's/^# deb/deb/' /etc/apt/sources.list
We do this be matching the first 2 characters with ‘# ‘ and replacing them with ” (nothing). See the diff below (> indicate original lines, < are changed).
ubuntu@ubuntu:~$ diff sources.list /etc/apt/sources.list 18,23c18,23 < # deb http://archive.ubuntu.com/ubuntu lucid universe < # deb-src http://archive.ubuntu.com/ubuntu lucid universe < # deb http://archive.ubuntu.com/ubuntu lucid-updates universe < # deb-src http://archive.ubuntu.com/ubuntu lucid-updates universe < # deb http://security.ubuntu.com/ubuntu lucid-security universe < # deb-src http://security.ubuntu.com/ubuntu lucid-security universe --- > deb http://archive.ubuntu.com/ubuntu lucid universe > deb-src http://archive.ubuntu.com/ubuntu lucid universe > deb http://archive.ubuntu.com/ubuntu lucid-updates universe > deb-src http://archive.ubuntu.com/ubuntu lucid-updates universe > deb http://security.ubuntu.com/ubuntu lucid-security universe > deb-src http://security.ubuntu.com/ubuntu lucid-security universe 30,35c30,35 < # deb http://archive.ubuntu.com/ubuntu lucid multiverse < # deb-src http://archive.ubuntu.com/ubuntu lucid multiverse < # deb http://archive.ubuntu.com/ubuntu lucid-updates multiverse < # deb-src http://archive.ubuntu.com/ubuntu lucid-updates multiverse < # deb http://security.ubuntu.com/ubuntu lucid-security multiverse < # deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse --- > deb http://archive.ubuntu.com/ubuntu lucid multiverse > deb-src http://archive.ubuntu.com/ubuntu lucid multiverse > deb http://archive.ubuntu.com/ubuntu lucid-updates multiverse > deb-src http://archive.ubuntu.com/ubuntu lucid-updates multiverse > deb http://security.ubuntu.com/ubuntu lucid-security multiverse > deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse > <pre class="brush:bash">
Now that we uncommented these lines, they will be read next time we update, so lets go ahead and do that now. Once that is done, we can install the extras.
ubuntu@ubuntu:~$ sudo apt-get update ubuntu@ubuntu:~$ sudo apt-get install ubuntu-restricted-extras
Rock and roll.
| Print article | This entry was posted by Tyler Mulligan on May 7, 2010 at 9:37 pm, and is filed under Command Line, Computers, Linux, Operating Systems, Software, Ubuntu, open source. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |