Archive for the 'Linux' category

Why is PulseAudio so stupid?

February 9, 2010 10:31 pm

PulseAudio screenshotI have had a hate-hate relationship with PulseAudio on Ubuntu/Kubuntu over the last few months. Today I finally got fed up with a problem I was having and out of frustration just asked Google “why is pulse audio so stupid.” Without it being a serious inquiry I eventually made my way to a debugging page at the Ubuntu wiki that helped me out.

Here is what it had me do. Enter this command in a terminal window:

sudo fuser -v /dev/dsp* /dev/snd/* /dev/seq*

Anything other than “pulseaudio” appearing in the right column is the problem. Use the killall command to kill those other items. I ended up issuing a:

killall kmix

After that my sound started working as expected. I will now have to figure out how to keep kmix from starting at boot each time, but I at least know how to solve the problem quickly when it does come up.

If you are an Ubuntu (or variants) user it appears that PulseAudio is here to stay. I have read why it is supposed to be better, but don’t understand it or really care. I will let smarter people than me argue the finer points of sound servers. I just want the thing to work.

Dodged a bullet in the shape of a hard drive

November 26, 2009 10:45 pm

A few months ago I had trouble installing a newer version of Linux on my computer. This is my main machine and houses the vast majority of our data. After the install failed I tried a different distribution of Linux. While most everything worked fine, there was one issue that haunted me. The hard drive partition that we have our photos stored on would not mount (I could not read from it). In fact as soon as I tried to mount the partition the whole machine would lock up instantly. Two other partitions on that drive worked without any problems.

I was hoping that the newer version of Kubuntu would take care of the problem. After installing it I was still getting the same behavior I had experienced with Slackware; instant lockup as soon as I tried to touch the partition.

In preparation for a new external hard drive purchase I decided to dig into this problem.

With the drive completely unmounted (even the partitions that were working fine) I ran an fsck check on the partitions. Since the partition is an ext3 file system I ran the following command:

sudo fsck.ext3 /dev/sdb2

Western Digital External Hard DriveSudo gives me root privileges. fsck.ext3 is the fs (file system) ck (check) specific for ext3 formatted partitions. The /dev/sdb2 means that I ran it on my second drive and second partition of that drive.

After putting in my root password I got a bunch of output that said:

Free blocks count wrong for group #XX ...

It asked it I wanted to fix it and I replied yes to the couple of hundred requests.

Apparently the drive was not cleanly unmounted. By running fsck I allowed it to clean up the corrupted table that said where all the data lived. While my drive is a traditional internal drive, this is a good lesson as to why you should always eject USB drives, or any type of media, before popping them out of your computer. That is true for whatever operating system you are running.

I am pleased to have recovered the 28 GB of photos that I had on there. I have most of them backed up in various locations, but do not have a full backup in one place. Since today is Thanksgiving I guess I should say I am thankful for having finally gotten to the bottom of this and that tomorrow is Black Friday and I am able to pick up an external HD that will back up all the computers on my network with room to spare.

Now, where is that coupon code for those online backup solutions?

Installing Twhirl on Kubuntu

November 22, 2008 10:47 am

My friend Gordon needed help installing Adobe AIR and Twhirl on Ubuntu. I just installed it on my notebook running Kubuntu 8.04. These steps should work almost the same on Ubuntu. I don’t know of any changes in the 8.10 release that would make this any different. But I have not tried it.

  1. Download Adobe AIR from http://labs.adobe.com/downloads/air_linux.html
  2. Navigate to the folder you downloaded AIR to. In Kubuntu you can use Konqueror or Dolphin, in Ubuntu you would use Nautilus. Right click on the downloaded file and select Properties. Select the Permissions tab and select the little check box that says “Is executable”, or “Allow executing file as program”.
  3. Click the file to start the Adobe AIR install. It took a few seconds before the installation started on my machine, be patient.
  4. Step through the prompts to install AIR. You may need to give it your user password at some point.
  5. Download Twhirl from http://www.twhirl.org/ I clicked the “Download and install” link in the section that says “Manual Installation” instead of trying the automatic install.
  6. Click (or double click) the Twhirl application that you downloaded to start the installation.
  7. Install using all the default settings that AIR gives you.
  8. Configure as necessary.

It really was that simple. I did it last week on my desktop and installed it on my notebook as I was writing this.

There are optional ways to set the permissions and install using the command line. That is the way I did it on my desktop. But since I was trying to write this in a simplified manner, I used the GUI the whole time and it worked just fine.

Google Sky and something more!

September 1, 2007 12:53 am

I just heard about Google Sky which is a new feature inside of Google Earth. It gives you star charts for your current location along with some amazing photos from the Hubble. Just like in Google Earth there are articles you can read about different stars and points of interest. All the major stars and constellations have articles written about them. Very cool.

But it gets amazingly better.

There is a flight simulator hidden in the program! After you install it, you hit Cntl+A (in Linux), Cmd+A (in Mac OSX), Cntl+Alt+A (in Windows). Yes! It works in Linux too.Maiden voyage in Google Earth Flight Simulator

For those not familiar with flight sims (which would include me), there is a list of the keyboard commands you will want to know. You can navigate quite a bit with your mouse, but you will need the keyboard to get the most out of it.

Click on the screen shot to the right to get a full size picture. I chose LAX as my airport of departure for no real reason other than I had recently been there. You will see in the pic that there are 2 push-pins. I was shocked to see them while flying. Those are stores that I had mapped in Google Earth when I was in Long Beach. The flight sim takes into account all of your personal settings inside of Google Earth. Awesome!

I heard about it from Marco’s Blog. Check out his article for more details.

Windows Picasa in Linux

August 14, 2007 10:58 pm

With the recent upgrade of my main computer from Slackware 11 to Slackware 12, I have also tried to update as much individual software as I can. I was pleased to see that Google had released a newer version of Google Earth in May of this year. But was equally disappointed to find out that the 2 year old version of Picasa I had been using was the same. I was really wanting to try out the new Picasa Web Albums.

Picasa up and runningWhile I enjoy using Picasa in Linux, it is not a native Linux application. It is kluged into Linux via Wine. This got me to thinking that I might be able to install Wine and get a recent Windows version of Picasa up and running. The only thing that concerned me was that I remember there was talk that the Wine install that Google built for its software was very modified and a standard install of Wine would probably not work.

I did some surfing around and found a nice tutorial on getting the current version of Picasa (2.7 build 28.3205,0) to play nicely with the current version of Wine (0.9.43).

This info is pulled off of a mailing list. The person who posted it said it was not original to him, but he did not know where he got it. If you know the original source of this, let me know. I will gladly give credit.

Let me step you through each part of the process. These steps were originally written for Ubuntu. I will leave them intact and comment under the steps if there are any changes.

The steps with commentary

1. I installed Picasa as usual (v2.2 for linux)

I installed the original version of Picasa for Linux. This is a truly enjoyable experience since it installs (somewhat) like a Windows program. While I am a dyed in the wool Linux user, there needs to be a standard way to install software. Google has done a good job with the installers for Google Earth and Picasa.

2. I started it up and scanned some folder containing photos

Just let it do it’s thing. For me this took no time at all since I had previously had Picasa running on my system, it found all the configurations and photos.

3. Shut down picasa AND the media detector

The media detector is the little Picasa logo that sits in the tray by the clock (on KDE). Right click it to choose the option of shutting it down.

4. Installed wine (apt-get install wine)

If you are using Slackware, then don’t use apt-get. It does not work here. I grabbed the latest version of Wine for Slackware 12 (even though the site is in Italian, the package was English). Install the package just like you normally would any other Slackware software package. If you don’t know how, there are tutorials for that too.

As a side note, and something that was confusing to me, there was no Wine configuration that I needed to do. Just keep plugging through the steps and you will get there.

5. Downloaded picasa 2.5 for windows (wget http://dl.google.com/picasa/picasaweb-current-setup.exe)

Again, this is a step in Ubuntu (and other Debian based systems). Just go download the Windows .exe file from Picasa.

6. Installed it using wine (wine picasaweb-current-setup.exe)

This is done from the command line. cd to the directory where you downloaded the picasaweb-current-setup.exe file and issue this command: wine picasaweb-current-setup.exe

7. When asked if I want to run Picasa, I did so, then I shut down picasa AND the media detector (if running)

This will happen after Wine gets through with the install. The media detector ran for just a second and found only a few pictures. I became concerned at this point thinking that I was going to have to start all over getting the new Picasa set up with my pictures. But that problem is taken care of in the following steps.

7. Moved the old picasa installation (as root):
cd /opt/picasa/wine/drive_c/Program Files
mv Picasa2 Picasa22

Why this is also step 7, I don’t know. You enter the lines under step 7 into your console as root. Each line is done separately. The first line gets you into the directory where Picasa is stored and the second line moves the whole install into a different directory (so you don’t lose it). I believe this is the original Picasa install, not the one you just installed.

8. While in the same dir i copied the new installed Picasa 2.5:
cp -R home/USERNAME/.wine/drive_c/Program Files/Picasa2/ .

Just run the line of code at your command prompt. You will need to substitute your username where it says USERNAME. That period on the end is important. Don’t leave that off or it won’t work.

8. Then it just worked… Good luck!
I had big troubles getting the start up logo disappearing, this is why some steps are kind of awkward.

That was exactly my experience. It worked! Except…Picasa showing a closeup

The fallout (however minor)

I was not able to start it from the newly created desktop shortcut. When I did that, it was like I was starting the new version, but with no photos (like after the first step 7 above). But going to the command line (or ALT+F2) and typing in “picasa” (without quotes) started the program just fine.

My only issue now is with getting connected to the Web Albums (the reason I wanted to upgrade to begin with). I am getting the “Failed to connect to server. Please try again later.” error. This can be caused by a few of different issues. I think mine is tied to the fact that I am outside the US and their only Web Albums server is a US one.

Let me write that up as a separate issue in a later post.