Blog of Leonid Mamchenkov

You just stepped in a pile of posts.

Entries for the ‘Linux’ Category

Fighting Adobe AIR on Fedora 12

Until now I was completely and totally ignoring Adobe AIR.  As far as I was concerned, it existed in a separate universe.  But recently, quite a few Adobe AIR applications started to come up on my radar that I wanted to try.  Yesterday, for example, I saw the Flickrroom, which sounds exactly like something that I need.  So, I searched yum repositories, and then Google, and then I found this blog post, which provides clear instructions on how to install Adobe AIR on Fedora Linux.  Followed everything to a step, and failed.  Then Googled for more, tried, and failed.  And no matter what I do, it seems to fail miserably.

Adobe AIR in Gnome menu

As far as I can judge, Adobe AIR is installed on my system.  I see two items in the main menu and they even work when I run them.  But when I try to install any Adobe AIR application, I get a well known error message.

$ Adobe\ AIR\ Application\ Installer /home/leonid/Desktop/Flickroom.air
Application crashed with an unhandled SIGSEGVCrashlog has been dumped in /tmp/airCrashLogs/0219_1359_vG6AfW

This seems to indicate that I missing some dependency on my system, but I can’t which one. I’ve installed and updated everything that I could find a reference to.  I’ve also looked through the crash dump for any hints, but nothing jumped at me.

Any ideas?

Fedora Linux history tour

Last weekend I went through a somewhat lengthy process of upgrading one of my servers from Fedora 6 to Fedora 12.  The server is vital for a company that uses it, there is more than 2 TBytes of data on that machine, and I only had a weekend to go through the upgrade.

Fedora is a very dynamic distribution, with new releases coming out roughly every 6 month.  An upgrade backward compatibility is maintained only for the last 2 releases.  So, I had to first upgrade from Fedora 6 to Fedora 8, then from Fedora 8 to Fedora 10, and then finally from Fedora 10 to Fedora 12.

Of course such a long path would pretty much guarantee that things would break.  But gladly I didn’t have to fix them for every upgrade, only once, after Fedora 12 upgrade was complete.  So the actual upgrade routine was rather simple: insert DVD with the new version, reboot, upgrade, remove DVD, reboot.  I was attempting to boot the system at least once into each new version to see how much stuff would break and if I notice anything going horribly wrong.  Everything was going smooth, except for once machine refused to boot into the new version (Fedora 8, if I remember correctly).  That didn’t stop me though.  Just upgrade to the next one, and then to the next one, etc.

After the upgrade was finished, I installed the updates for Fedora 12 and started fixing things.  The thing that I was worried for the most was Request Tracker (aka RT3) installation, which is a Perl application.  As any proper Perl application, RT3 utilizes a whole lot of Perl modules from CPAN and every time Perl version is changed signifficantly, these modules should be downloaded and installed.  Before, it was a rather slow, boring, and time consuming task.  Now however things are much simpler.  Before any perl upgrade just create an autobundle using the command “perl -MCPAN -e autobundle“.  This will create a bundle with all your current Perl modules.  After the upgrade is done, run “perl -MCPAN -e ‘install Bundle::Snapshot_2010_01_27_00‘” (where 2010_01_27_00 is the bundle version, as given to you by autobundle).  Now Perl will download all modules and their requirements from CPAN and install them automatically.  Pure magic.

Apart from RT3 only one thing broke.  One that I would expect to break because I don’t follow the development of it that close.  It was Samba.  After the upgrade to Fedora 12 none of the users could connect to any of the file shares.  ”Access denied” was given no matter which username and password was used and what was the access level to the share.  A quick Google search revealed the fix.  Apparently, somewhere in between Fedora 6 and Fedora 12, Samba changed default back-end for storing credentials.  A fix was as simple as adding a single line (“passdb backend = smbpasswd) to the configuration file, that switched Samba back to the old backend.

And that’s it!  That’s all that broke and had to be fixed after an upgrade between 6 versions of a rather dynamic Linux distribution.  Once again, I am really amazed by how well things are managed in Fedora.  Kudos and congrats!

Miro – king of online video tools

My online video experience until very recently was limited to watching clips directly on YouTube and Google Video, and downloading episodes of Diggnation once in a while.  There are of course more places and worthy video podcasts on the Web, but I just didn’t have the right tool, and I didn’t bother enough.  But all of that had changed.  A few days ago I stumbled upon Miro.

Miro

So, what’s Miro?  Miro is a cross-platform (works on Linux, Mac, and Windows) application for downloading and watching online videos.  It has a really simple and straightforward interface and does a lot of magic by itself.  You just search for things that you are interested in – either by keyword or by category – review the list of results, subscribe to shows that you like and Miro automatically downloads them to your computer.  You can watch those shows any time later.  Even when you are not connected to the Internet (such as on the airplane for example).

