Skip to content

Amarok Exclusion

09-Jun-08

A quick Amarok tip - if you are like me, you have some folders full of random MP3s. For instance, I downloaded the nearly 1gb of MP3s from Stereogum and, while there are plenty of hits and misses, it’s a fun collection. But I don’t really feel like rating all of them, so to remove these from my Amarok view, I can filter them out by adding -directory:”stereogum to the Collection filter. So, for instance, to find all my unrated songs, but to not include the Stereogum collection, my filter is:

rating:>-1 rating:<1 -directory:”stereogum”

For some reason, you can’t do this via the advanced searching. You can append the directory search, but you’ll need to prepend the “-” to essentially say “not” this folder. Now I can play some unrated ones, in order to add ratings.

Question of the Day - 6 June 2008

05-Jun-08

How can you reverse the order of lines in a file via the command line?

Unbreakable Linux?

03-Jun-08

Not sure exactly why anyone would really care, but you can get a free two DVD set of Oracle’s “Unbreakable Linux”, which is basically an unbranded RedHat Enterprise Linux. Just register on their site and give them your name and address and soon it will come winging your way. Being the “distro” freak I am, I’ll probably give it a try.

Oracle’s Unbreakable Linux

(hat tip to All About Linux for the link)

I would just like to say…

26-May-08

A great read: I would just like to say…

So if you get frustrated or tired in your work for Open Source/Free Software, just remember that somewhere in Missouri, there is a 14 year-old girl named Hope, an A-student who runs on the track team, who is now your biggest fan and one of the newest users ofLinux/Ubuntu.

Undoing FLAC

19-May-08

A friend of mine convinced me that the way to go when ripping CDs is to use a lossless audio codec, in order to retain the maximum amount of audio fidelity. Given the low cost of hard disk space (heck, 1 terabyte hard drives are under US$200 these days), it makes sense to keep your music in the best shape possible when you rip it. After a little bit of investigation, we settled on FLAC as our standard ripping destination format. It makes for some pretty big files (25mb as opposed to MP3’s 5mb), but as I said, hard drive space is cheap, so why not. And I still haven’t figured out how to get KDE’s audiocd kioslave to show me a FLAC folder (I see OGG, MP3, and wav but no FLAC) but I’m sure I’ll track that down, and kAudioCreator does a good job of FLAC ripping anyway.

Of course, MP3 is the linqua franca of music players, so translating to MP3 is something I need. Rockbox, which I have on my Sansa e260, does FLAC just fine, but I don’t want to be filling up my limited player storage space with big huge, fidelity perfect, songs, when I’m justing going to be listening to them on a cheap pair of headphones, so I’d like to translate to the much smaller MP3 format.

Using some Google-fu led me to Sklav’s post with a very nice, simple, flac2mp3 bash script. You pass it a list of FLAC files to transcode and it pumps out MP3 files. You can set your own lame opts. It came with the new lame options “–vbr-new -V 2″, but even that is too aggressive for me, as I already have an uncompressed version. So I use “–preset medium”, which generates files about half the size and still sound just fine on my MP3 player. So the version you can download from here uses that preset. The nice thing about this script is that it also inserts the necessary MP3 tags, which is an important and often forgotten step in other web guides.

I also have a bunch of OGG Ogg Vorbis files, as my previous CD ripper, Helix Banshee, tended to go off the tracks periodically, perhaps after an upgrade, and decide all on its own to start ripping using Ogg. So I adapted ‘flac2mp3′ to create ‘ogg2mp3′, which does the same thing, using the ogginfo command instead of the metaflac command to get and set the MP3 tags. You can download it from here.

Picasa Download Album in Linux

16-May-08

I’m not much of a photographer, but I do have some pictures that I want to hold on to. That’s why I upload my important pics to my Picasa Online Album. With that done, I can format, reinstall or whatever, and not lose any pictures. Now, getting those pics back onto my computer was a bit of a challenge, but after a bit of googling, I made it work. Here’s how it’s done.

After installing Picasa for Linux (I’m using Ubuntu Hardy), I went to my Picasa Online Album to download my wedding pictures, but when I clicked the link, nothing happened. A little research revealed that some changes needed to be made on Firefox’s about:config page.

So, in Firefox, open a new tab and type about:config in the address bar. In the filter field, type picasa. If you have some entries there, you’re already ready already, but if not, keep reading.

To add the protocol handler, right-click in the blank area, choose New –> String.
new-string

When prompted for the preference name, enter: network.protocol-handler.app.picasa
network.protocol-handler.app.picasa

When prompted for the value, enter: /opt/picasa/bin/picasa
opt-picasa-bin-picasa

Now, right-click again. Go to New –> Boolean.
new-boolean

When prompted for the preference name, enter: network.protocol-handler.external.picasa
network.protocol-handler.external.picasa

When prompted for the value, choose: true
network-protocol-handler-external-picasa-true

