Zhixian's Tech Blog

2014-11-26

How to install BloGTK on Ubuntu 14.04, Trusty Tahr

BloGTK (http://blogtk.jayreding.com/) is an offline blogging client on Ubuntu that is written in the programming language, Python.
However it only exists in source code form.

What this effectively means is

  1. You have to download the source code
  2. Install the dependencies needed to run BloGTK and
  3. Finally, run BloGTK

This blog post describes how to get and install the dependencies required by BloGTK and how to install BloGTK onto Ubuntu.

Assumptions

This blog post holds the following assumptions:

  1. You know how download files from the Internet.
  2. You know how to extract files from archives into folders.
  3. You know how to use a file manager to navigate to locations in the file system.
  4. You know how to enter commands into a terminal session.

Dependencies

The readme file in BloGTK’s source files indicate the following dependencies:

  1. PyGTK
  2. python-gnome2
  3. python-gnome2-extras
  4. python-gdata
  5. python-webkit
  6. python-feedparser

PyGTK

You should already have this installed.
To check, go to Ubuntu Software Center and search for python-gtk2.
I will be using this version (2.24.0-3).

Ubuntu Software Center_018

Python-Gnome2 (Python bindings for the GNOME desktop environment)

A version of this library is available in Ubuntu Software Center (search term: python-gnome2).
I will be using this version (2.28.1).

Ubuntu Software Center_019

Python-Gnome2-Extras

This library cannot be found in Ubuntu Software Center.
Apparently, the sub-components of the library are segregated out into their respective libraries.
I ignored this library requirement and compensate it with its segregated libraries (see section Compensation for Python-Gnome2-Extras below).

Python-Gdata (Google Data Python client library)

A version of this library is available in Ubuntu Software Center (search term: python-gdata).
I will be using this version (2.0.18).

Ubuntu Software Center_020

Python-Webkit (WebKit/Gtk Python bindings)

A version of this library is available in Ubuntu Software Center (search term: python-webkit).
I will be using this version (1.1.8-3).

Ubuntu Software Center_021

Python-Feedparser (Universal Feed Parser for Python)

A version of this library is available in Ubuntu Software Center (search term: python-feedparser).
I will be using this version (5.1.3-2).

Ubuntu Software Center_022

Compensation for Python-Gnome2-Extras

As mentioned, this library does not exists in Ubuntu Software Center.
However, BloGTK will not run properly since it depends on some components in this library.

By trial-&-error, I found the sub-components that BloGTK requires are really as follows:

  1. python-gtksourceview2
  2. python-gtkspell

Python-GtkSourceView2 (Python bindings for the GtkSourceView widget)

A version of this library is available in Ubuntu Software Center (search term: python-gtksourceview2).
I will be using this version (2.10.1-2).

Ubuntu Software Center_024

Python-GtkSpell (Python bindings for the GtkSpell library)

A version of this library is available in Ubuntu Software Center (search term: python-gtkspell).
I will be using this version (2.25.3-13).

Ubuntu Software Center_025

 

Installing BloGTK

To install BloGTK, start a terminal session and navigate to the folder where you extracted BloGTK’s source files.

zhixian@SARA: ~-Downloads-blogtk-2.0_032

 

Type the following at the command prompt to install BloGTK:

sudo make install

zhixian@SARA: ~-Downloads-blogtk-2.0_033

Assuming everything went well, you should be able to see BloGTK menu item from the Applications menu if you are using Mate.

Workspace 1_037

 

Click on the BlogGTK 2.0 menu item, to run BloGTK.
After clicking it, you should see BloGTK start page.

BloGTK 2.0_031

Running BloGTK without installing

If you are not inclined to install BloGTK into your desktop environment, you can still run it.
After you have finished installing the dependencies, navigate to the folder where you extracted BloGTK’s source code.

Downloads_026

In this folder, there should be a bin folder.

blogtk-2.0_027

Inside the bin folder, there should be one Python script file, blogtk2.

bin_028

Double-click this file.
You may get a dialog like the below, click on the Run button.

bin_030

At this point, you should see BloGTK running.

BloGTK 2.0_031

Advertisements

Blog at WordPress.com.