You can search through downloads, sort them in a number of ways, etc.  After you have seen the video, you can either delete it or keep it.  If you do nothing about it, Miro will keep it on your computer for a few days (defaults to 5), and then will delete it to save some space.

Miro also comes with a built-in video player, so you don’t need any external ones installed.  On Linux, Miro supports two back-ends – gstreamer and xine.  I had a problem with gstreamer not playing any audio, so I switched to xine and everything is working nicely now.  As an extra bonus, Miro’s video player remembers your last position for every video you played.  So if you just stop the playback and decide to continue later, you won’t have to fast forward – Miro will just automatically start playing from the point where you stopped.

Miro supports a number of sites for video downloads.  With YouTube, for example, it downloads a high definition (HD) version of the video by default, if its available.  Also, torrent sites are supported and Miro handles them automatically as well.

Miro is such a simple and useful tool that it changes the way you see online videos.  For example, before Miro I could only handle just a few podcasts, but now I am subscribed to dozens.  It’s like an RSS aggregator for online video.  It’ll make you want watch more videos.  And it will make it extremely easy to do.

Obviously, I can go on and on about how wonderful it is, but instead of listening to me, you should get Miro and give it a try.  Let me know in the comments if you liked it at all.

Interview with Jim Zemlin of Linux Foundation

cnet runs an inspiring interview with Jim Zemlin, the executive director of Linux Foundation.  Interview covers the current state of Linux,

Linux has contributed over $10 billion in R&D value to the world. It runs every major financial trading platform in the world. It the only way the mobile industry could respond to the iPhone. It has over a $50 billion economy just in enterprise computing alone. It runs 90 percent of the world’s fastest supercomputers. It powers Sony cameras, Samsung televisions, your DVR, your GPS system and most of the major Web sites in the world. How on earth does this spell “trouble” for open source?

as well as expectations for the year 2010.

Linux is accelerating a major industry transition that is already well underway–an industry in which we pay for software and hardware to one in which we pay for neither.

Linux on netbooks : distribution question

Linux on netbooks is becoming a hot subject recently.  There are more and more netbooks sold, and more and more of them are coming with Linux.  Or are being used to try Linux out.  Netbooks are small and often cheap devices which makes them affordable and even … expendable.  So a lot of people are getting them just to play around.  And those of them who want to try Linux out often end up asking the question: Which distribution should I chose?

This question has been asked many times before.  Everyone who tried using Linux asks this question sooner or later.  And the answer is – it’s pretty much doesn’t matter.  The truth is no matter which distribution you will chose, you’ll have a whole lot of questions.  Which applications to use, how to configure things, how to do specific things that you are used to doing in your current operating system, etc.  With all these questions you’ll go to Google, forums, and other people.  So, choose the distribution which you can find the answers for easier.  If someone is introducing you into the world of Linux, choose the same distribution that person is using.  That simple.

But aren’t netbooks different?, you might ask.  Yes and no.  Netbooks are in the class of their own because it’s very easy to classify them.  They are smaller than laptops, often cheaper than laptops, and often have weaker hardware (less powerful CPU and less RAM specifically).  But they are still as normal a computer as any other desktop or laptop.  And while there are quite a few Linux distributions for netbooks, you can still use practically any desktop-oriented or generic Linux distribution on the netbook.

How come?  Well, the differences between Linux distributions are in:

  • how the kernel is compiled
  • which software is packaged
  • default configuration options

All three of these items are quite easy to change.  You can compile your own kernel.  You can remove installed software and install additional software.  You can change configuration options.  Involving yourself in any of these activities is not something I’d recommend to a novice user, but the important bit is that it can be done.

Consider for example, a recent example in my blog post about Fedora 12 installation on my netbook.  It went like a charm and the only issue I came across with was that wireless wasn’t working.  Which could be fixed either by installing an additional package or re-compiling the kernel and enabling the device driver.

What I am trying to say is that trying different distributions is fun, but you shouldn’t be basing your choice of the distribution just on the fact that you are using a netbook.  Consider the purpose of the distribution, software that you will be using, and people that you will be consulting with before choosing the Linux distribution for your netbook.

Fedora 13 name suggestions

After a recent release of Fedora 12, the attention is starting to focus on Fedora 13.  And, as it is usually, the work starts with the name.  Here are the suggested and approved names for the next release of Fedora distribution:

  • Botany
  • Gloriana
  • Goddard
  • Langstrom
  • Loana
  • Manfredi
  • Truro

The Fedora naming tradition says that the new name must be in some way related to the previous one. If you don’t know how any of these names are linked to “Constantine”, the name of the Fedora 12 release, here is a page with more information.

