2011-09-25

Blogging from Linux without a Client

There is no usable blogging client that works across Linux distributions, leaving me to use the Vim editor and the GoogleCL command line interface.

I have been using the Blogger.com web interface to write posts for several years now and I have found it usable, but limiting. The interface works OK, and it has three different views showing the html code, the html as it might be seen on the web and a hybrid composing view. I switched between the html and web views and found it worked reasonably well as long as the internet connection remained.

But since most of free time I have available to write posts involved a note-book computer withou internet I started to look for an offline blogging client. All it had to do was let me edit the text and upload it to the Blogger web-site along with a title. I am not big on images or embedded videos, so I didn't think I was asking much.

Gnome-Blogger
First up was Gnome Blog. Presented as a bare bones client, it was just that. It functioned well though for simple blog entries, with the ability to format text and include images. But it was unable to access Blogger with the Atom 2.0 interface, so it dropped to Atom 1.0. This was a deal breaker, as Atom 1.0 does not seem to support post titles. So, out with Gnome Blog, and 'aptitude install drivel'.

Drivel
Drivel looks good and has more features than Gnome Blog, but was more buggy and less stable. And it, too, could not supply post titles to Blogger, or retrieve posts to edit. It seems to work well with other blog hosting sites, so it seems to be a problem with Blogger, but I am not keen on transferring this blog to another host just yet, so onwards.
Blogilo
Blogilo (previously called Bilbo, but it attracted legal problems) was the most promising, being rated highly in a Linux Format magazine review. It was the most feature complete and polished, with all the bells and whistles you could want.

But it turned out to be a heavily integrated with the KDE desktop. This meant that, since I wasn't running KDE, it pulled in a number of KDE dependencies. This is not normally a problem, since I had plenty of RAM and the extra libraries could be loaded without slowing the system. It required the use of KDEwallet, which is an encryption keyring. I had no need for another keyring, so I disabled that, but then I discovered that KDE had started taking over my system! The fonts, window decorations and icons, file browser and a bunch of defaults were all KDE'd.

I started to de-KDEify one problem at a time, but ended by removing the whole KDE Desktop invading hoard. All the problems went at once, along with Blogilo.

What's Left?

The most reliable way of uploading pre-written posts to Blogger turned out to be the command line GoogleCL. This is a set of tools for the Google Data API, which includes the Google run Blogger.com, so there is no Atom 1.0 / 2.0 shenanigans. I just type in a terminal:

google blogger post --tags "taglist" --title "title" blogpost.html

GoogleCL is aimed, really, at developers who want to integrate Google services with their software, but it is easy to use at the command line. And, seeing that none of the clients I tried correctly handled uploading or paragraph html tags or titles reliably, GoogleCL is a good stopgap until something better turns up. I am using Vim as an editor, so an added bonus, if you can call it that, is that I am forced to learn the simpler HTML tags.

One Thing Well

The Linux philosophy for software is for each program to do one thing well and to link them together to do more complex tasks. You would think that a dedicated blogging client would be able to do that one thing well, but you'd be wrong. But Vim will always be a good HTML editor and GoogleCL will always be able to upload to Blogger. Who needs a blogging client anyway?

No comments: