I finally got my RadioShark2 device working with Ubuntu, here are the details.
There are two different RadioShark devices, the original one and the newer RadioShar2. Even though they both have the exact same USB device Id, they have different control sequences. So, you cannot use the control program written for the original model if you have the newer one, you need the code specific for RadioShark2.
You can either compile the code yourself, libhid is the only dependency, or you can download the attached binaries: i386 and amd64. Also, make sure that libhid0 is installed.
There is one more thing you need, to set proper permissions on the audio device created when you connect the device. Just copy the attached 50-radio-shark.rules to /etc/udev/rules.d/.
You are ready to tune in. Connect the device and first try to see if you can control the LEDs:
$ shark2 -red 1
If the worked then everything is fine. Tune in to a radio station:
$ shark2 -fm 105.7
And now you just have to capture the audio stream:
$ arecord -c 2 -f dat -D hw:2,0 | aplay -D hw:0,0
| Attachment | Size |
|---|---|
| radioshark-i386.tar.gz | 9.7 KB |
| radioshark-amd64.tar.gz | 9.7 KB |
| 50-radio-shark.rules | 281 bytes |

Technorati Tags: 

