Alexandros Droseltis: WordPress Ogg Podcast form the Command Line
Alexandros Droseltis

The wopcl project

Description

wopcl is a group of shell scripts that makes podcast with ogg files very easy, if you maintain a podcast on an installation of WordPress, that is accessible via FTP. wopcl means WordPress Ogg Podcast from the Command Line.

Dependencies

In order to execute the script you need the following command line programmes:

  • bash
  • sed
  • nail (or mailx)
  • fetchmail
  • lynx
  • wget
  • grep
  • date
  • sox, with its front end rec
  • oggenc
  • basename
  • ftp
  • ecanormalize

Disclaimer

This software is offered without any warranty. Use it at your own risk!

Installation

The installation may be a little long, but it's easy.
  1. Log in into your podcast-WordPress blog and set up the "post via e-mail" values (Settings > Writing). Stay logged in for the next steps.
  2. On your home computer: Set up a fetchmailrc file only for this e-mail account.
  3. On your home computer: Put in you .netrc file the values for your ftp-login with your login name (e.g. LL) and your password (e.g. PP):
    machine ftp.domain.com login LL password PP
  4. On your home computer: Download the source and unpack it.
  5. On your home computer: Rename the file rss_sample.xml in rss.xml (or similar, see last step) and put in on your server, e.g. in the root directory of your WordPress podcast blog.
  6. Go to Play Ogg! FSF and download an "ogg-play" image that you like. Rename it as play_ogg.png and put it somewhere on your blog (but remember where you put it, you will need this for the next step).
  7. On your home computer: Open the file wopcl.rc, change the example entries with yours, save it and place it in $HOME/etc.
  8. Go to the Design > Widgets section of your WordPress control and add the widget RSS. Edit it, and add the URL of the rss.xml file, that you have uploaded in step 5. Save your changes.
  9. If you use the blog only for podcasting, then consider changing
    <a href="<?php bloginfo('rss2_url');?>">Entries (RSS)</a>
    into
    <a href="rss.xml">Entries (RSS)</a>
    in file footer.php in wp-content/themes/the_theme_that_you_use. If not, consider renaming the file rss_sample.xml in rss_podcast.xml or similar.
  10. On your home computer: Add wopcl directory to your $PATH.
That's all!

Usage

Type in a terminal

wopcl
and follow the instructions.

Happy podcasting!

Licence

The software package wopcl is distributed under the GNU general public license, version 3. A copy of the license is included in the package.


© Alexandros Droseltis