Step
1: installing the driver
Get the excellent
Aztech/Packard Bell radio card driver here.
If this server is busy, you can download the driver from my site here.
You have to read the installation instructions for the driver carefully,
they are very clear and well written. You have to follow the "Not-So-Easy
way" though, since the driver must be compiled as a module. When you
don't compile the driver as a module, the radio starts playing when you
boot the kernel - a situation which is not to be preferred. If the server
isn't available, you can read the installation instructions for the "Not-So-Easy
way" here.
Step
2: setting the rights
Now, you have
to make some minor adjustments to your system. Since you compiled the driver
for the card as a module, the program needs to 'modprobe' the driver by
itself. That is, any user on your system must have the 'modprobe' utility
available. Also removing the radio module with 'rmmod' must be possible
for any user. You can find the 'modprobe' and the 'rmmod' utility in the
'/sbin'-directory, which is only reachable by root. So login as root, go
to the directory '/sbin', and copy 'modprobe' and 'rmmod' to the '/bin'
directory. But that's not enough! Do, as root, also a 'chmod 755 modprobe'
and a 'chmod 755 rmod'. Now every user has executable rights as well. Still
this isn't enough. Every user need to have root-rights to execute the 'modprobe'
and 'rmmod' utility. So the last step is setting the uid-bit of the utility's.
Do a 'chmod +s modprobe' and a 'chmod +s rmmod' as well, and you're done
with these files. Now, also make sure all users have read/write access
to the radio device file. Logged in as root, go to the /dev/ directory,
and do a 'chmod 666 radio' (if 'radio' is the name of your radio device
file).
Step
3: compiling the program
Now you have
to download my program. You can download it here.
When you've untarred the file, you'll find four new files: radio.h, dialog.h,
radio.cpp and a compilescript. When you know how to compile the files,
you don't need the compilescript. However, if you decide to use the script,
you have to check the paths. What do you need for a succesfull compilation?
You need the Qt 1.42 library's. You can find the Qt library's here.
These library's are also used by the K Desktop Environment. And you need
the g++ compiler, which is part of the egcs-c++ version 1.0.3a package,
also known as GNU C++.
Step 4: put the application
icon in a nice place
The program comes with an own application
icon. Instead of a default symbol, an application dependent symbol or icon
is being displayed. As I've noticed, this option is not fully implemented
on all window managers. You can download the Qradio icon here.
There are three ways of installing the icon: 1) put the icon in your homedirectory;
but if you think this is ugly then you can 2) put the icon in your home
directory of KDE, e.g. /home/user/.kde/share/icons/mini, but if you do
not have KDE installed, you can 3) use the environment variable called
QRADIO_ICON_PATH in which you have to put the path to the location of the
icon. If you're a BASH user, you'll find a '.bash_profile' in your homedirectory,
where you can put the definition of this environment variable.
Optional
step 5: using the KDE icons
Hang on, this
is the last step! If you have KDE installed, you can use the icons which
were specially designed for QtRadio. You can download them here.
After unpacking, copy the 'qradio.xpm' to '.kde/share/icons' in your homedirectory,
and copy the 'qradio_icon.xpm' to the '.kde/share/icons/mini' directory.
Now, when you install the program, and create a shortcut on your KDE desktop,
you can use these icons for Qt Radio!
Screenshots of Qradio 0.4.1b