<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Content Management on Wimpy's World</title><link>https://blog.wimpys.world/tags/content-management/</link><description>Recent content in Content Management on Wimpy's World</description><generator>Hugo -- gohugo.io</generator><language>en-gb</language><managingEditor>martin@wimpress.com (Martin Wimpress)</managingEditor><webMaster>martin@wimpress.com (Martin Wimpress)</webMaster><lastBuildDate>Thu, 05 Nov 2015 11:00:00 +0000</lastBuildDate><atom:link href="https://blog.wimpys.world/tags/content-management/rss.xml" rel="self" type="application/rss+xml"/><item><title>Installing Nikola on Ubuntu</title><link>https://blog.wimpys.world/posts/installing-nikola-on-ubuntu/</link><pubDate>Thu, 05 Nov 2015 11:00:00 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/installing-nikola-on-ubuntu/</guid><description>&lt;p&gt;Nikola is a static site and blog generator written in &lt;a href="http://www.python.org"&gt;Python&lt;/a&gt;
that I&amp;rsquo;ve been using for a good while now. This blog post describes how to install
&lt;a href="http://getnikola.com/"&gt;Nikola&lt;/a&gt; on Ubuntu 14.04 or newer. Now, this may look
like a long winded way to install Nikola, given that .deb package exists, but in
my opinion it is the correct way to install Nikola on Ubuntu.&lt;/p&gt;
&lt;h2 id="installing-python"&gt;Installing Python&lt;/h2&gt;
&lt;p&gt;First you&amp;rsquo;ll need Python.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt-get install cython3 libpython3.4 python3.4 python3.4-dev python3.4-minimal
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now install the Python &amp;ldquo;package&amp;rdquo; management utilities.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt-get install python-setuptools python-virtualenv python-pip virtualenvwrapper
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="the-snakepit"&gt;The Snakepit&lt;/h2&gt;
&lt;p&gt;Create a &amp;ldquo;Snakepit&amp;rdquo; directory for storing all the virtualenvs.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mkdir ~/Snakepit
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="create-a-virtualenv-for-nikola"&gt;Create a virtualenv for Nikola&lt;/h2&gt;
&lt;p&gt;The following will create a new virtualenv called &lt;code&gt;nikola&lt;/code&gt; based on Python 3.4.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;virtualenv -p /usr/bin/python3.4 ~/Snakepit/nikola-773
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="working-on-a-virtualenv"&gt;Working on a virtualenv&lt;/h3&gt;
&lt;p&gt;To activate the virtualenv do the following.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;source&lt;/span&gt; ~/Snakepit/nikola-773/bin/activate
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Your shell prompt will change while a virtualenv is being worked on to indicate
which virtualenv is currently active.&lt;/p&gt;
&lt;p&gt;While working on a virtualenv you can &lt;code&gt;pip&lt;/code&gt; install what you need or manually
install any Python libraries safe in the knowledge you will not adversely
damage any other virtualenvs or the global packages in the process. Very useful
for developing a new branch which may have different library requirements than
the master/head.&lt;/p&gt;
&lt;p&gt;When you are finished working in a virtualenv you can deactivate it by simply
executing &lt;code&gt;deactivate&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="install-nikola-requirements"&gt;Install Nikola requirements&lt;/h2&gt;
&lt;p&gt;Nikola requires some additional packages.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt-get install liblcms2-dev libfreetype6-dev libjpeg8-dev &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;libopenjp2-7-dev libtiff5-dev libwebp-dev libxslt1-dev libxml2-dev &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;libyaml-dev libzmq-dev zlib1g-dev
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Some of the content optimisation filters require additional packages.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt-get install closure-compiler jpegoptim optipng yui-compressor
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Install Tidy 5. (optional)&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt-get -y remove libtidy-0.99-0 tidy
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;wget http://binaries.html-tidy.org/binaries/tidy-5.1.14/tidy-5.1.14-64bit.deb -O /tmp/tidy5.deb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo dpkg -i /tmp/tidy5.deb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo ln -s /usr/bin/tidy /usr/local/bin/tidy5
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;rm /tmp/tidy5.deb
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="what-are-these-requirements-for"&gt;What are these requirements for?&lt;/h3&gt;
&lt;p&gt;The following are required to build &lt;code&gt;pillow&lt;/code&gt;, the Python imaging library.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;liblcms2-dev&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;libfreetype6-dev&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;libjpeg8-dev&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;libopenjp2-7-dev&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;libtiff5-dev&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;libwebp-dev&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;zlib1g-dev&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The following are required to build &lt;code&gt;lxml&lt;/code&gt;, a Python XML library.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;libxml2-dev&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;libxslt1-dev&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The following are required to build &lt;code&gt;python-coveralls&lt;/code&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;libyaml-dev&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The following are required to build &lt;code&gt;pyzmq&lt;/code&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;libzmq-dev&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="install-nikola"&gt;Install Nikola&lt;/h2&gt;
&lt;p&gt;First install Cython, which will ensure some of the packages required by Nikola use
all the available optimisations.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pip install --upgrade Cython
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Install all of Nikola.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pip install --upgrade &lt;span class="s2"&gt;&amp;#34;Nikola[extras,tests]&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="create-a-site"&gt;Create a site&lt;/h2&gt;
&lt;p&gt;After installing Nikola, you should create a site. A site is a collection of
all assets needed to render your website, including configuration, posts,
pages, images, and all other files and customizations.&lt;/p&gt;
&lt;p&gt;To create a site, you need to run:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;nikola init &amp;lt;directory_name&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;A wizard will guide your initial setup The &lt;code&gt;--demo&lt;/code&gt; option can be used to populate
your site with some example content. If you do not want the wizard, use the &lt;code&gt;--quiet&lt;/code&gt;
argument.&lt;/p&gt;
&lt;p&gt;Nikola is now installed and and initial site is setup. &lt;code&gt;nikola help&lt;/code&gt; and the
&lt;a href="http://getnikola.com/handbook.html"&gt;Nikola Handbook&lt;/a&gt; will assist you from here.&lt;/p&gt;</description><summary>How to install Nikola on Ubuntu 14.04 or newer</summary></item><item><title>Installing Nikola on Debian</title><link>https://blog.wimpys.world/posts/installing-nikola-on-debian/</link><pubDate>Mon, 31 Mar 2014 16:19:43 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/installing-nikola-on-debian/</guid><description>&lt;p&gt;Nikola is a static site and blog generator written in &lt;a href="http://www.python.org"&gt;Python&lt;/a&gt;
that I&amp;rsquo;ve been using for a good while now. This blog post describes how to install
&lt;a href="http://getnikola.com/"&gt;Nikola&lt;/a&gt; on Debian. Now, this may look like a long winded way
to install Nikola, given that Debian .deb package exist, but in my opinion it is
the correct way to install Nikola on Debian.&lt;/p&gt;
&lt;h2 id="installing-python"&gt;Installing Python&lt;/h2&gt;
&lt;p&gt;First you&amp;rsquo;ll need Python and &lt;a href="http://www.doughellmann.com/projects/virtualenvwrapper/"&gt;virtualenvwrapper&lt;/a&gt;&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt-get install libpython2.7 python2.7 python2.7-dev python2.7-minimal
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Remove any &lt;code&gt;apt&lt;/code&gt; installed Python packages that we are about to replace. The
versions of these packages in the Debian repositories soon get stale.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt-get purge python-setuptools python-virtualenv python-pip python-profiler
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Install &lt;code&gt;pip&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;wget https://bootstrap.pypa.io/get-pip.py
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo python2.7 get-pip.py
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Use &lt;code&gt;pip&lt;/code&gt; to install &lt;code&gt;virtualenv&lt;/code&gt; and &lt;code&gt;virtualenvwrapper&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo pip install virtualenv --upgrade
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo pip install virtualenvwrapper
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="the-snakepit"&gt;The Snakepit&lt;/h2&gt;
&lt;p&gt;Create a &amp;ldquo;Snakepit&amp;rdquo; directory for storing all the virtualenvs.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mkdir ~/Snakepit
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Add the following your &lt;code&gt;~/.bashrc&lt;/code&gt; to enable &lt;code&gt;virtualenvwrapper&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;WORKON_HOME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;HOME&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;/Snakepit
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; -f /usr/local/bin/virtualenvwrapper.sh &lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;source&lt;/span&gt; /usr/local/bin/virtualenvwrapper.sh
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; -f /usr/bin/virtualenvwrapper.sh &lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;source&lt;/span&gt; /usr/bin/virtualenvwrapper.sh
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;fi&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="create-a-virtualenv-for-nikola"&gt;Create a virtualenv for Nikola&lt;/h2&gt;
&lt;p&gt;Open a new shell to ensure that the &lt;code&gt;virtualenvwrapper&lt;/code&gt; configuration is active.
The following will create a new virtualenv called &lt;code&gt;nikola&lt;/code&gt; based on Python 2.7.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mkvirtualenv -p /usr/bin/python2.7 ~/Snakepit/nikola-640
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="working-on-a-virtualenv"&gt;Working on a virtualenv&lt;/h3&gt;
&lt;p&gt;To activate an existing virtualenv do the following.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;workon nikola-640
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You can switch to another virtualenv at any time, just use &lt;code&gt;workon envname&lt;/code&gt;.
Your shell prompt will change while a virtualenv is being worked on to
indicate which virtualenv is currently active.&lt;/p&gt;
&lt;p&gt;While working on a virtualenv you can &lt;code&gt;pip&lt;/code&gt; install what you need or manually
install any Python libraries safe in the knowledge you will not adversely
damage any other virtualenvs or the global packages in the process. Very
useful for developing a new branch which may have different library requirements
than the master/head.&lt;/p&gt;
&lt;p&gt;When you are finished working in a virtualenv you can deactivate it by
simply executing &lt;code&gt;deactivate&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="install-nikola-requirements"&gt;Install Nikola requirements&lt;/h2&gt;
&lt;p&gt;Nikola is will be powered by Python 2.7 and some additional packages will
be required.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt-get install python2.7-dev libfreetype6-dev libjpeg8-dev libxslt1-dev libxml2-dev libyaml-dev
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="what-are-these-requirements-for"&gt;What are these requirements for?&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;python2.7-dev&lt;/code&gt; provides the header files for Python 2.7 so that Python
modules with C extensions can be built.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The following are required to build &lt;code&gt;pillow&lt;/code&gt;, the Python imaging library.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;libjpeg8-dev&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;libfreetype6-dev&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The following are required to build &lt;code&gt;lxml&lt;/code&gt;, a Python XML library.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;libxml2-dev&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;libxslt1-dev&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The following are required to build &lt;code&gt;python-coveralls&lt;/code&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;libyaml-dev&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="install-nikola"&gt;Install Nikola&lt;/h2&gt;
&lt;p&gt;Download Nikola.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mkdir -p &lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;VIRTUAL_ENV&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;/src
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; &lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;VIRTUAL_ENV&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;/src
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;wget https://github.com/getnikola/nikola/archive/v6.4.0.tar.gz -O nikola-640.tar.gz
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;tar zxvf nikola-640.tar.gz
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; nikola-6.4.0
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Install the Nikola requirements.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pip install -r requirements-full.txt
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;If you intend to use the Nikola planetoid (Planet generator) plugin you&amp;rsquo;ll also
need to following.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pip install peewee feedparser
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Actually install nikola.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;python setup.py install
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Nikola is now installed. &lt;code&gt;nikola help&lt;/code&gt; and the &lt;a href="http://getnikola.com/handbook.html"&gt;Nikola Handbook&lt;/a&gt;
will assist you from here on.&lt;/p&gt;</description><summary>How to install Nikola static site generator on Debian</summary></item><item><title>Installing Nikola on Arch Linux</title><link>https://blog.wimpys.world/posts/installing-nikola-on-arch-linux/</link><pubDate>Fri, 08 Mar 2013 17:13:43 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/installing-nikola-on-arch-linux/</guid><description>&lt;p&gt;I&amp;rsquo;ve decided to migrate one of my servers to &lt;a href="https://www.archlinux.org/"&gt;Arch Linux&lt;/a&gt;.
I&amp;rsquo;m not sure that a rolling release distro really suits servers but I&amp;rsquo;ve enjoyed
using Arch Linux over the last year on my workstations and the only way to
assess it&amp;rsquo;s suitability on a server is to try it. So, I&amp;rsquo;ve decided to migrate my
blog to an Arch Linux server.&lt;/p&gt;
&lt;p&gt;This blog post describes how to install &lt;a href="http://getnikola.com/"&gt;Nikola&lt;/a&gt;
on Arch Linux. Nikola is a static site and blog generator written in
&lt;a href="http://www.python.org"&gt;Python&lt;/a&gt; that I&amp;rsquo;ve been using for a few months.&lt;/p&gt;
&lt;p&gt;First you&amp;rsquo;ll need Python and &lt;a href="http://www.doughellmann.com/projects/virtualenvwrapper/"&gt;virtualenvwrapper&lt;/a&gt;
so read my &lt;a href="https://blog.wimpys.world/posts/python-and-virtualenv-on-arch-linux-and-ubuntu/"&gt;Python and virtualenv on Arch Linux and Ubuntu&lt;/a&gt;
blog post and get yourself equipped.&lt;/p&gt;
&lt;p&gt;Install the Nikola dependencies.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo pacman -S --noconfirm --needed freetype2 libxslt libxml2
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo packer -S --noconfirm --noedit libjpeg6
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Create a &lt;code&gt;virtualenv&lt;/code&gt; for Nikola.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mkvirtualenv -p /usr/bin/python2.7 nikola-640
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You will notice your shell prompt has changed to indicate that the &lt;code&gt;nikola-640&lt;/code&gt;
virtualenv is now active. Install Nikola and the optional libraries I use.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pip install https://github.com/getnikola/nikola/archive/v6.4.0.zip
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;If you intend to use the Nikola planetoid (Planet generator) plugin you&amp;rsquo;ll also
need to following.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pip install peewee feedparser
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Nikola is now installed. &lt;code&gt;nikola help&lt;/code&gt; and the &lt;a href="http://getnikola.com/handbook.html"&gt;Nikola Handbook&lt;/a&gt;
will assist you from here on.&lt;/p&gt;</description><summary>Install Nikola static site generator in a virtualenv on Arch Linux</summary></item><item><title>Dropbox is my Nikola publish button</title><link>https://blog.wimpys.world/posts/dropbox-is-my-nikola-publish-button/</link><pubDate>Wed, 06 Mar 2013 19:01:21 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/dropbox-is-my-nikola-publish-button/</guid><description>&lt;p&gt;When I &lt;a href="https://blog.wimpys.world/posts/migrating-wordpress-to-nikola/"&gt;migrated my site to Nikola&lt;/a&gt;
I wanted to ensure I could manage my blog from the shell, the web, Android
smartphone or Android tablet. I took some inspiration from &lt;a href="http://joehewitt.com"&gt;Joe Hewitt&amp;rsquo;s&lt;/a&gt;
article &lt;a href="http://joehewitt.com/2011/10/03/dropbox-is-my-publish-button"&gt;Dropbox is my publish button&lt;/a&gt;
and created a free Dropbox account which links to a shared folder on my Dropbox
Pro account. I created a simple shell script (invoked via &lt;code&gt;cron&lt;/code&gt; every minute)
that looks for a trigger file, if the trigger file exists Nikola publishes and
deploys the site.&lt;/p&gt;
&lt;p&gt;I am able to edit content from anywhere, on any device, and trigger publishing.
Very happy.&lt;/p&gt;
&lt;p&gt;What follows is how I install Dropbox on headless servers running Arch Linux
and Debian/Ubuntu.&lt;/p&gt;
&lt;h2 id="installing-dropbox-daemon---all-distros"&gt;Installing Dropbox daemon - all distros&lt;/h2&gt;
&lt;p&gt;Download the latest Dropbox stable release for 32-bit or 64-bit.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;wget -O dropbox.tar.gz &lt;span class="s2"&gt;&amp;#34;http://www.dropbox.com/download/?plat=lnx.x86&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;wget -O dropbox.tar.gz &lt;span class="s2"&gt;&amp;#34;http://www.dropbox.com/download/?plat=lnx.x86_64&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Extract the archive and install Dropbox in &lt;code&gt;/opt&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;cd&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;tar -xvzf dropbox.tar.gz
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo mv ~/.dropbox-dist /opt/dropbox
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo find /opt/dropbox/ -type f -exec chmod &lt;span class="m"&gt;644&lt;/span&gt; &lt;span class="o"&gt;{}&lt;/span&gt; &lt;span class="se"&gt;\;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo chmod &lt;span class="m"&gt;755&lt;/span&gt; /opt/dropbox/dropboxd
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo chmod &lt;span class="m"&gt;755&lt;/span&gt; /opt/dropbox/dropbox
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo ln -s /opt/dropbox/dropboxd /usr/local/bin/dropboxd
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Run &lt;code&gt;dropboxd&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;/usr/local/bin/dropboxd
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You should see output like this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;This client is not linked to any account... Please visit https://www.dropbox.com/cli_link?host_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx to link this machine.
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Visit the URL, login with your Dropbox account and link the account. You should see the following.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Client successfully linked, Welcome Web!
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;dropboxd&lt;/code&gt; will now create a &lt;code&gt;~/Dropbox&lt;/code&gt; folder and start synchronizing. Stop &lt;code&gt;dropboxd&lt;/code&gt; with CTRL+C.&lt;/p&gt;
&lt;h3 id="arch-linux---systemd"&gt;Arch Linux - systemd&lt;/h3&gt;
&lt;p&gt;Run Dropbox as daemon with systemd. Create &lt;code&gt;/usr/lib/systemd/system/dropbox@.service&lt;/code&gt;
with the following content.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-systemd" data-lang="systemd"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;[Unit]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;Description&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;Dropbox&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;After&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;local-fs.target network.target&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;[Service]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;Type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;simple&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;ExecStart&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;/usr/local/bin/dropboxd&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;ExecReload&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;/bin/kill -HUP $MAINPID&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;KillMode&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;process&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;Restart&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;always&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;User&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;%I&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;[Install]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="na"&gt;WantedBy&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;multi-user.target&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Enable the daemon for your user, run the following replace&lt;code&gt;&amp;lt;user&amp;gt;&lt;/code&gt; with your
username. This will ensure Dropbox is started when the system boots.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo systemctl &lt;span class="nb"&gt;enable&lt;/span&gt; dropbox@&amp;lt;user&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo systemctl start dropbox@&amp;lt;user&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="debianubuntu---initd"&gt;Debian/Ubuntu - init.d&lt;/h3&gt;
&lt;p&gt;Run Dropbox as daemon with init.d. Create &lt;code&gt;/etc/init.d/dropbox&lt;/code&gt; with the
following content, replacing &lt;code&gt;&amp;lt;user&amp;gt;&lt;/code&gt; with your username.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="cp"&gt;#!/bin/sh
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;### BEGIN INIT INFO&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Provides: dropbox&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Required-Start: $local_fs $remote_fs $network $syslog $named&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Required-Stop: $local_fs $remote_fs $network $syslog $named&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Default-Start: 2 3 4 5&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Default-Stop: 0 1 6&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# X-Interactive: false&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Short-Description: dropbox service&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;### END INIT INFO&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;DROPBOX_USERS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&amp;lt;user&amp;gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;DAEMON&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/opt/dropbox/dropbox
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;start&lt;span class="o"&gt;()&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;Starting dropbox...&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;for&lt;/span&gt; dbuser in &lt;span class="nv"&gt;$DROPBOX_USERS&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nv"&gt;HOMEDIR&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;getent passwd &lt;span class="nv"&gt;$dbuser&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt; cut -d: -f6&lt;span class="sb"&gt;`&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; -x &lt;span class="nv"&gt;$HOMEDIR&lt;/span&gt;/&lt;span class="nv"&gt;$DAEMON&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nv"&gt;HOME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$HOMEDIR&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; start-stop-daemon -b -o -c &lt;span class="nv"&gt;$dbuser&lt;/span&gt; -S -u &lt;span class="nv"&gt;$dbuser&lt;/span&gt; -x &lt;span class="nv"&gt;$HOMEDIR&lt;/span&gt;/&lt;span class="nv"&gt;$DAEMON&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;fi&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;done&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;stop&lt;span class="o"&gt;()&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;Stopping dropbox...&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;for&lt;/span&gt; dbuser in &lt;span class="nv"&gt;$DROPBOX_USERS&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nv"&gt;HOMEDIR&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;getent passwd &lt;span class="nv"&gt;$dbuser&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt; cut -d: -f6&lt;span class="sb"&gt;`&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; -x &lt;span class="nv"&gt;$HOMEDIR&lt;/span&gt;/&lt;span class="nv"&gt;$DAEMON&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; start-stop-daemon -o -c &lt;span class="nv"&gt;$dbuser&lt;/span&gt; -K -u &lt;span class="nv"&gt;$dbuser&lt;/span&gt; -x &lt;span class="nv"&gt;$HOMEDIR&lt;/span&gt;/&lt;span class="nv"&gt;$DAEMON&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;fi&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;done&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;status&lt;span class="o"&gt;()&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;for&lt;/span&gt; dbuser in &lt;span class="nv"&gt;$DROPBOX_USERS&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nv"&gt;dbpid&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;pgrep -u &lt;span class="nv"&gt;$dbuser&lt;/span&gt; dropbox&lt;span class="sb"&gt;`&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; -z &lt;span class="nv"&gt;$dbpid&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;dropboxd for USER &lt;/span&gt;&lt;span class="nv"&gt;$dbuser&lt;/span&gt;&lt;span class="s2"&gt;: not running.&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;else&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;dropboxd for USER &lt;/span&gt;&lt;span class="nv"&gt;$dbuser&lt;/span&gt;&lt;span class="s2"&gt;: running (pid &lt;/span&gt;&lt;span class="nv"&gt;$dbpid&lt;/span&gt;&lt;span class="s2"&gt;)&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;fi&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;done&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$1&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; in
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; start&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; start
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; stop&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; stop
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; restart&lt;span class="p"&gt;|&lt;/span&gt;reload&lt;span class="p"&gt;|&lt;/span&gt;force-reload&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; stop
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; start
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; status&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; status
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; *&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;Usage: /etc/init.d/dropbox {start|stop|reload|force-reload|restart|status}&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;exit&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;esac&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;exit&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Enable the init.d script.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo chmod +x /etc/init.d/dropbox
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo update-rc.d dropbox defaults
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="install-dropbox-client---all-distros"&gt;Install Dropbox client - all distros&lt;/h2&gt;
&lt;p&gt;It is recommended to download the official Dropbox client to configure Dropbox
and get its status.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;wget &lt;span class="s2"&gt;&amp;#34;http://www.dropbox.com/download?dl=packages/dropbox.py&amp;#34;&lt;/span&gt; -O dropbox-cli
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;chmod &lt;span class="m"&gt;755&lt;/span&gt; dropbox-cli
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sed -i s&lt;span class="s1"&gt;&amp;#39;/#!\/usr\/bin\/python/#!\/usr\/bin\/env python2/&amp;#39;&lt;/span&gt; dropbox-cli
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo mv dropbox-cli /usr/local/bin/
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;For usage instructions run &lt;code&gt;dropbox-cli help&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="disable-lan-sync"&gt;Disable LAN Sync&lt;/h2&gt;
&lt;p&gt;Stop Dropbox from sending LAN Sync broadcasts every 30 seconds over port 17500.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;dropbox-cli lansync n
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I&amp;rsquo;m planning to make more use of Dropbox for content management and content
delivery, blog posts to follow.&lt;/p&gt;
&lt;h4 id="references"&gt;References&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.dropboxwiki.com/Text_Based_Linux_Install"&gt;http://www.dropboxwiki.com/Text_Based_Linux_Install&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://aur.archlinux.org/packages/dropbox/"&gt;https://aur.archlinux.org/packages/dropbox/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://wiki.archlinux.org/index.php/Dropbox"&gt;https://wiki.archlinux.org/index.php/Dropbox&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Publishing a Nikola blog via Dropbox on a headless Linux server</summary></item><item><title>Migrating Wordpress to Nikola</title><link>https://blog.wimpys.world/posts/migrating-wordpress-to-nikola/</link><pubDate>Mon, 22 Oct 2012 17:13:43 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/migrating-wordpress-to-nikola/</guid><description>&lt;p&gt;I recently migrated three sites from a self hosted &lt;a href="http://www.wordpress.org"&gt;Wordpress&lt;/a&gt;
installation to &lt;a href="http://getnikola.com/"&gt;Nikola&lt;/a&gt;. Nikola is a static
site and blog generator written in &lt;a href="http://www.python.org"&gt;Python&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Although I use both &lt;a href="http://docutils.sourceforge.net/rst.html"&gt;reStructuredText&lt;/a&gt;
and &lt;a href="http://daringfireball.net/projects/markdown/"&gt;Markdown&lt;/a&gt;, I decided
to migrate my Wordpress content to Markdown.&lt;/p&gt;
&lt;p&gt;This is by no means an exhaustive Wordpress to Nikola migration guide but it
should provide enough clues for anyone else wanting to do the same. The
following was done on Ubuntu 10.04 LTS.&lt;/p&gt;
&lt;p&gt;Export the Wordpress content. &lt;code&gt;Tools -&amp;gt; Export -&amp;gt; All Content&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Use &lt;code&gt;xmllint&lt;/code&gt; to find any errors in the Wordpress XML export and fix them.&lt;/p&gt;
&lt;h2 id="nikola-5"&gt;Nikola 5&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;UPDATE!&lt;/strong&gt; I&amp;rsquo;ve added the instructions for install Nikola 5 since fist
publishing this post.&lt;/p&gt;
&lt;p&gt;Install Nikola 5 in a &lt;code&gt;virtualenv&lt;/code&gt; using
&lt;a href="http://www.doughellmann.com/projects/virtualenvwrapper/"&gt;virtualenvwrapper&lt;/a&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ~
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt-get install libxslt1-dev libxml2-dev libjpeg62-dev python2.6-dev
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;wget http://nikola-generator.googlecode.com/files/nikola-5.zip
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;unzip ~/nikola-5.zip
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mkvirtualenv -i markdown -r ~/nikola-5/requirements.txt --use-distribute nikola-5
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ~/nikola-5
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;python setup.py install
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="nikola-4"&gt;Nikola 4&lt;/h2&gt;
&lt;p&gt;Install Nikola 4.0.3, in a &lt;code&gt;virtualenv&lt;/code&gt; using
&lt;a href="http://www.doughellmann.com/projects/virtualenvwrapper/"&gt;virtualenvwrapper&lt;/a&gt;.
Nikola 4.0.3 spits deprecation warnings with &lt;code&gt;doit&amp;gt;=0.16.1&lt;/code&gt; hence the use of
&lt;code&gt;sed&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ~
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt-get install libxslt1-dev libxml2-dev libjpeg62-dev python2.6-dev
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;wget http://nikola-generator.googlecode.com/files/nikola-4.0.3.zip
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;unzip ~/nikola-4.0.3.zip
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sed -i &lt;span class="s1"&gt;&amp;#39;s/&amp;gt;=0\.16/==0\.16/&amp;#39;&lt;/span&gt; ~/nikola-4.0.3/requirements.txt
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mkvirtualenv -i markdown -r ~/nikola-4.0.3/requirements.txt --use-distribute nikola
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; nikola-4.0.3
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;python setup.py install
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Import the Wordpress content.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;cd&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;nikola import_wordpress wordpress.linted.xml
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Use &lt;a href="https://github.com/aaronsw/html2text"&gt;html2text&lt;/a&gt; to convert the HTML
markup in &lt;code&gt;new_site/posts/*.wp&lt;/code&gt; to &lt;em&gt;real&lt;/em&gt; Markdown.&lt;/p&gt;
&lt;p&gt;Use the &lt;a href="http://wordpress.org/extend/plugins/disqus-comment-system/"&gt;Disqus Wordpress Plug-in&lt;/a&gt;
to migrate Wordpress comments to &lt;a href="http://www.disqus.com"&gt;Disqus&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If required, generate a list of the Wordpress URLs for Nikola redirections.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;grep &lt;span class="s2"&gt;&amp;#34;&amp;lt;link&amp;gt;&amp;#34;&lt;/span&gt; wordpress.linted.xml &lt;span class="p"&gt;|&lt;/span&gt; sed -e &lt;span class="s1"&gt;&amp;#39;s/&amp;lt;link&amp;gt;//g&amp;#39;&lt;/span&gt; -e &lt;span class="s1"&gt;&amp;#39;s/&amp;lt;\/link&amp;gt;//g&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I migrated from several sub-domains to one top-level and the Wordpress URLs
I was using can&amp;rsquo;t be persevered with Nikola. I use a combination of Nikola
redirects and nginx configuration to handle the re-directions.&lt;/p&gt;
&lt;p&gt;At this point the bulk of the migration is done. I tweaked the Nikola &lt;code&gt;conf.py&lt;/code&gt;
to use &lt;code&gt;.md&lt;/code&gt; files instead of &lt;code&gt;.wp&lt;/code&gt;, added some assets to the Nikola &lt;code&gt;files&lt;/code&gt;
directory, configured deployments and updated the theme. I also decided to axe
some obsolete blog posts.&lt;/p&gt;
&lt;p&gt;Migrating to Disqus has been very frustrating and although my comments have
now been migrated the Migrate Threads has yet reflect the new URLs of my posts.
There is no visibility of what, if anything, is happening when you execute the
Disqus URL Mapper. This is not a Nikola issue.&lt;/p&gt;
&lt;p&gt;I am extremely happy with Nikola itself and it has proved itself flexible and
I can now capture my notes in a familiar format and in a familiar environment,
Python. Next steps are to integrate Nikola with Dropbox so I can publish from
any device with ease and add a search facility.&lt;/p&gt;</description><summary>From a dynamic Wordpress site to static Nikola site</summary></item><item><title>Wordpress Search Engine Optimisation</title><link>https://blog.wimpys.world/posts/wordpress-search-engine-optimisation/</link><pubDate>Mon, 26 Jan 2009 15:37:55 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/wordpress-search-engine-optimisation/</guid><description>&lt;p&gt;I manage several websites at work and have therefore learned something about
search engine optimisation (SEO). Our main site at work uses
&lt;a href="http:/www.wordpress.org"&gt;Wordpress&lt;/a&gt; as the content manager, which has good
SEO features by default. Last week we launched a new website and I also
refreshed the other sites, in so doing I found a great article discussing how
to fully SEO your Wordpress site. It is a good read even if you don&amp;rsquo;t use
Wordpress, but for those of you that do, it recommends a suite of plugins that
do all the hard work for you.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://yoast.com/articles/wordpress-seo/"&gt;Wordpress SEO - The definitive guide to high rankings for your Blog&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Wordpress plugins that help automate SEO</summary></item><item><title>Hacking WordTwit into WordDent</title><link>https://blog.wimpys.world/posts/hacking-wordtwit-into-worddent/</link><pubDate>Fri, 23 Jan 2009 18:24:20 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/hacking-wordtwit-into-worddent/</guid><description>&lt;p&gt;I have quickly forked &lt;a href="https://wordpress.org/plugins/wordtwit/"&gt;WordTwit&lt;/a&gt; into
WordDent. WordDent is a Wordpress plugin that utilizes the Twitter API to
automatically push a published post to your &lt;a href="http://identi.ca"&gt;Identi.ca&lt;/a&gt;
account as a dent. It allows all your Identi.ca contacts to keep up to date
with your blog postings. I&amp;rsquo;m still just testing that WordDent works
correctly. I&amp;rsquo;ll find out if the nice people over at
&lt;a href="http://www.bravenewcode.com"&gt;Brave New Code&lt;/a&gt; will agree to me releasing
WordDent since I can&amp;rsquo;t fine any license details for WordTwit.&lt;/p&gt;</description><summary>Automatically post Wordpress blog notification to Identi.ca</summary></item><item><title>Search engine verification and sitemaps</title><link>https://blog.wimpys.world/posts/search-engine-verification-and-sitemaps/</link><pubDate>Sun, 18 Jan 2009 23:19:12 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/search-engine-verification-and-sitemaps/</guid><description>&lt;p&gt;I finally got around to verifying my websites with the Google, Yahoo! and MSN
Live search engines. I&amp;rsquo;ve also setup sitemaps for my websites too. I&amp;rsquo;ve done
this for the websites at work but couldn&amp;rsquo;t be arsed to do it for my own sites
until today.&lt;/p&gt;
&lt;p&gt;To find out why you want sitemap enable your sites read the
&lt;a href="http://en.wikipedia.org/wiki/Site_map"&gt;Sitemap&lt;/a&gt; page at Wikipedia. In order to
register your sitemaps with the major search engines you&amp;rsquo;ll need to setup
accounts for &lt;a href="https://www.google.com/webmasters/tools/"&gt;Google Webmaster Tools&lt;/a&gt;,
&lt;a href="http://webmaster.live.com/webmaster/"&gt;MSN Live Webmaster Tools&lt;/a&gt; and
&lt;a href="https://siteexplorer.search.yahoo.com/"&gt;Yahoo! Site Explorer&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You&amp;rsquo;ll then need to &lt;em&gt;verify&lt;/em&gt; your site(s) with each of the search engines, they
provide details about how to do this but it typically requires that you put a
meta tag in your page header. Once you&amp;rsquo;ve verified your site(s) it&amp;rsquo;s time to
create a &lt;code&gt;sitemap.xml&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;If you have a Wordpress blog adding sitemap support is easy, just use the
&lt;a href="http://wordpress.org/extend/plugins/google-sitemap-generator/"&gt;Google XML Sitemaps&lt;/a&gt;
plugin. This re-builds &lt;code&gt;sitemap.xml&lt;/code&gt; when you update posts, pages, comments etc.
It also notifies all the relevant search engines that content has changed on
your site. Very useful indeed. If you need to create your sitemap by hand, or
better yet script its creation, then read &lt;a href="http://www.sitemaps.org/"&gt;sitemaps.org&lt;/a&gt;
for the protocol spec.&lt;/p&gt;</description><summary>Verify websites with search engines and submit sitemaps for indexing</summary></item><item><title>Blog post notifications to Twitter</title><link>https://blog.wimpys.world/posts/blog-post-notifications-to-twitter/</link><pubDate>Sat, 17 Jan 2009 10:45:12 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/blog-post-notifications-to-twitter/</guid><description>&lt;p&gt;I&amp;rsquo;ve just installed &lt;a href="http://www.bravenewcode.com/wordtwit/"&gt;WordTwit&lt;/a&gt; on my
blog. WordTwit keeps track of when you publish new posts, and automatically
informs all of your followers by pushing out a Twitter tweet. All links are
automatically converted to tiny URLs.&lt;/p&gt;</description><summary>Send new Wordpress blog notifications to Twitter</summary></item><item><title>BloGTK, a weblog client for Linux</title><link>https://blog.wimpys.world/posts/blogtk-a-weblog-client-for-linux/</link><pubDate>Fri, 11 Jan 2008 13:44:07 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/blogtk-a-weblog-client-for-linux/</guid><description>&lt;p&gt;I have been meaning to setup a weblog client for a while now. I have tested a
couple of blog clients and have settled on &lt;a href="http://blogtk.sourceforge.net/"&gt;BloGTK&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;It has a simple user interface but comprehensive features, although I did need
to define a few Custom Tags before the editor supported all the formatting
options I wanted. Setting up BloGTK is very simple for Ubuntu and Debain users
requiring an &lt;code&gt;aptitude install blogtk&lt;/code&gt; to get it installed and the following
settings will connect to a Wordpress blog.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Server URL: &lt;code&gt;http://blog.example.org/xmlrpc.php&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Account: &lt;em&gt;Your Username&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Password: &lt;em&gt;Your Password&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Blogging System: &lt;em&gt;Moveable Type&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Now I can blog directly from my desktop, I am hoping it will encourage me to
post more often.&lt;/p&gt;</description><summary>Graphical blogging client for GNOME</summary></item><item><title>Flexion.Org is re-activated!</title><link>https://blog.wimpys.world/posts/flexion.org-is-re-activated/</link><pubDate>Sat, 22 Sep 2007 11:22:43 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/flexion.org-is-re-activated/</guid><description>&lt;p&gt;I have finally got around to re-activating this website after many months of
neglect. The first thing to do was move away from &lt;a href="http://jaws-project.com/"&gt;Jaws&lt;/a&gt;.
Sadly, my Jaws installation is broken in a way that newer Jaws releases refuse
to upgrade it.&lt;/p&gt;
&lt;p&gt;I did some research and decided to migrate to &lt;a href="http://www.wordpress.org"&gt;Wordpress&lt;/a&gt;
since it caters for all the essentials I require either in the core
functionality or via plugins. Plus I can integrate with some other stuff I want
to use.&lt;/p&gt;
&lt;p&gt;The migration to Wordpress was made all the easier thanks to the excellent &lt;a href="http://trac.wordpress.org/ticket/4184"&gt;Jaws import plugin&lt;/a&gt;
I found on the Wordpress trac. However, I decided not to use the Textile plugin
to preserve the Jaws formatted text. Instead I chose to manually clean up some
of the old entries so I could stick with the TinyMCE editor long term.&lt;/p&gt;
&lt;p&gt;I am happy with Wordpress thus far and look forward to getting some plugins
going and picking up a new theme over the coming days and weeks.&lt;/p&gt;</description><summary>Jaws dropped in a move to Wordpress</summary></item><item><title>R3-born 0.1.1 is released!</title><link>https://blog.wimpys.world/posts/r3-born-0.1.1-is-released/</link><pubDate>Fri, 09 Mar 2007 21:59:45 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/r3-born-0.1.1-is-released/</guid><description>&lt;p&gt;&lt;a href="http://www.sourceforge.net/projects/r3-born/"&gt;R3-born&lt;/a&gt; 0.1.1 is released :-)&lt;/p&gt;
&lt;h2 id="r3-born-core-change-log"&gt;R3-born Core Change Log&lt;/h2&gt;
&lt;p&gt;Here are the main changes for this release. &lt;em&gt;v0.1.1 : 9th March 2007&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Added Akismet anti-spam API&lt;/li&gt;
&lt;li&gt;Added a version checker for the Core and also for Blocks and Modules.&lt;/li&gt;
&lt;li&gt;Added search bot (Google, MSN, Yahoo!, etc) detection.&lt;/li&gt;
&lt;li&gt;Added logging (in Combined Log Format) to the R3-born Intrusion Prevention System.&lt;/li&gt;
&lt;li&gt;Enhanced the Module API so it now supports safe updating and custom CSS for blocks and modules.&lt;/li&gt;
&lt;li&gt;Enhanced the Layout Manager&lt;/li&gt;
&lt;li&gt;Enhanced the Registration and Profile pages by separating them.&lt;/li&gt;
&lt;li&gt;Enhanced the Template engine by back porting some features from phpBB 3.0.x&lt;/li&gt;
&lt;li&gt;Optimised and fixed the Search API&lt;/li&gt;
&lt;li&gt;Optimised and simplified Coloured Groups.&lt;/li&gt;
&lt;li&gt;Improved the Groups Management ACP&lt;/li&gt;
&lt;li&gt;Improved the Styles Management ACP&lt;/li&gt;
&lt;li&gt;Fixed various bugs in the core.&lt;/li&gt;
&lt;li&gt;Significant feature enhancements, bug fixes and optimisations added to the Menu and Who Is Online blocks.&lt;/li&gt;
&lt;li&gt;Significant feature enhancements, bug fixes and optimisations added to the Comments, Downloads, Forum, Pages,&lt;/li&gt;
&lt;li&gt;Private Messages, Weblogs and View Online modules.&lt;/li&gt;
&lt;li&gt;New modules : bot_list, cookie, error, google, referrers and sql_backup&lt;/li&gt;
&lt;li&gt;New blocks : recent_blogs, recent_comments, recent_pages, recent_topics, search, socmarks and visit_counter.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;R3-born 0.1.1 has fulfilled its first major objective, which is to be functional
enough to run a website.&lt;/p&gt;</description><summary>R3-born is good enough to run a website</summary></item><item><title>R3-born 0.1.0 is released!</title><link>https://blog.wimpys.world/posts/r3-born-0.1.0-is-released/</link><pubDate>Tue, 30 Jan 2007 11:52:55 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/r3-born-0.1.0-is-released/</guid><description>&lt;p&gt;Finally, R3-born 0.1.0 is released. &lt;a href="http://www.sourceforge.net/projects/r3-born/"&gt;R3-born&lt;/a&gt;
is a content management system for modest websites which I hope will be ideal for
individuals running their own sites or small community websites.&lt;/p&gt;
&lt;p&gt;Due to my accident I have not been able to address all of the bugs which have
been reported recently and the downloads are only available as bzip2 tarballs
right now. Please report any bugs you might encounter as 0.1.0 has really only
been tested on Debian Sarge (stable) running PHP4 and MSQL 4. Feedback from
other configurations will be useful and all reported bugs will be investigated.&lt;/p&gt;</description><summary>After 10 months work R3-born 0.1.0 is ready</summary></item><item><title>Announcing R3-born</title><link>https://blog.wimpys.world/posts/announcing-r3-born/</link><pubDate>Fri, 08 Sep 2006 17:48:47 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/announcing-r3-born/</guid><description>&lt;p&gt;I suppose it is a bit silly to announce this just before I go on holiday but
what the heck. &lt;a href="http://www.sourceforge.net/projects/r3-born/"&gt;R3-born&lt;/a&gt; is
intended to be a simple and modular content management system for modest websites.
My hope is that it will be ideal for individuals running their own sites or for
small community websites. R3-born is coded in PHP (4.2.0 or better required)
and requires an SQL database, currently MySQL 3.x, 4.x and 5.x, Postgres 7.x
or better and MS-SQL 7.x or better are supported.&lt;/p&gt;
&lt;h2 id="current-status"&gt;Current Status&lt;/h2&gt;
&lt;p&gt;Right now, R3-born is considered pre-alpha and not suitable for a production
website but is ready for testers to start feeding back on bugs, feature requests
and in the near future code changes. Development has been fairly rapid so far. I
started the project in April 2006 and I hope to release a beta version of
R3-born later in 2006.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.sourceforge.net/projects/r3-born/"&gt;http://www.sourceforge.net/projects/r3-born/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Minerva is r3-born</summary></item><item><title>Comments off, Overdue update and R3-born</title><link>https://blog.wimpys.world/posts/comments-off-overdue-update-and-r3-born/</link><pubDate>Tue, 04 Jul 2006 13:14:55 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/comments-off-overdue-update-and-r3-born/</guid><description>&lt;p&gt;First of all, I have disabled comments on my blog. &lt;a href="http://jaws-project.com/"&gt;Jaws&lt;/a&gt;
has spam protection and captachs but both implementations suck. This site doesn&amp;rsquo;t
generate much feedback so disabling comments altogether is not really a problem.
I haven&amp;rsquo;t updated the site recently and here is why. The 0.6.x release of Jaws
is buggy and I still haven&amp;rsquo;t found anything else which fully meets my needs for
managing my own web content.&lt;/p&gt;
&lt;p&gt;Therefore for the last couple of months I have been working on an open source
CMS of my own called R3-born. More details to follow about that soon, but you
can find the project over at Sourceforge, don&amp;rsquo;t expect anything to work
(although it does for the most part) it is pre-alpha and unreleased. SVN is the
only way to snag the source.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.sourceforge.net/projects/r3-born/"&gt;R3-born&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Jaws spam counter measures suck</summary></item><item><title>Project Minerva is coming home</title><link>https://blog.wimpys.world/posts/project-minerva-is-coming-home/</link><pubDate>Wed, 26 Apr 2006 17:42:11 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/project-minerva-is-coming-home/</guid><description>&lt;p&gt;Despite a generous offer from a Minerva enthusiast a year or so ago to freely
host the Project Minerva sites, all the Project Minerva hosting is coming back
to where it started and rightly belongs. Yes, right here with me. It just
goes to show you really don&amp;rsquo;t get anything for free. The developers have had
several outages with the server which was provided by SpiderTech Hosting, so
we are bringing it back here where we can look after our interests directly.&lt;/p&gt;
&lt;p&gt;Minerva users might be wondering if the fact I am fully hosting Project
Minerva again means I am going to be developing for the project again. Well,
we will just have to see but I did inform Chris of a little project I kicked
off last week which may (or may not) lead to something.&lt;/p&gt;</description><summary>It&amp;rsquo;s coming home. Minerva is coming home.</summary></item><item><title>Leaving Minerva</title><link>https://blog.wimpys.world/posts/leaving-minerva/</link><pubDate>Thu, 01 Sep 2005 09:47:16 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/leaving-minerva/</guid><description>&lt;p&gt;Yesterday was a sad day. I finally notified the core &lt;a href="http://sourceforge.net/projects/minerva/"&gt;Minerva&lt;/a&gt;
developers that I am leaving the project. Given that I started the project a few
years back it was not a decision I made lightly.&lt;/p&gt;
&lt;p&gt;I have a couple of reasons for leaving the project, the main one being that I
just do not have the time available to effectively lead or contribute to the
project. All open source projects require good leadership and I haven&amp;rsquo;t been able
to provide that for most of 2005. It is with the best interests of Minerva in
mind that I decided to leave.&lt;/p&gt;
&lt;p&gt;However, Minerva is in very good hands and is under active development,
with Dave and Chris leading the effort. I wish all the Minerva developers and
users every success with the upcoming release of R4, it is a marvelous
achievement and I am sure will prove to be very successful. I will be
keeping an eye on R4 development, and if time permits, I may contribute some
blocks and modules in the future. Until then, good luck and make me proud!&lt;/p&gt;</description><summary>Standing down from the Minerva project</summary></item><item><title>Introducing Stanley, a new theme for Jaws</title><link>https://blog.wimpys.world/posts/introducing-stanley-a-new-theme-for-jaws/</link><pubDate>Fri, 12 Aug 2005 09:29:53 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/introducing-stanley-a-new-theme-for-jaws/</guid><description>&lt;p&gt;I&amp;rsquo;ve finished hacking together a new theme for &lt;a href="http://jaws-project.com/"&gt;Jaws&lt;/a&gt;
0.5.x, which I have named Stanley, and is now the default theme on this site.
I&amp;rsquo;ve still got to fix a couple of bugs and make sure that it is compatible with
browsers other than Firefox. I wanted a theme which was crisp and clean, but
also fully compatible with Jaws, so I decided to blend some of my favourite
themes together. Stanley is inspired by the Kubrick theme which is popular among
bloggers and although the Kubrick graphics have been borrowed the style sheet
and layout are derived from the &lt;code&gt;jaws&lt;/code&gt;, &lt;code&gt;orange-grey&lt;/code&gt; and &lt;code&gt;simple-green&lt;/code&gt;
themes which are bundled with Jaws. As a result Stanley is properly Jaws
compatible, in that left and right layouts work, all the CSS elements are
supported and CSS tweaks are used throughout to improve the visual appeal.&lt;/p&gt;</description><summary>A new theme for Jaws called Stanley</summary></item><item><title>Basic site layout complete</title><link>https://blog.wimpys.world/posts/basic-site-layout-complete/</link><pubDate>Mon, 08 Aug 2005 09:27:44 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/basic-site-layout-complete/</guid><description>&lt;p&gt;After fiddling around with the &lt;a href="http://jaws-project.com/"&gt;Jaws&lt;/a&gt; setup for a while
I have finally settled on something which I&amp;rsquo;m happy with. Once I found the
&lt;code&gt;default_page&lt;/code&gt; setting in the registry I was very happy. I&amp;rsquo;ll enable more
gadgets (plugins) as I find a use for them, but my next task will probably be
creating my own theme or at least combining ideas from several existing themes.&lt;/p&gt;</description><summary>Website look and feel with Jaws</summary></item><item><title>Grrr, a site with teeth</title><link>https://blog.wimpys.world/posts/grrr-a-site-with-teeth/</link><pubDate>Fri, 05 Aug 2005 09:10:10 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/grrr-a-site-with-teeth/</guid><description>&lt;p&gt;Well, I have decided to get Flexion.Org on-line again and picked &lt;a href="http://jaws-project.com/"&gt;Jaws&lt;/a&gt;
as the tool for the job. This might seem an odd choice considering I have been
working on Minerva for the last 3 years, but there you are, life is strange.&lt;/p&gt;</description><summary>Rebooting Flexion.Org using Jaws</summary></item></channel></rss>