Zhixian's Tech Blog

2014-11-26

How to add WordPress to BloGTK

Filed under: computing — Tags: , , , , , — Zhixian @ 22:00:11 pm

This blog post describes how you would configure BloGTK to add your WordPress blog.

After you start BloGTK, click on the Settings button on the top toolbar.
As Edit Settings popup dialog will appear.

BloGTK 2.0_038

In the Edit Settings dialog popup,

  1. Enter an account name
  2. Enter the url of your WordPress blog
  3. Click on the Autodetect Settings button.

BloGTK - Edit Settings_039

After the dialog finished detecting settings, you should see that the Endpoint and Blogging Tool should be updated.

Enter the username and password to your WordPress blog into the Username and Password textboxes respectively.
Then click on the Accept Changes button to close the dialog.

BloGTK - Edit Settings_040

BloGTK - Edit Settings_041

At the BloGTK main screen, click on the Refresh button to fetch your latest blog posts.

BloGTK 2.0_042

Advertisements

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

2012-06-23

Precise Pangolin missing utilities

Filed under: computing — Tags: , , , , , , , , — Zhixian @ 08:51:06 am

This is a continuation of of my Precise Pangolin (Precise for short) installation series.

The default installation of Precise comes with a variety of software but it does not have everything that I need.
Here are some of other “utility” software that I installed to supplement it.
The following list of applications can be found in the Ubuntu Software Center.

  1. Guake Terminal (search term: Guake Terminal)
    This nifty utility places a copy of your terminal in a dropdown window much like the console in the game Quake.
    This is useful when you need to do something quick in a terminal – just press F12 to call up the terminal, enter your commands and then press F12 again to keep the terminal until the next time you need.
    image
  2. Shutter (search term: Shutter)
    A utility for taking screenshots.
    This is probably the best screenshot-taking utility on Linux.

    Sidenote: If you are using this application within VirtualBox, you need to disable the 3D Acceleration and 2D Video Acceleration options. If these are enabled, Shutter will not work correctly and you would only be able to take blank screen captures.
    image

  3. Synaptic Package Manager (search term: Synaptic Package Manager)

    Utility for managing software packages.
    The Ubuntu Software Center might be great for exploring applications and providing a great interface for users to install and manage software. However, it is must be noted that the applications listed there are those registered with Canonical (Ubuntu’s company).
    This means that applications not registered with them cannot be install that way. Hence, the need for Synaptic.
    image

The following list of applications are “missing” utilities not found in Ubuntu Software Center that I think are useful:

  1. BlogTK (Website http://blogtk.jayreding.com/)
    This is the blogging client I am most comfortable with most on Linux.
    Unfortunately, it is not as updated. The best stable 2.0 build is for Ubuntu Lucid Lynx (Ubuntu 10.04).
    As a result, it may be a bit quirky (especially during initial setup) but it generally works well.
    image

Blog at WordPress.com.