Wednesday, September 15, 2010

Could Richard Riley have solved my problem?

2010-09-08 Wed 18:55

Today on the orgmode mailing list Richard Riley posted a function that works with the Google command line tools (http://code.google.com/p/googlecl/) to create Blogger entries directly from my favorite emacs mode, orgmode. I have been looking for just such a solution to make blogging more transparent, and lo it is here. This post is the first test of the method, and it works. (Of course, I'm writing this before actually testing it, but since the new function evaluated without error then it must be right! ;-)

To be sure, there were quite a few steps to get to this point. Here was the recipe.

  1. Sign up for a gmail account at http://gmail.google.com
    • While I already had a Google account for Blogger, the username (email address for my local service provider) seemed to be causing problems while authenticating (OAUTH) with googlecl.
  2. Install python-gdata version 1.2.4 or higher
    sudo apt-get install python-gdata
    
  3. Download googlecl Debian package (googlecl_0.9.10-1_all.deb) from http://code.google.com/p/googlecl/downloads/list
  4. Install googlecl
    sudo dpkg --install googlecl_0.9.10-1_all.deb 
    
  5. Call the blogger service to initiate authentication
    google blogger list
    
    • Enter the gmail account (e.g. myname@gmail.com) at the prompt "Please specify user"
    • Grant authorization in a browser
      • The browser may automatically launch with the URL
      • If not, then the link is provided in the terminal
    • Press return in the terminal
      • If there are error messages, then something probably went wrong :-)
      • If a list of blog entries appears then authentication is accomplished
  6. Send this blog post from orgmode

At present org-googlecl is a project at http://github.com/rileyrg/org-googlecl. Thank you Richard.

No comments:

Post a Comment