<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rdf:RDF [
<!ENTITY % HTMLlat1 PUBLIC
 "-//W3C//ENTITIES Latin 1 for XHTML//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">
]>
<rdf:RDF
 xmlns="http://purl.org/rss/1.0/"
 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 xmlns:dc="http://purl.org/dc/elements/1.1/"
 xmlns:content="http://purl.org/rss/1.0/modules/content/"
 xmlns:admin="http://webns.net/mvcb/"
>
<channel rdf:about="http://www.sharons.org.uk/taste">
<title>A taste of Linux.</title>
<link>http://www.sharons.org.uk/taste</link>
<description>My thoughts on linux and other random thoughts.</description>
<dc:language>en-us</dc:language>
<dc:creator>Sharon</dc:creator>
<dc:date>2007-06-03T13:27:39+01:00</dc:date>
<admin:generatorAgent rdf:resource="http://nanoblogger.sourceforge.net" />
<items>
<rdf:Seq>
<rdf:li rdf:resource="http://www.sharons.org.uk/taste/archives/2007/06/index.html#e2007-06-03T13_27_32.txt" />
<rdf:li rdf:resource="http://www.sharons.org.uk/taste/archives/2007/03/index.html#e2007-03-17T22_19_38.txt" />
<rdf:li rdf:resource="http://www.sharons.org.uk/taste/archives/2007/03/index.html#e2007-03-14T20_12_35.txt" />
<rdf:li rdf:resource="http://www.sharons.org.uk/taste/archives/2007/01/index.html#e2007-01-11T13_40_37.txt" />
<rdf:li rdf:resource="http://www.sharons.org.uk/taste/archives/2006/11/index.html#e2006-11-08T19_06_29.txt" />
<rdf:li rdf:resource="http://www.sharons.org.uk/taste/archives/2006/10/index.html#e2006-10-04T19_53_31.txt" />
<rdf:li rdf:resource="http://www.sharons.org.uk/taste/archives/2006/09/index.html#e2006-09-16T16_10_13.txt" />
<rdf:li rdf:resource="http://www.sharons.org.uk/taste/archives/2006/08/index.html#e2006-08-24T20_47_31.txt" />
<rdf:li rdf:resource="http://www.sharons.org.uk/taste/archives/2006/08/index.html#e2006-08-18T14_14_02.txt" />
<rdf:li rdf:resource="http://www.sharons.org.uk/taste/archives/2006/07/index.html#e2006-07-30T14_20_28.txt" />
</rdf:Seq>
</items>
</channel>
<item rdf:about="http://www.sharons.org.uk/taste/archives/2007/06/index.html#e2007-06-03T13_27_32.txt">
<link>http://www.sharons.org.uk/taste/archives/2007/06/index.html#e2007-06-03T13_27_32.txt</link>
<title>CentOS 5.</title>
<dc:date>2007-06-03T13:27:32+01:00</dc:date>
<dc:creator>Sharon</dc:creator>

<description><![CDATA[On my shiny new CentOS 5 I do have one slight problem ... when I log on and startx has run I get this error message "cannot open theme file /usr/share/apps/kdm/themes/RHEL". I then have to click the OK button with my mouse before I get a login box for my user name and password. So I checked and there is no RHEL folder and only a circles and a Bluecurve folder. So I went onto the #centos channel on IRC [Internet relay chat] and asked about it. 
<br /><br />
it turns out that I needed to alter usr/share/config/kdm/kdmrc, and the line that has to be changed is Theme=/usr/share/apps/kdm/themes/RHEL and I changed it to 'circles' and then rebooted. And I was able to log out properly which was another of my problems. When the login screen reappeared after my reboot there was a big flower and two boxes requesting my login details, it was working! Once in I went back to the above mentioned file and changed the theme to 'Bluecurve' and logged out, to be met with two login boxes in a more official looking blue background, which is what I prefer. Another problem solved :)]]></description>
</item>
<item rdf:about="http://www.sharons.org.uk/taste/archives/2007/03/index.html#e2007-03-17T22_19_38.txt">
<link>http://www.sharons.org.uk/taste/archives/2007/03/index.html#e2007-03-17T22_19_38.txt</link>
<title>CRON JOBS.</title>
<dc:date>2007-03-17T22:19:38+01:00</dc:date>
<dc:creator>Sharon</dc:creator>

<description><![CDATA[I was recently asked, in a roundabout way, whats in my user crontab so this is my 'user' crontab file;-<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
# DO NOT EDIT THIS FILE - edit the master and reinstall.<br>
# (/tmp/croninit installed on Mon Feb 23 12:02:14 2004)<br>
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)<br>
# Min Hour DoM Month DoW Command<br>
MAILTO="boztu"<br>
LANG="en_GB"<br>
0 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 * * * /home/boztu/programs/eggdrop/iceni.botchk<br>
#0 * * * * /home/boztu/foldingathome/folding status 1 >/opt/logwatch/folding.txt<br>
#* */12 * * * /home/boztu/chk_pending.sh >/opt/logwatch/pending.txt<br>
#@reboot /home/boztu/reboot.sh<br>
#0 7 * * * /home/boztu/backup.sh 0<br>
#0 */6 * * * /home/boztu/backup.sh 1<br>
30 4 * * */3 /usr/bin/sa-learn --ham --mbox /home/boztu/Mail/inbox-mbox<br>
30 4 * * */3 /usr/bin/sa-learn --spam --mbox /home/boztu/Mail/SPAM<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
from which you can see that I run an eggdrop bot which is checked every hour to see if its running, and if not to start it up.<br>
And that every 3 days I run spamassassin learn on my spam mailbox.]]></description>
</item>
<item rdf:about="http://www.sharons.org.uk/taste/archives/2007/03/index.html#e2007-03-14T20_12_35.txt">
<link>http://www.sharons.org.uk/taste/archives/2007/03/index.html#e2007-03-14T20_12_35.txt</link>
<title>Maidstone social meeting</title>
<dc:date>2007-03-14T20:12:35+01:00</dc:date>
<dc:creator>Sharon</dc:creator>

<description><![CDATA[On the second Friday of each month, Kent lug will be holding a social meeting at the 'British Queen' near to Square Hill Road in Maidstone[http://www.streetmap.co.uk/newmap.srf?x=576737&y=155704&z=0&ar=Y]. We will be meeting in the back room [outside if the weather is nice enough] where its possible to have a conversation without being drowned out by others, and neither being kippered by the smokers.
<br /><br />
Our March meeting was very pleasant with good food reasonably priced and good beer also at a reasonable price. The conversation ranged over favourite distro, and favourite editor, to the Reiser murder case and the quality of the beer! And as its a Shepherd Neame pub the beer quality was high!
<br /><br />
A quick straw poll indicated that we've now found our social meeting 'home' and this is where we'll be meeting for the foreseeable future.]]></description>
</item>
<item rdf:about="http://www.sharons.org.uk/taste/archives/2007/01/index.html#e2007-01-11T13_40_37.txt">
<link>http://www.sharons.org.uk/taste/archives/2007/01/index.html#e2007-01-11T13_40_37.txt</link>
<title>Social Meeting</title>
<dc:date>2007-01-11T13:40:37+01:00</dc:date>
<dc:creator>Sharon</dc:creator>

<description><![CDATA[My local LUG [Kent Linux Users Group] is holding a social meeting on the second Friday of each month at the 'Society Rooms', which is a Wetherspoons pub right next to the Maidstone East railway station, starting at 1930. If you intend to come and visit us, please wear something geeky so that we'll recognise you. I intend to wear my RedHat hat.
<br /><br />
On the fourth Friday of each month we're holding a social meeting in Canterbury at the 'Old Bev', Canterbury [come out of the west station as if you've just arrived from Maidstone, turn left, go 100m, on the left is a footpath signposted "university" and "whitstable, follow that, go under the bridge, keep following the path straight, you then come out at a small monument/green and on your left is the Old Bev pub]. Same time different place.]]></description>
</item>
<item rdf:about="http://www.sharons.org.uk/taste/archives/2006/11/index.html#e2006-11-08T19_06_29.txt">
<link>http://www.sharons.org.uk/taste/archives/2006/11/index.html#e2006-11-08T19_06_29.txt</link>
<title>Autofsck</title>
<dc:date>2006-11-08T19:06:29+01:00</dc:date>
<dc:creator>Sharon</dc:creator>

<description><![CDATA[If your system boots after an unclean shutdown you can set it up to do an autofsck, e.g. and unattended and hands-free fsck. Just go to /etc/sysconfig/autofsck and change the option from 'no' to 'yes'. The next time you reboot after an unclean shutdown, for whatever reason, you will be prompted to say 'Yes to stop autofsck'. If you don't respond it will do an automatic autofsck. Sweet :)]]></description>
</item>
<item rdf:about="http://www.sharons.org.uk/taste/archives/2006/10/index.html#e2006-10-04T19_53_31.txt">
<link>http://www.sharons.org.uk/taste/archives/2006/10/index.html#e2006-10-04T19_53_31.txt</link>
<title>rsnapshot</title>
<dc:date>2006-10-04T19:53:31+01:00</dc:date>
<dc:creator>Sharon</dc:creator>

<description><![CDATA[In my never ending quest for ever better tweaks I've managed to get 'rsnapshot' to work even better for me. Put the following in your crontab file;-
<br /><br />
0 */6 * * * /usr/bin/rsnapshot hourly <br>
00 23 * * * /usr/bin/rsnapshot daily <br>
40 23 * * 0 /usr/bin/rsnapshot weekly <br>
20 23 1 * * /usr/bin/rsnapshot monthly<br>
55 0,6,12,18 * * * DATE=`date` UPTIME=`uptime` ; echo "$DATE, $UPTIME" >>/opt/logwatch/rsnapshot.txt ; /usr/bin/rsnapshot du >>/opt/logwatch/rsnapshot.txt
<br /><br />
The first line fires it off every six hours to do a full backup, the second line changes the 
earliest hourly snapshot to be the daily snapshot. The third line changes the earliest daily snapshot to be a weekly snapshot only if it occurs on a Sunday. The fourth line makes the daily snapshot be the monthly snapshot but only if it is the first of the month. And the fifth line writes the date and machine uptime to a separate file 55 minutes after the six hourly backups, and also tells you how much disc space all the backups take.
<br /><br />
It all works, but takes longer to explain. Why not try my crontab incantation and try out rsnapshot for yourself?]]></description>
</item>
<item rdf:about="http://www.sharons.org.uk/taste/archives/2006/09/index.html#e2006-09-16T16_10_13.txt">
<link>http://www.sharons.org.uk/taste/archives/2006/09/index.html#e2006-09-16T16_10_13.txt</link>
<title>SpamAssassin</title>
<dc:date>2006-09-16T16:10:13+01:00</dc:date>
<dc:creator>Sharon</dc:creator>

<description><![CDATA[Like most people I get spam, and lots of it, and although kmail is set up to learn from SpamAssassin every Wednesday and Saturday I'm unhappy with its progress and its learning capacity. So I've set out to learn more and to train it better. I run the following commands in this order;-
<br /><br />
sa-learn --no-sync --spam --mbox /home/boztu/Mail/SPAM
<br /><br />
sa-learn --no-sync --ham --mbox /home/boztu/Mail/inbox-mbox
<br /><br />
sa-learn --sync
<br /><br />
sa-learn --dump magic
<br /><br />
The first obviously learns the spam, the second the 'ham' or good emails, the third rebuilds the SpamAssassin database, and the fourth shows you what its learnt.
<br /><br />
All good stuff.]]></description>
</item>
<item rdf:about="http://www.sharons.org.uk/taste/archives/2006/08/index.html#e2006-08-24T20_47_31.txt">
<link>http://www.sharons.org.uk/taste/archives/2006/08/index.html#e2006-08-24T20_47_31.txt</link>
<title>mrtg working!</title>
<dc:date>2006-08-24T20:47:31+01:00</dc:date>
<dc:creator>Sharon</dc:creator>

<description><![CDATA[After struggling with mrtg trying to get it up and running for a long time, I was just playing around with it tonight, and finally .... cfgmaker worked! And this is the cfgmaker line that works for me;-
<br /><br />
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
cfgmaker --global 'WorkDir: /var/www/mrtg'   --global 'Options[_]: bits,growright'  --output /etc/mrtg/mrtg.cfg  public@localhost<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<br /><br />
One less hassle now with the problem solved. :)]]></description>
</item>
<item rdf:about="http://www.sharons.org.uk/taste/archives/2006/08/index.html#e2006-08-18T14_14_02.txt">
<link>http://www.sharons.org.uk/taste/archives/2006/08/index.html#e2006-08-18T14_14_02.txt</link>
<title>Backups</title>
<dc:date>2006-08-18T14:14:02+01:00</dc:date>
<dc:creator>Sharon</dc:creator>

<description><![CDATA[I've been using rsnapshot for backups for some time now and becoming increasingly frustrated with it, in that its weekly and monthly backup was very intermittent and didn't fall into any regular pattern or work according to as specified in the crontab. I've also been using flexbackup for my backups too, but that is now too long in the tooth and unmaintained. So I've been looking for a replacement backup program, and asked on the Greater London Linux User Group irc channel [#gllug on freenode]
<br /><br />
One of its members [Simon Morris, aka 'mozrat'] provided me with the following code, which is saved as 'backup.sh' and obviously executable and saved in your 'home' folder;-<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
#!/bin/sh<br>
#<br>
# backup.sh  -  Backup control script<br>
# written by Simon Morris [aka mozrat] 12-08-2006.<br>
# Usage:  backup.sh LEVEL<br>
#<br>
#   where LEVEL = 0, 1<br>
#
<br /><br />
# Variables<br>
EMAILTO="boztu@localhost"<br>
DESTFILE="/mnt/winj/backup/backup.`date +%Y%m%d-%H%M`.`date +%a`.tar.bz2"<br>
BACKUPFILES="/etc /home/boztu /opt/logwatch /var/www"<br>
BACKUPDIR="${HOME}/backup"<br>
LEVEL="${1}"<br>
###############################################<br>
##### DO NOT CHANGE BENEATH THIS LINE##########<br>
###############################################<br>
# Load backup functions<br>
cd ${BACKUPDIR}<br>
. backup-functions
<br /><br />
# Do some pre-flight work<br>
pre_flight
<br /><br />
# Do the backup<br>
tar_backup
<br /><br />
# Test the backup for errors<br>
tar_verify
<br /><br />
# Email the backup report<br>
mail_report
<br /><br />
# Done<br>
exit<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
The variables are self-evident and can be tweaked to your needs. However, don't tweak it whilst your running a backup as it finishes one backup and then immediately starts one using your new code.
<br /><br />
And then there is the following code, which is saved in the 'backup' folder and called 'backup functions';-<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
# This is not a shell script; it provides functions for the backup.sh script<br>
# that sources it.
<br /><br />
# Variables<br>
L0DATESTAMP="${BACKUPDIR}/.level0_datestamp"<br>
NOW=`date`
<br /><br />
# Some pre-flight checks<br>
pre_flight ()<br>
{<br>
	dpkg -l > /root/backup/dpkg/dpkg.`date +%Y%m%d`.`date +%a`.txt<br>
	mysqldump --all-databases > /root/backup/mysql/mysql.`date +%Y%m%d`.`date +%a`.txt<br>
	for list in `list_lists -b`<br>
	do<br>
		config_list -o /root/backup/mailman/$list.`date +%Y%m%d`.`date +%a`.txt $list<br>
		list_members $list > /root/backup/mailman/$list.`date +%Y%m%d`.`date +%a`<br>-members.txt<br>
	done
<br /><br />
}
<br /><br />
# tar_backup function: does the archiving<br>
tar_backup ()<br>
{<br>
  echo "Level-${LEVEL} Backup ${NOW}"<br>
  if [ "${LEVEL}" = "0" ]; then<br>
    # make Level-0 datestamp<br>
    echo ${NOW} > ${L0DATESTAMP}<br>
    # Level-0 backup<br>
    tar --create --verbose \<br>
        --file ${DESTFILE} \<br>
        --blocking-factor 126 \<br>
        --label "Level-${LEVEL} Backup ${NOW}" \<br>
	--bzip2 \<br>
        ${BACKUPFILES}<br>
  elif [ "${LEVEL}" = "1" ]; then<br>
    # get last Level-0 datestamp<br>
    LAST=`cat ${L0DATESTAMP}`<br>
    # Level-1 backup<br>
    tar --create --verbose \<br>
        --file ${DESTFILE} \<br>
        --blocking-factor 126 \<br>
        --after-date "${LAST}" \<br>
	--bzip2 \<br>
        --label "Level-${LEVEL} Backup from ${LAST} to ${NOW}" \<br>
        ${BACKUPFILES}<br>
  else<br>
    # Backup level error<br>
    echo "Error: Level-${LEVEL} unknown"<br>
    exit<br>
  fi<br>
  echo "Level-${LEVEL} Backup END"<br>
}
<br /><br />
# tar_verify function: test the archive for errors<br>
tar_verify ()<br>
{<br>
  echo "Level-${LEVEL} Backup Verify ${NOW}"<br>
  # Backup verify test<br>
  tar --list --verbose \<br>
      --file ${DESTFILE} \<br>
      --blocking-factor 126<br>
  echo "Level-${LEVEL} Backup Verify END"<br>
}
<br /><br />
# mail_report function: sends backup report<br>
mail_report ()<br>
{<br>
  # Email backup report<br>
  mail -s "Level-${LEVEL} Backup" "${EMAILTO}" << EOF
<br /><br />
###########################################################<br>
Level-${LEVEL} Backup<br>
###########################################################
<br /><br />
Host:  ${HOSTNAME}<br>
Files: ${BACKUPFILES}
<br /><br />
Destination: ${DESTFILE}
<br /><br />
###########################################################<br>
Started:   ${NOW}<br>
Completed: `date`<br>
###########################################################
<br /><br />
`cat /tmp/cpfile.txt`
<br /><br />
EOF<br>
}<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
Then just set up crontab to call it whenever you want and it will do whatever you have called for in the variables in 'backup.sh'. Simple and works like a dream :)]]></description>
</item>
<item rdf:about="http://www.sharons.org.uk/taste/archives/2006/07/index.html#e2006-07-30T14_20_28.txt">
<link>http://www.sharons.org.uk/taste/archives/2006/07/index.html#e2006-07-30T14_20_28.txt</link>
<title>MoinMoin</title>
<dc:date>2006-07-30T14:20:28+01:00</dc:date>
<dc:creator>Sharon</dc:creator>

<description><![CDATA[I've recently been playing around with another wiki called MoinMoin which seems to work quite nicely, out-of-the-box, under CentOS. And, it even comes as a yumable rpm file too. But the usual bugbear for me, to remember the url to get it up and working on my box, and it is;-
<br /><br />
http://localhost/mywiki/FrontPage]]></description>
</item>
</rdf:RDF>