And if you want to learn more history of the Fedora release names, you should visit this page.

Linux, Skype, and web camera

I’ve been using Skype for a few years now, but mainly for chats.  Occasionally, I’d do a call, but that never involved video.  Until recently.  A couple of days ago my dad got online (finally!).  And now there is a good reason to use Skype with a web camera for video calls.

One of the key points in Fedora 12 release notes was about improved support of video cameras.  That I was glad to hear.  I got my hands onto several web cameras and all of them seemed to work just fine in Cheese – a video capture application.  However, none of these cameras worked in Skype.  Either they were not recognized by Skype, or Skype was crashing, or I was getting really weird green-screen output, or something else.

It turned out, that there is something I had to do.  First, check if libv4l package is installed, and if it isn’t – “yum install libv4l“.  That’s a video for Linux library.  Second, start Skype like this: “LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype“.  Once I did that, Skype / Options / Video Devices confirmed that video is working fine.

Skype video

Disable touchpad while typing

I came across this blog post, which, among other things, has this excellent tip for us, laptop and netbook users – how to disable touchpad while typing.  The tip is specific for Gnome desktop and is rather easy to follow.  Navigate to System / Preferences / Mouse menu, switch to Touchpad tab, and check “Disable touchpad while typing” box.  Then close dialogue window and enjoy.  Here is a screenshot to make you life even easier.

Gnome : System / Preferences / Mouse / Touchpad

Fedora 12 and IntelliBook (rtl8187se)

I recently got my hands on an IntelliBook netbook (site in German, but the machine is actually Clevo M810L).  It’s a really small, light, and simple machine, which I got for nothing, and which, I haven’t got it for nothing, would cost me around 400 EUR.  The truth is, if I wouldn’t have bought it for 400 EUR.

intellibook

The good things about it are: small, light, built-in WiFi and a rather large 160 GB hard disk.  The bad things are: non-standard keyboard layout (I touch type, so I don’t mind, but the other people in my home do), non-Linux-supported web camera, and really low battery life (around 2 hours or so).  Also the touchpad always gets in the way, and the whole case has this cheap plastic feel to it.

When I first got the machine, it was running Ubuntu 9.10.  While I have nothing against Ubuntu, I am a Fedora person.  I want a regular desktop, and I want my commands and configurations to be where I am looking for them.  So I replaced Ubuntu 9.10 with a recently released Fedora 12.  The Live USB installation was as simple as it can possible be – boot from USB stick into a desktop, click “Install to hard disk“, and click Next three or four times.

Once the Fedora 12 Gnome desktop booted up, I was slightly disappointed to find out that wireless wasn’t working.  Since it was working just fine in Ubuntu, I was pretty sure that fixing the problem won’t be hard.  And  I was right.

First, I established that the wireless card uses RealTek chipset (rtl8187se).  Secondly, I Googled for rtl8187se and Fedora 12, which led me to this blog post, comments to which suggested that I need to add RPMFusion to my yum repositories and install kmod-staging* packages (there are two of them, one generic, and one with specific kernel version).  Once the packages are installed, loaded up the driver with “modprobe rtl817se“, and restart both network and NetworkManager servers.  Not even a reboot is needed – NeworkManager picks up the wireless network adapter and connects to the network.  A test reboot confirmed that nothing else needs to be done and everything is just fine.

With that, I now have a little computer, which is easy to move around, and can even be given to my kid to play with.  If it wasn’t for the short battery life, it would be perfect for travelling.  So, either I’ll find an extended battery for this thing (which I doubt), or I will get myself another netbook for all the travels that I do.  Carrying around a full fledged laptop becomes heavy and ridiculous.

Fedora 12

I’ve upgraded my laptop to Fedora 12.  I know, that wasn’t the smartest move, since the conference which I am attending is not over yet.  But I just couldn’t wait.

The upgrade process was as simple as:

  • Open up the terminal, switch to root user, and run “preupgrade“.
  • Select Fedora 12 from the list of available options and click Next.
  • Watch the downloads in progress.  Or, as I did, go and have a few beers and socialize.
  • When you are back from the beers, before you crash into bed, click the Next button for the installation to start.
  • Go to sleep.
  • Wake up to a shiny Fedora 12 distribution on your computer.

The only thing that got me worried for a second was that after the laptop rebooted into Fedora 12, for some reason the resolution of the screen went down to 800×600 or something like that.  But all I had to do was login into Gnome, navigate to System / Administration / Display and switch resolution back to what it was before the upgrade.

I didn’t have much time to explore things yet, just read through release notes and features list.  However things do look to be faster and more polished.  I’ll have to use it for a few days to know for sure.