I thought that I’d follow up on my complaint about the non-working PenguinTV on Ubuntu Gutsy Gibbon. From a forum post, I found a workaround:
In a terminal, type
export LD_LIBRARY_PATH=/usr/lib/firefoxand thenexport MOZILLA_FIVE_HOME=/usr/lib/firefoxand then execute PenguinTV:PenguinTV &, which allows the program to find what its looking for.
That’s a bit arduous, so why not automate it? I did so, and it is really a hack, but I thought that I’d share it with you. Anyone who has created bash scripts before (or batch files in Windows/DOS) will find this to be quite trivial, but there are many out there who still haven’t “gotten their feet wet”.
So, the first thing that you’ll want to do is open your favorite editor. For quick and dirty scripts like this one, I use nano, as many systems have it included and the learning curve is quite small. So, for nano, you would open a terminal and type nano -w Pengi. I use Pengi as the name for my script. you can use whatever you want. The -w flag for nano causes it to continue beyond the border of your terminal when writing a line, keeping you from truncating a long command. Its not really necessary for this script because the commands are quite short, but its a good habit.
Here’s what you put in your editor:
#!/bin/bash
export LD_LIBRARY_PATH=/usr/lib/firefox
export MOZILLA_FIVE_HOME=/usr/lib/firefox
PenguinTV
Save the file. Ensure that you’ve typed each command on a new line. Then change it to executable with a quick chmod: chmod a+rwx Pengi
You can now open PenguinTV on the command prompt by typing /home/your-username/Pengi
That’s not the end of it, though, right? You want your nice little icon to execute the file when you click it, I am sure. Whether I use Gnome, KDE, or XFCE, I’ve become accustomed to putting a quick launch for my favorite applications on the taskbar for easy access. This is the case for PenguinTV as well.
Its quite easy, in these desktop environments, to change the attributes of an application launcher. Its even a tad easier than when using Microsoft Windows, as you don’t have to remember to put quotes around the application path. So, you would right-click the PenguinTV icon and select “properties” from the menu. In the “path to executable”, you would replace “PenguinTV” with “/home/your-username/Pengi" (without the quotes, of course) and click OK. You should be in business and PenguinTV should open with the right environment variables to launch successfully.
LD_LIBRARY_PATH is one of my banes. I have spent countless hours troubleshooting non-working shell scripts that ended up being LD_LIBRARY_PATH being either incorrectly set or not set at all. That’s now the second thing I check, with permissions on all files/directories being first. That’s another story. LOL
Can’t you also modify the /etc/ld.conf file as well as an alternative for setting LD_LIBRARY_PATH? I know there have been whole articles written up on this though sometimes I set this environmental variable myself.
Actually it would be modifying the /etc/ld.so.conf file and then running the ldconfig command. I spoke too fast!
Hey I can’t click on my name to edit my comments anymore! Is this a mozilla issue on my machine or a WordPress issue?
I’m not sure about the editing plugin. I’ll have to check that. I wrote about doing this task this way because there are sometimes programs that you just like to use, despite the way they are coded. And, PenguinTV is one of these for me. I like the way the program behaves when it works. Its just a hard one to get and keep working in Ubuntu at this time.
Its sad that PenguinTV is presenting so many obstacles given its utility value as a centralized podcast retriever! Hey, Corey, my Dad is allowing me to install Linux Ubuntu on his secondary “email” computer. Yeah! But he uses Microsoft Outlook for his email. I’m assuming he uses POP3 or something to get his email so hopefully I will be able to come up with a good linux email substitute!
It depends how much of the functionality of Outlook he wants. Evolution is an excellent replacement, but the KDE PIM package would also be nice (or maybe just Kmail).
Alright so I updated this message with Konqueror. Wow, so Konqueror can do something that Firefox 2 can not? Well I’ll be!!