You know that NanoBlogger is a small weblog engine written in Bash for the command line. It uses common UNIX tools such as cat, grep, and sed to create static HTML content. Also it is highly configurable and script-able. You can read the NanoBlogger User Manual to learn more about it. But here I will show you my configuration of My Blog.
$mkdir ~/nanoblogger$cd ~/nanoblogger$wget http://www.flyzhy.org/web/backup/softL/blog/nanoblogger-3.3-rc4.tar.gz$wget http://www.flyzhy.org/web/backup/softL/blog/jsfortune.tar.gz
$mkdir ~/bin$tar xvfz nanoblogger-3.3-rc4.tar.gz -C ~/bin$echo $PATH/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin:/usr/games:/sbin:/usr/local/sbin:/usr/sbin:/opt/bin:/usr/share/texmf/bin:/usr/lib/jre1.5.0_04/bin:/usr/local/share/openoffice.org2.0/program:/home/flyzhy/bin/monsterz-0.6.1:/home/flyzhy/bin/nanoblogger-3.3-rc4 [/home/flyzhy = $HOME]
$cd ~/nanoblogger/$nb --blogdir blog --add$cd blog$cp -r ~/bin/nanoblogger-3.3-rc4/moods/ .$tar xvfz ~/nanoblogger/jsfortune.tar.gz -C .
Then modify the templates according to your need, here gives my templates to refer to:$vim blog.conf$cat blog.conf|grep -v '^#'|sed '/^$/d'EDITOR="vim" BROWSER="firefox" MAX_ENTRIES="10" DATE_FORMAT="%a, %Y-%m-%d %T %z" DATE_LOCALE="$LANG" DATE_ARGS="" BLOG_URL="http://www.flyzhy.org/blog" BLOG_CSS="styles/nb_flyzhy.css" BLOG_ICON="images/lover.ico" BLOG_URL_ACTION="" BLOG_CHARSET="utf-8" BLOG_MIMETYPE="application/xhtml+xml" BLOG_TZD="" BLOG_TITLE="FlyZhy's Blog" BLOG_DESCRIPTION="... come on, what are you looking for?" BLOG_AUTHOR="Haiyong Zheng" BLOG_CONTACT='<a href="mailto:flyzhy.org@gmail.com"><img src="http://www.flyzhy.org/style/FlyZhy_Gmail_logo.png" alt="Email FlyZhy" /></a>' NB_INDEX="index.html" PERMALINKS="1" CATEGORY_LINKS="1" BLOG_PREVIEW_CMD="$BROWSER $BLOG_DIR/index.html" BLOG_PUBLISH_CMD="lftp -f .ftprc" MAX_PAGE_ENTRIES="50" ENTRY_ARCHIVES="0" ABSOLUTE_LINKS="1" CATARCH_DATATYPE="NOBODY" PLUGINS_DIR="$NB_BASE_DIR/plugins" BLOG_FEED_LANG="en-us" ENTRY_FORMAT="raw" ARTICLE_FORMAT="raw" CAL_ARGS="" TIDY_HTML_ARGS="-asxhtml -n -utf8" TIDY_XML_ARGS="-xml -n -utf8 -wrap 0" ATOM_CATFEEDS="1" RSS_CATFEEDS="1" RSS2_CATFEEDS="1" MAX_CACHE_ENTRIES="$MAX_ENTRIES" BLOG_CACHEMNG="1" METADATA_CLOSETAG="END-----"$cat .ftprcopen ftp.xxx.xxx.xxx login username password cd blog mput * mirror -R archives mirror -R data mirror -R templates mirror -R jsFortune only first time mirror -R moods only first time bye
$wget -r -p -np -k http://www.flyzhy.org/blog/templates
$cd ~/blog$nb -u [all] && cp index.html index.htm && nb -P
Download: [blog/blog.conf] [blog/.ftprc]
Remember learn more from NanoBlogger User Manual to resolve your problems.