|
Sat, 27 Sep 2003Bloxsom and console-based diary combined. Here's how you do it. After downloading Bloxsom from Bloxsom.com, I edited the following lines so that it would make sense for the Athena environment. First I wrote a wrapper script that adds in the password option. On Athena, there is no non-command line context for invoking bloxsom, so that option should be unnecessary. More on the wrapper later. In the script itself, some lines need to be modified:
# Where are this blog's entries kept?
$datadir = "$ENV{HOME}/www/bloxsom";
# What's my preferred base URL for this blog (leave blank for automatic)?
$url = "http://www.mit.edu/~$ENV{USER}";
[...]
# Where are my plugins kept?
# Users for the moment will have to mkdir this dir and
# put symlinks to plugins they want, which will
# point to plugins in /mit/outland/share/bloxom/plugins
$plugin_dir = "$ENV{HOME}/www/bloxsom/plugins";
[..]
# Where should my modules keep their state information?
$plugin_state_dir = "$plugin_dir/state";
This setup allows me to install the saner bloxsom
plugins in one place in AFS and then let users add symlinks
(or their own plugins in ~/www/bloxsom/plugins.
Then comes the
wrapper script. Without options it just
runs bloxsom so as to generate the HTML. With a
"-p foo" option, it sees if the outland folder has a plugin
named foo and puts a symbolic link to it if there is.
Next comes combining this tool with the console based diary. I already mentioned that in a previous entry. It involves taking the diary script, adding a $SUFFIX variable all over the place, changing all the ls command lines to use it properly, and assigning the variable the value ".txt." Presto, a non-HTTP web diary. And here is a second test of the combination. Does it work if I feed it after midnight? Apparently not. For reasons I am not grokking, it insists on touching the last entry prior to the current one. Very odd, that. I think it's the task-list promotion part of the script that does that. I'll need to disable it. And it's time to for a little Google fudging, as requested by Dan Gillmor. posted at: 20:45 | path: | permanent link to this entry Trying too damn hard sometimes.... |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||