Monday, November 23, 2009

GStreamer Codecs on Moblin v2.1

Works perfect! The only thing I did different is I used whatever was the newest version of the package I was downloading (i.e. gst-plugins-good-0.10.17 vs 16). Otherwise works very well. The only thing that doesn't seem to work is the preview images when browsing through files with the File Browser app.



English translation:

1) Install dependencies:
sudo yum install bison flex gcc make diffutils glib2-devel pango-devel cairo-devel liboil-devel alsa-lib-devel libtheora-devel libvorbis-devel libogg-devel

2) Download gstreamer sources:
Go to http://gstreamer.freedesktop.org/src and download the following packages:

· Gstreamer-0.10.25.tar.gz
· Gst-plugins-base-0.10.25.tar.gz
· Gst-plugins-good-0.10.16.tar.gz
· Gst-plugins-bad-0.10.16.tar.gz
· Gst-plugins-ugly-0.10.16.tar.gz
· Gst-ffmpeg-0.10.9.tar.gz

***In order to streamline this process I ran the following command:
wget http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-0.10.25.tar.gz http://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-0.10.25.tar.gz http://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-0.10.17.tar.gz http://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-0.10.17.tar.gz http://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-0.10.13.tar.gz http://gstreamer.freedesktop.org/src/gst-ffmpeg/gst-ffmpeg-0.10.9.tar.gz

Once downloaded, extract all files. We will be 6 folders, each with the source code of each package.

3) Enter the folder first package (gstreamer) and execute:
. / configure - prefix = / usr
** here I also ran make clean first
make
sudo make install

4) Repeat these three steps in the base folder, good, bad, ugly and ffmpeg.

5) That's it. For some reason it did not work until I rebooted, but now plays videos and mp3 perfectly.

Getting Creative with Application Icons on Moblin

After installing Skype and discovering the world of .desktop files located in /usr/share/applications/ I decided that I wanted a cooler icon for Google Chrome (chromium) than the standard "Web Browser" icon that Moblin assigned Chrome after it installed through the "Moblin Application Installer." BTW - if you know how I can contribute to the addition of Skype to the Moblin Application Installer please let me know, I would love to help.

Basically all I did was grab a .png of the Google Chromium logo and make four files out of it - the same file but in four different sizes: 16x16, 32x32, 64x64 and 48x48. The first three I placed in their respective folders inside the /usr/share/icons/hicolor/ folder. Then I placed the 48x48 in the /usr/share/icons/ folder.

Once those are in place edit the chromium-browser.desktop file just as you did the skype.desktop file in my prior post. For example mine looks like this:

[Desktop Entry]
Version=1.0
Name=Google Chrome
Comment=Browse the World Wide Web
GenericName=Web Browser
Exec=chromium-browser --enable-plugins --enable-extensions --enable-user-scripts --enable-printing
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=chrome
Categories=Network;
MimeType=text/html;
StartupWMClass=Chromium
StartupNotify=true

X-Desktop-File-Install-Version=0.15

That main thing you're look for is that it says Icon=chrome. This is because all of the files that I placed in the hicolor and icons folders are named "chrome.png" so the desktop file will look for them in those folders (automatically) and will find them named "chrome" and use them. According to the Moblin dev site you do not need to include the ".png" -- so I did not.

Finally - reboot. Now, doesn't that look sweet?

How-To Install Skype on Moblin v2.1

Here are the instructions on how to install skype on Moblin. These are actually for Fedora 10 but they work perfectly for Moblin.


step 1: create a file in /etc/yum.repos.d/ by the name skype.repo with the following contents

[skype]
name=Skype Repository
baseurl=http://download.skype.com/linux/repos/fedora/updates/i586/
gpgkey=http://www.skype.com/products/skype/linux/rpm-public-key.asc
enabled=1
gpgcheck=0

step 2: open a terminal and issue the following command as root user

$ yum install skype

After you do that you probably want Skype to show up in under your Applications. In order to do that navigate to /usr/share/applications/ and edit the skype.desktop file.
cd /usr/share/applications/
sudo vi skype.desktop

Then make the document look just like this:

[Desktop Entry]
Version=1.0
Name=Skype
Comment=Internet Chat
GenericName=Skype
Exec=skype
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=skype.png
Categories=Network

Then hit "alt + :" to get out of the editing mode. Finally hit ":wq!" to save and quit vi. You may have to reboot at this point, but when you do Skype should show under applications in the internet section.