It isn’t usual to read a B-107 to its subject, but I’m going to set you straight. “Insubordinate. Insolent. A trickster. Perhaps with criminal tendencies”.

Harry Palmer

January 21, 2009

Lambretta – Fitting a reproduction front disc brake

Filed under: Lambretta — ben @ 9:44 am

I had to change the old drum brake style fork links on the Li to fit reproduction front disc hub.

* * *

January 13, 2009

Fetchmail as a service in Solaris 10

Filed under: Computers — ben @ 10:00 pm

The general Solaris guide for adding a new service can be found here :-

http://www.sun.com/software/solaris/howtoguides/smfmanifesthowto.jsp#4

Copy your working .fetchmailrc from your home directory to /
Be warned though that running fetchmail as root is apparently not such a good idea.

ben@sunblade /export/home/ben $ cp .fetchmailrc /
ben@sunblade /export/home/ben $ cd /
ben@sunblade / $ sudo chmod 600 .fetchmailrc

A good sample manifest XML can be borrowed from :-

http://www.blastwave.org/smf/manifests.php

Pasting XML into WordPress is not straight forward at all. Much easier if you simply download the file from here :-

http://www.blastwave.org/smf/xml/fetchmail.xml

I changed this line to the correct path to the fetchmail binary for my machine :-

exec_method type=”method” name=”start” exec=”/opt/csw/bin/fetchmail -s -d 600 -K” timeout_seconds=”30″

NOTE: After some experimentation I found that this will not work. I suspect that as we are making this service a network service any other disks are not yet mounted, in this case /opt is mounted from another disk. speculation Which means that the fetchmail binary must be on the boot disk./speculation I moved it from /opt/csw/bin/fetchmail to /usr/local/bin/fetchmail and it works fine.

Save this file (with root permissions) to /var/svc/manifest/network

Then run the procedure to add and start the service :-

ben@sunblade /var/svc/manifest/network $ sudo svccfg validate fetchmail.xml
ben@sunblade /var/svc/manifest/network $ sudo svccfg import fetchmail.xml
ben@sunblade /var/svc/manifest/network $ sudo svcadm enable fetchmail:default
ben@sunblade /var/svc/manifest/network $ sudo svcadm disable fetchmail:default

Logging is written to :-

/var/svc/log

To remove the service :-

ben@sunblade /var/svc/manifest/network $ sudo svccfg delete fetchmail

Update 27/02/2009 : This is isn’t working correctly so I’m giving up. Added the following to cron :-

0,15,30,45 * * * * /opt/csw/bin/fetchmail > /dev/null 2> /dev/null

fetchmail is really noisy even in slient mode so stdout and stderr are redirected to /dev/null to avoid receiving lots of email from crond.

Before :-

ben@sunblade /export/home/ben/Documents $ fetchmail
fetchmail: Server CommonName mismatch: h03.com != mail.ipcress.net
fetchmail: Server certificate verification error: self signed certificate
fetchmail: Server certificate verification error: certificate has expired
fetchmail: No mail for spy1u838p1 at mail.ipcress.net

What SHOULD work but doesn’t :-

ben@sunblade /export/home/ben/Documents $ fetchmail -s
fetchmail: Server CommonName mismatch: h03.com != mail.ipcress.net
fetchmail: Server certificate verification error: self signed certificate
fetchmail: Server certificate verification error: certificate has expired
ben@sunblade /export/home/ben/Documents $

After :-

ben@sunblade /export/home/ben/Documents $ fetchmail > /dev/null 2> /dev/null
ben@sunblade /export/home/ben/Documents $

* * *

January 6, 2009

Scooter Mittens

Filed under: Lambretta — ben @ 12:18 pm

I found this old knitting pattern a couple of years ago on of the American scooter news sites :-

I managed to persuade my mum to have a go and after a year of effort off and on I got these for Christmas :-

They’re very much like these gloves from Brazimoto in the US: -

* * *

January 4, 2009

Lambretta Cutdown Rebuild – Strip over Christmas

Filed under: Lambretta — ben @ 2:31 pm

I took the chance to escape from Christmas lunch and strip the cut down in the in-laws garage.

Next step is to strip the dodgy powder-coat from the frame and start filling some of the holes.

* * *