Have you ever wanted to setup a blog but you didn’t need something with a large database? Maybe you live on the linux command line like myself. Maybe you just want something you can update quickly and effectively from the command line. This can be done in several ways, but for this tutorial we’re going to be working with blazeblogger. Along with blazeblogger we’ll also be using the latest stable version of Debian, which at the time of writing is Debian 7.0 (Wheezy).

So let’s kick this off. Start off by installing your favorite webserver. Currently I’m running this on a dual core Atom box connected to the net, and using apache2 as my server of choice. I do have plans on moving this setup to a Raspberry Pi. At which time I’ll most likely move to something like lighttpd.

blazebloggerinstall

Next we’ll want to download the package which as of writing is till in the Debian repos. To do this we’ll just use sudo apt-get install blazeblogger. This should install blazeblogger. Now let’s move to the root of our web directory. In my case it’s /var/www. Once we’re in our public web directory we’ll execute the command sudo blaze-init. This will create a .blaze folder in our /var/www directory. Now we’ll execute the sudo blaze-config command and setup some basic configuration. This will populate the root directory with a basic index page to get started.

Now we can write our first blog post. All we need to do is execute the command sudo blaze-add. You’ll then be prompted to edit a file in whichever editor you choose. Simply save the text file and execute the command sudo blaze-make. This will actually generate the HTML for your post. If you need additional help you can check out the manual located here .

basicblogposttemplate

If you want to see the which blog posts are available execute sudo blaze-list command. If you’d like to edit a blog post just run sudo blaze-edit number-associated-with-the-post-you-wish-to-edit. To remove a post it works pretty much the same way as editing one, just run sudo blaze-remove the number associated with the post you wish to remove. Finally, after we’ve finished adding, editing, and removing posts, we’ll want to run sudo blaze-make. This will build our HTML and publish, remove, or update our post.

Now that we’ve got a basic blog setup, let’s make it our own by customizing the theme. To do this simply look into the folder we install blazeblogger into. In my case it’s /var/www/.blaze/ directory. Within this directory we’ll have a few files, and a few different directories. For this portion however, we’re just concerned about the /var/www/.blaze/theme and /var/www/.blaze/style directories. The first thing to do now is just make a backup copy of your default files. So for example you would execute sudo cp /var/www/.blaze/theme/default.html /var/www/.blaze/theme/default.bak, and again you would do this with the stylesheet sudo cp /var/www/.blaze/style/default.css /var/www/.blaze/style/default.bak.

defaulthtml

Now that we’ve got our backups out of the way we can start to modify our default HTML and default CSS theme. To do this you can either open the files with your favorite text editor or with a simple terminal based editor like vim, nano, pico, etc. Once we’ve finished modifying our them just execute the command sudo blaze-make, remember to do this from within the root directory. In my case it’s /var/www.

Well, I guess that’s pretty much it. If you have any questions please leave them in the comments. Also if you do happen to use this article, I’d love to see what you guys create. So please submit those links in the comments below also. Thanks for reading this garbage.

CHZ OUT! (drops microphone)

p5rn7vb

One Response

Leave a Reply