Once you restart Firefox, you’re ready to go! Let me know how this works for you in the comments.

Linux Format Mega-Distro DVD

15-May-08

Back in the Dark Ages of my home computer, when I was running Windows full time, I was quite the “Distro Dabbler”. I was forever downloading ISOs of various Linux distributions, burning them on a CD and trying them out by installing it on an unused partitions. Until finally, about two years ago, I bit the bullet and moved off of Windows forever (well, except for some gaming). I tried a few of the popular distros, finally settling on openSUSE.

Since then, though, I haven’t really played much. I do have an old beta version of openSUSE 10.3 on one partition, as well as a Fedora 8 partition, but I haven’t really played much besides that. But lately I have been playing with the Linux Format DVD #103 (Mar. 2008), which is a “Distro Megapack”. There are ten(!) different distros on this double-sided DVD, including:

  • Ubuntu - natch. This is a live, bootable version 7.10 (latest is 8.04)
  • openSUSE - the live KDE 10.3 version (what I run as my “home” distro)
  • Mandriva - live version “One 2008″ of the venerable Mandriva (nee Mandrake) distro (the latest is “One 2008 Spring” - not sure if this is the same)
  • Debian - ISO of version 4.0r2 of this truly long running show (which is currently up to 4.0r3)
  • Mepis - ISO of version 7.0 of this Debian-based distro
  • PCLinuxOS - live version 2007 of this very popular modern distro (there’s currently a 2008 “mini” version available)
  • Knoppix - the kind of live CDs, this is version 5.1.1 (latest is 5.3.1)
  • Fedora - an ISO of Fedora 8, the Red Hat offshoot (version 9 was recently released)
  • Zenwalk - fast, lite (XFCE-based) distro, ISO v4.8 (version 5.0 was released in January)
  • Damn Small Linux - great ISO for your USB keychain; this is v4.2.3 (latest is 4.3)

While these are not always the latest and greatest versions (some are even behind by a major rev), this DVD is still a very nice introduction to many of the most popular distributions. Only 3 (Mint #4, Sabayon #8 and Dreamlinux) in the top 10 Distrowatch rankings are not represented, so you get a good cross section of the Linux state of the art. Especially nice are all the Live versions, all on one DVD. Pretty neat trick.

Some quick initial impressions:

  • Mandriva is really nice and solid. The live CD impressed me with its installation of the nVidia drivers and thus a full working dual monitor setup. It also did very well with my two CD drives, as well as finding my Samba home network. A very impressive showing.
  • Just because it was “there”, I tried the openSUSE 10.3 live CD and it was pretty disappointing. It didn’t installed nVidia drivers, so the monitor setup was pretty screwy. And it didn’t seem to work very well with my cd drives either. Oh well, the fully installed version works great for me.
  • After getting VirtualBox up and running, I tried the Zenwalk distro. I have dabbled in the XFCE window manager before and found it fast but opaque, which I just don’t have the time for. And Zenwalk reinforces both points. Sorry, but at this point in time, I need to stick with KDE. I would like to try out some simpler desktops / window managers, when I have the time!
  • Debian, running in VirtualBox, looked pretty solid. As mentioned in the LXF mega disto reviews, some of the sys admin tasks (like adding new packages) aren’t obvious, but still, it had a ton of pre-installed packages (which is probabl why the initial install seemed to take forever). I might have to try this on a real partition.

I’ll keep you posted as I go through some more, including the freshly downloaded Mint.

openSUSE C++ Installation

14-May-08

James’ earlier post on how to easily install a C++ development environment on your Ubuntu box reminds me of something I have been meaning to mention about installing software on openSUSE. There is some nice functionality built into YaST’s Software Management module that is called “Patterns”. By using patterns, you can quickly and easily install all the necessary parts for big products like KDE, GNOME and, yes, even a C++ environment.

After running yast2 and selecting the Software Management module from the Software section of the Control Center, select Patterns from the Filter drop down list. This gives you a nice one stop clicking experience to install behemoth groups like XFCE, Amarok, and Java. To install a complete C/C++ development environment, scroll down to the Development section and click on the C/C++ Development check box. While you are there, you might as well at least select the development package for your desktop of choice (KDE or GNOME) or even both of them, as utilities written for one often work on either.

Another useful shortcut in the Software Management module is the Package -> All Packages -> Update if newer version available menu selection. I usually do this when warned via the openSUSE Updater that there are important updates to install, as that only picks the most vital ones to install, which can sometimes lead to problems. The “Update if newer version” option checks all your installed packages to see if there are updates and will list them in the right hand window. Look it over and the hit the Accept button.

Question of the Day - 14 May 2008

14-May-08

What command would you use to mount a native FreeBSD partition?

SCO Linux Anyone?

13-May-08

I found this while downloading some drivers today. SCO Linux being offered for download at IBM.com. If you don’t know the significance of the picture, read this: http://en.wikipedia.org/wiki/SCO-Linux_controversies

SCO Linux from IBM