Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
By jeremy at 2006-06-29 14:00
Features - Tech Support
Written by Jeremy Garcia
Last month’s “Tech Support” column described how to use gtkpod to connect your iPod to Linux. The column also mentioned podcasting, evidently a new concept for many, given the number of questions that have poured in during the past month. So, this time around, let’s dive into podcasting with the Penguin.
Podcasting is a method of distributing audio or video files automatically. Say that you produce your own Linux radio show and want to feed the show to your listening audience whenever a new episode becomes available. Simply create an RSS feed with an enclosure tag that points to the new episode — that’s called a podcast.
Podcasting, although named after the iPod, is certainly not limited to Apple’s popular player. You can use any MP3 player or your computer to listen to podcasts. You use a podcatcher or aggregator to check the RSS feed on a regular basis and automatically download any new media files.
While there are a variety of podcatchers available for Linux, the one recommended most often is bashpodder. bashpodder is a small and fast script that keeps things extremely simple. Licensed under the GPL, bashpodder was written by Linc and is available from his site. The only requirements for bashpodder are bash, wget, and sed, which are staples of virtually every Linux distribution (and are readily available on Mac OS X, Solaris, AIX, and probably almost every other Unix variant on the planet).
The is no configure or make install process for bashpodder, as it’s only a shell script. Just download the bashpodder script, the XSL style sheet, and a configuration file into the directory that you’d like to run bashpodder from. The instructions are shown below.
bashpodder requires three pieces: the script, an XSL style sheet, and a configuration file
Next, make sure that the bashpodder script is executable. Run chmod 755 bashpodder.shell. Finally, edit the bp.conf file. bp.conf is a list of podcast RSS feeds that you’d like to subscribe to, one per line. The default configuration file comes with some of Linc’s favorites, but you can modify and extend to taste. If you’re interested in hearing about Linux (in addition to reading about it), consider one or more of the Linux-related podcasts."
Now that you have your configuration file loaded with the podcasts you’d like to listen to, run bashpodder. Change to the bashpodder directory and type $./bashpodder.shell
If you get a No such file or directory error the first time you run the script, ignore it, as it’s perfectly normal. The first run of the script may take a while to complete, as bashpodder downloads all of the shows in each feed. During subsequent runs, only new shows are downloaded, hastening the experience.
Once you’ve verified that the bashpodder script runs properly, you can add it to your crontab to get updates in the middle of the night:
02 00 * * * cd /path/to/bashpodder && ./bashpodder.shell
(Change /path/to/bashpodder to the directory where you installed bashpodder.) This crontab entry runs every night at 2 AM and automatically download new podcasts in a new directory (formatted as YYYY-MM-DD).
Because the script is so simple and easy to understand, it’s received a large number of user-contributed patches that either modify or extend its operation. Visit this page to see if any of these modifications suit your needs. Someone has even written a graphical user interface (GUI) front-end for bashpodder using Xdialog. If a bashpodder GUI interests you, head over to this page for the download and step-by-step installation instructions.
The world of podcasting gives you a large catalog of quality and gratis audio programming. bashpodder makes subscribing to this content simple and automated. Using bashpodder is easy; more difficult is sampling the many shows that are available, choosing the ones you prefer, and setting aside enough time to listen to them all. But that’s a good problem to have. Enjoy.