Benningtons.net

Stuff what I did

Configuring WordPress —

Following on from my post to setup a Raspberry Pi Web Server I next needed to install a Content Management System (CMS).
I chose WordPress because I wanted to get the site setup quickly and, for now, I have found WordPress to be reliable and easy to use.

I won’t provide an installation guide because this one is ideal. (Start from step 4 “Download WordPress”.)

Choosing a Theme:

After trawling through many WordPress themes to find something simple yet interesting, I eventually picked “Terminally” by Andy Warburton. I feel at home with a green screen terminal session and that is what this theme seeks to emulate.

Because I haven’t setup FTP (I’d like to avoid adding too many services and open ports), I couldn’t download new themes from within the WordPress admin facility. So I used another computer to download and uncompress the theme’s zip file and then scp to copy the new terminally folder and its contents to my Pi web server.

scp -r ~/tmp/terminally user@webserver:/var/www/wp-content/themes/

A Style for Code:

Because I may post examples of programs or scripts I tweaked the /var/www/wp-content/themes/terminally/style.css file to insert the following:

#code {
border: solid 1px lime;
font-size:12px;
font-weight: bold;
color: #FFA500;
margin: 10px;
padding:10px;
background: #000000;
}

Giving a nice orange on black display to distinguish any code from my notes. Well, I think it looks nice… After half a lifetime using green screens my first amber monitor was quite exotic!

I can then use HTML to switch the “code” style on/off with

<div id="code">scripts and code goes here</div>

This probably isn’t the ‘correct’ way to format text but it works and so it will do until I learn more.


Categorised as: Computer Stuff

Comments are disabled on this post


Comments are closed.