Tuesday, October 12, 2010

SheevaPlug Plug Computer Rises From the Ashes

I got a SheevaPlug Plug Computer over a year ago. I installed Fedora 12 on an SD card. Worked great.

I used it as part of my home automation set-up. I had 1-wire temperature and humidity sensors and a barometer running off it. I also had my Homeeasy 1-Wire remote control system running on it.



Anyway, one day I decided to tidy up the cabling in the area the plug computer lived. This also involved moving the plug computer to a new socket.

I powered it down in the correct manner and moved it. Plugged it back in and it did not come back on. Stuck an USB console on it and it was dead.

There was some furious work to port the 1-Wire scripts and functionality to another device. In this event, it was a Linksys NSLU2 which I had configured with OpenWRT a week earlier. Surprisingly, it was well capable of the job. It became my new 1-Wire controller.

I searched the forums and they were talking about the boot loader being corrupt. I followed that line of enquiry for a while and got nowhere. Still dead. All that would happen was there was flashing leds. No help.

I eventually found some talk about a dud power supply. I cracked the lid on it and tried my trusty multimeter. The result was that there was only 2.1 volts coming out of the power supply instead on 5 volts. Progress at last.

After a few snips, I was able to get a power supply from an old mobile phone soldered to the connector from the original power supply to power the motherboard of the plug computer. This was the business. The plug computer was back on the air.

The SD card was inadvertently pulled out of the plugcomputer while it was on and resulted in a crashed SD card. Feck again.

It was actually relatively easy to reinstall the Fedora 12 file system using the original Instructables article. Note to self, do a backup of the SD card this time.

I found some articles on repairing the original power supply but I decided not to go down that route.



There was also mention of www.globalscaletechnologies.com selling a replacement power supply. It turns out to be €7.54 but the delivery was €39.19. Way too much. The warranty from globalscaletechnologies was only for 1 month. I was fecked, so I said "feck that".

I found that there was a UK supplier http://www.newit.co.uk/ that had the power supply at a much more acceptable price around €20. Cool. I went about ordering it.

It arrived a few days later. The install was a breeze. Finished the set-up of SD install and off we went.

Success.

Everyone's a winner!.

Wednesday, July 21, 2010

Homeasy Remote PC Control - Linux & 1-Wire

As discussed previously, I am a big fan of the Homeeasy range of products.

I have quite a few in use around the house. 16 in total.

My first adventure in home automation involved some X10 devices. These were OK but were slow to respond and overall unreliable.

I had appliance and lighting modules, some bayonet modules, pir and remote controls. Also some wireless transceivers and a controller. Now all unused.

I then came across the Homeeasy range of products. I think my brother Peter introduced me to them. Fairly cheap, so I got a few of them.

Came across James @ Notes from a small field, who was talking about setting up an arduino to operate like a Homeeasy remote control.

After a bit of work and revision, I was able to get a working arduino/homeeasy rig working. Here is a link to that particular project: Simple/Manual Protocol Arduino/Homeeasy

The final version also contained an Ethernet shield and operated as a web server. Various commands were sent to the web server using the URL to pass parameters, which were picked up by the arduino. Very good actually. It has been running for almost a year now. No crashes.

So, it worked fairly well. It is about 80% effective. It was mainly used in the kitchen and there were some dead spots that were only about 10% effective. Don't know why. Swapped modules, etc., still dead spots. This would have been OK for me but not acceptable for SWMBO and the other house inhabitants.

As hinted above, this set-up only accounted for the transmission of the Homeeasy Simple Protocol. This is not compatible with all the Homeeasy range of products. They also use an Advanced Protocol for some of their devices, such as sockets and wall switches.

I wanted to use some of these switches and sockets, so I had to get a method to remotely control them.

Around that time, there was a lot of activity in the adruino homeeasy controller area.

There were a number of options available for Homeeasy Advanced Protocol programming on the arduino.

I tried many of them but found less then 100% reliability. Again some dead zones or sometimes it would work and sometimes it wouldn't. Definitely not acceptable.

During this journey, I noticed that the hand held remote was very reliable. I presume it was something to do with my implementation. Personally, I think there is an aerial issue. I don't know anything about that, so I parked this project and moved to another approach.

I read about using the actual Homeeasy hand held remote wired up to an arduino on Instructables and something similar in the Practical Arduino book.

Easy enough. I put it together and it worked perfectly. 100%

So, then I thought, the arduino is all very good, but all I am doing is using the arduino as a smart relay controller.

I have been using the Dallas 1-Wire devices for a number of years to read temperature and other weather readings. I also use a 1-Wire relay to control my boiler.

Using a schedule stored in a database, the boiler goes on and off as required. This is the subject of another post, I think.

I decided to use 1-Wire switches to control the hand held remote.

I got myself a breadboard some wires and a couple of DS2408 chips and my trusty USB 1-Wire controller.



Again following the wiring layout on Instructables - Arduino Home automation, got it all up and running in no time.

There are 4 on and 4 off buttons and the DS2408 has 8 switches.

To utilise the 4 zones, I needed another 4 switches. I used the other DS2408 for this.



The 1-Wire system is controlled from a Linux box on the network. I wrote a PHP script that presented me with various devices and On/Off buttons to control them.

I used OWFS (One Wire File System) suite of programs to talk directly with the 1-Wire switches.

Happy days.

Sunday, July 18, 2010

One of my mothers roses

My mother has always been a keen gardener. She had a very large garden, when she lived on the north side of Dublin. She moved to the Dark Side (south) about four years ago.




I remember, when I lived there during those eternal summers, having to work in the garden when all my friends were out playing. Possibly another blog.

The new garden was much much smaller then the previous one. Probably about one twentieth. She is pushing on a bit, so it is not too much of a problem having a smaller garden.





She was always a big fan of roses.

She has being building up a stock of roses over the past few years and was having great success with the blooms.




I often get a few rose blooms when I visit her. Some are really spectacular.



This is an example of the best yet.

Monday, June 14, 2010

I've found it. Ultimate Chilli Sauce / Salsa

After many years spent in the quest for the best Chili Sauce, I determined that the only way to find one is to make it myself.


There are basically at least two types, cooked and uncooked. I prefer the uncooked varieties, as they are usually sharper and more pungent in flavour.

I have tried many, from the US, Mexico, Africa and Asia.

Some I found were quite good but lacked the roundness in flavour I was searching for. Others were too mild or burned my face off. Not quite what I was looking for.

Anyway, I tried a number of recipes from books and the net. Not quite there.

I more or less stumbled on this one.

I bought two packets of fresh chillies in a local supermarket chain store (Dunnes Stores). This is often a bit suspect, as I am sure that they are just ordered from the suppliers, without respect to the heat they produce. In fact I bought some there a few months ago that were very very mild. The past few times I bought them they were nice and hot.

I don't have easy access to any Asian shops, so it is usually supermarket chillies or nothing.

OK. I bought my packets of chillies and did nothing with them.


They were getting a bit limp in the fridge, so I thought I better use them.

I searched in the cupboard for something suitable to make a chilli sauce with. I often use lime juice to add a bit of liquid and flavour. No limes. Feck, I said.

Found a large tin of Pineapple. Cool, I thought.

I am a big fan of Garlic, so I selected a whole bulb of it.

So, I had:

1 x Tin of Pineapple
1 x Bulb of Garlic
2 x Packets of fresh Chillies (Probably 10 or 12 in total)
1 x Blender


Peel the garlic and chop the chillies into large pieces.

Put the flesh of the pineapple into the blender. Reserve the juice/syrup. You may need the juice if the mixture is too dry.

Add a half to a full teaspoon of salt, depending on taste.

Add the chillies and garlic to the blender and zizz.


Blend until you get the consistency you like. I like it a bit chunky.

Add more juice if necessary.

Give it a taste.

Adjust seasoning.

Too Hot = Enjoy it. Or add another tin of pineapple.
Not hot enough = Add a teaspoon of chilli powder or more chillies.
Too much Garlic = Enjoy it.

I put the result into jars and store in the fridge.

Remember, this is an uncooked sauce, so all the crazy yeasts in the air will be trying to do rude things in the sauce. The fridge will take the lead out of their pencils. The worst that will happen, is that the sauce will ferment.


Love the Burn

Saturday, April 10, 2010

433mhz RF Radio Controller Wireless Remote Control

I picked up one of these gadgets recently on eBay. Pretty good, really.

It consists of a remote control and receiver module.






There are 4 buttons (A to D) on the remote that switches the lines on or off.

It works on a latch system. One press on, one press off.

While this action has its uses, I feel that it is a bit limited in a home automation scenario.

433mhz devices are not always 100% reliable. This frequency is heavily used by many devices and can cause interference.

So, you press a button and wonder, is the device still Off or On? Who the feck knows. Press it again and you are still in the same position. Did it turn On or Off???

I prefer systems that have specific On and Off buttons.

Anyway, this latch type of devices still have many uses.

An On/Off system can be easily designed. Button A = On, B = Off. The same with buttons C and D.

Or just 4 On buttons.



The receiver is fairly straightforward, as the image shows.

I had a bit of a problem with the pin outs. By receiver board had no pin legend. I was able to work out the pins of interest. Then I noticed that the advert had the pins labelled. Doh! I was correct anyway, so no problem.

Specifications:


* Channels: 4
* RF radio: 433MHz
* Operating range: up to 300m (984ft)
* Power: 4.5 – 7V
* Dimensions: 4.5 x 2cm (1.8 x 0.8”)
* Weight: 5g


Pin Assignment :


* D0: Output 0
* D1: Output 1
* D2: Output 2
* D3: Output 3
* GND: Ground
* VT: Switching voltage (will be transmitted to the corresponding output when pressing a button)
* VCC: Supply Voltage

I wired it up and it works.

I connected it to a 1-Wire Switch, a DS2408.

The DS2408 is a very versatile device. While it can be used as a switch, it can also be used to sense a 5 volt signal.

It is an 8 port switch but I am only using 4 for sensing voltage.

Using OWFS (1-Wire File System), I was able to detect when a button has been pressed.

Uber cool.

I can detect when a button is pressed and use the computer to take some action, such as switching on or off a device or a number of devices. Not quite sure yet.

What I think I will do is pop an opto-coupler into the mix and use the DS2408 to control the receiver.

For example:

1. Press a button
2. Sense the voltage using the DS2408 and do something
3. Switch off the power to the receiver and back on again.
4. This will clear the sensed voltage and mean that every button press is easily detected as an event request.

Saturday, April 3, 2010

In Praise of Linux

The house server, which runs Fedora Linux and does the 1-wire, currentcost etc activities plus many other things was becoming a bit unstable and was crashing every day or two.

The cry went up and 'Feck' was heard throughout the land.


It took me most of the day to sort it.

It was all caused by disk errors. Luckily they were only soft errors. File allocation errors etc.

It took a long time to find out what the problem was and then to repair it.

Anyway, all good now.

I also had an aborted upgrade issue, that left things in a bit of a limbo situation. I was able to force it through, I think.

The truth is that I really enjoyed it. Plenty of problem solving and I didn't know if I could solve it. Well, I knew I could.

If it was Windows, I think the outcome would = Bollixed.

Linux will never catch on, as it is complex under the hood.

But you can get under the hood and twiddle away and fix really obscure issues.

The new word on the street is 'Coolziod'.

I Love Fedora..............

Tuesday, March 16, 2010

Linux Mysql OpenOffice Connector

I use MySQL quite a lot as part of my Home Automation and various information web pages.

As a Linux dude, I need an application to easily update various tables.

There are not many open source utilities that would fit my requirements.

An obvious fella would be to use OpenOffice to connect to MySQL.

I previously set-up OpenOffice to connect to MySQL. It did work but often the wheels fell off and it involved varying degrees of difficulty to get the wheels back on.

Not so any more.

I am not sure when but with OpenOffice 3, things are much easier.

Here is what you need:

1. Access to a Mysql database.
2. An install of OpenOffice.
3. The latest connector extension for OpenOffice.

The Linux Mysql OpenOffice Connector is available here:

Get the connector and follow this link to complete the set-up.

Top Tip:

If you want to be able to edit the MySQL table, the table must have a Primary Key' defined. Otherwise, the result is Fecked.

A Primary Key, is simply a field in the table that has unique contents.

I used this command line to set it:

mysql> alter table "table" add constraint primary key ("field");

That's all.

JTJ (Just the job)

Thursday, December 10, 2009

HomeEasy Rip Off @ B&Q Ireland

I have been a fan of the HomeEasy devices for switching on and off lights appliances etc. for a few years now.

I tend to get the controllers and modules piece by piece, so the extra cost of buying it in Ireland has not really been an issue.

Recently, I was considering getting 2 Single Dimmer Switches (HE107) and a Double Dimmer Switch (HE108) for another mad project.

I was also interested in the cost of the Double Socket (HE109). A fella can never have too many remote control sockets.

I did a bit of research on the old net while contemplating global domination.

The first port of call was http://buyhomeeasy.co.uk.

I checked the prices and they were as follows:

Single Switch - £31.50
Double Switch - £53.00
Double Socket - £41.00

These are approximate prices including postage.

This equates in Euro to:

Single Switch - €35.00
Double Switch - €58.50
Double Socket - €45.30

Pricey enough but a tool for a job.

I toddled off to the nearest B&Q in Dublin and checked out the prices. I was quite surprised by the difference.


Single Switch - €50.25
Double Switch - €67.00
Double Socket - €50.25

That is quite a big difference.

The differences are:

Single Switch - €15.25
Double Switch - €8.50
Double Socket - €4.95


For my mad project requirements, 2 single switches and a double switch, the difference would be a whopping €38.75. I would easily get another single switch if I got it on-line.

I know it costs extra to ship things to Ireland but this seems excessive, seeing that we are so far away.

Even the price difference ratios are bananas. The cheapest item, i.e. the single switch has a difference that is 3 times the difference of the double socket.


Mad I tells ya!

Monday, November 30, 2009

Remote Control Light Switch

I ordered a single and double light switch from www.carymart.com about 4 weeks ago. I has just arrived.

It is quite a nice product and fairly cheap. The single $24.50, about €16. The double is just a few dollars more.



I installed the single one in the kitchen controlling some florescent lights. The build of the switch is a bit old fashioned looking but it functions perfectly. When installed it looks great.

The remotes are a bit 'Get Smart' looking, with a pull up aerial. Secret agent walkie-talkie.

They work fine.




Hidden screw holes. Street Cred = 100.
One of the things I liked about it is that works with CFL and florescent bulbs.

The only issue I have is that the switch has a toggle operation.

Press the button and it switches on. Press it again and it turns off.

There is no way to know the state of the switch, i.e. if it is on or off.

I would much prefer a switch that I can send a specific 'On' or 'Off' command. That would fit in with my plans for for my Home Automation set-up.

Would I recommend them? Yes.

I will probably get a couple more.

The double switch will probably be installed in the hall to remotely control the lights in the porch and hall. Very handy on a cold wet dark evening, to be able to turn the lights from the car.

Thursday, November 19, 2009

Thai Restaurant @ the Beacon, Sandyford

I went for lunch to the Thai Restaurant at the Beacon in Sandyford, Dublin 18 yesterday.

It was to mark the departure of a work colleague, John Milner. No this is not the John Milner, who was the Hot Rod driver from the movie American Graffiti. It was the other one, the world famous database administrator.

This is the third time I was there and had a similar experience each time.

The setting is nice and relaxed and the service is fair to good for lunch time.

The food on all three occasions was decidedly bland.

I do quite a bit of cooking myself and am a big fan of chilli and garlic. Can you have too much? Definitely in relation to chilli, yes. Garlic on the other hand, requires much higher densities before reaching critical mass.

I had Nasi Goreng this time. This is a sort of a stir fry with rice, wegitables, chicken and prawns. This was accompanied with a fried free range egg on top. Sounds good, eh?

There was also chicken satay stick on a bed of pineapple and onions covered in a satay sauce. I must admit that I am not a big fan of onions, but usually partake, as they are part of the whole experience (one hopes).

There were also some non descript fried cracker fellas, which were nice and crispy but didn't taste of anything.

The Nasi Goreng followed this trend by not really having much flavour. Even the fried egg was bland. The chicken didn't taste like chicken and was very soft. I wondered how freshly it was cooked. The prawns had the correct texture but that was it.

The chicken satay stick, which was sort of flattened, as they usually are. It was very well cooked. Maybe that was very very well cooked. I sort of like crispy fried chicken, so I persevered. In my attempts to consume it, I had a bit of a problem distinguishing between the chicken and the skewer.

I began to do what I normally do in these cases, which is to loosen the skewers grip on the chicken. This then allows the chicken to be easily pushed off the wood.

So there I was holding down the chicken with my fork and twisting the skewer, as you do. Then the chicken slipped from beneath my fork and the chicken spun and paddled the sauce in all directions. I received 4 large drops on my front. They turned out to be those nasty greasy stains that cannot be washed off and serve only as a symbol of ones ineptitude with the whole eating process.

I even think some of the other drops landed on someone else's plate.

Eek!

I fully understand that this was my fault and not necessarily a result of the quality of the food.

Having seamlessly carried out this procedure, totally unnoticed by companions, I continued to complete my repast.


The pineapple was nice.

Did I eat everything? Damn right I did. I was paying enough for it and it was not offensive. It was just a bit dull. I know that Thai is not the spiciest of Asian food styles but still should not be considered dull.


I freely admit that Thai food would not be my cuisine of choice. Not enough chilli and garlic and too much ginger.

Was this any worse then previous experiences with Thai food at different establishments? Probably not.

At the previous Thai restaurant, did I say that I would never go to another Thai restaurant? Yes.

Am I being fair in my views of this one? Who cares!

Wednesday, November 18, 2009

USB Temperature Sensor and Linux

I picked up an USB Temperature Sensor on eBay a few weeks ago. Total cost just over 4 Euros. It would have been rude not to get one. It is a HIP TEMPer model from http://www.pcsensor.com/. They have a few mad products such as a three foot switch. I like it.



I took quite a while to actually arrive.

It arrived today, so I plugged it into a Windows XP machine and installed the software. Yep, worked fine. The software that comes with it is basically crap. The colour scheme is way ugly.

This is not a problem at all as I planned to use it on Linux. I wanted to be able to poll the device and pull a temperature reading off it, stick it in a mySql database and present the data via a PHP web page. Bob's your aunty.

After consulting Dr. Google for a while, I came across this site, that had what I was looking for. http://relavak.wordpress.com/2009/10/17/temper-temperature-sensor-linux-driver/

I downloaded the driver and ran it. Perfect, almost.

It ran in a loop with lots of other data being shown. The default executed in a debug mode.

So, I had a look at the source code. I am not a C programmer but it was easy to follow.

I changed a few settings, commented out a few lines, compiled and tested it. Wash, rinse and repeat.

After a very short period of time, I had what I wanted.

The program just reads once and outputs the temperature in centigrade.

Done.

Just the thing to use in a script and automate.

I think I will get a few more. Very cheap and useful. Brilliant piece of kit.

I use 1-wire sensors for a lot of my temperature measurements. This is another tool for the toolbox. This is all due to the Linux drivers provided by http://relavak.wordpress.com/2009/10/17/temper-temperature-sensor-linux-driver/.

He is the hero.

I have added an update to this blog   - USB Temperature Sensor and Linux (Part 2)  on 10/08/2012. Included come compiled code.

Saturday, November 14, 2009

Linux Media Player Part 2

This time I tried one of the most popular ones, MythTV.

I tried this first a few years ago and failed dismally to get it to work properly.

This time around I did not fair much better. It is overly complicated and poorly documented. Sure, there is loads of docs but I found it difficult to follow. After two days of install and set-up, what I ended up with was a poorly operating system. It was slow and sluggish.

Too many things. I just wanted to play a few cds and watch a few videos.

A single application device.

So, I basically abandoned Myth TV.

Hello again Freevo.

It installed fairly easily on Fedora 11. There is just 1 configuration file. Excellent.

It all works. No issues.

There are many new features added since I first set-up Freevo.

The Question: "Which is a good and lightweight Home Theatre / Media Player to install on an old or low spec PC?"

The Answer: Freevo

It is really an answer and not the answer. There are other other ones.

Another one I played around with last year was GeeXboX. It was fairly good. The best thing was that it came on a bootable cd, so it was easy to test out.

I think I shall just do that.

In the mean time, I am a Freevo sort of guy.

Monday, November 9, 2009

Linux Media Player

I have been a fan of Freevo for a few years now, but decided to review what the current state is with other application.

The reason I chose Freevo, was because it was relatively easy to set-up and did not require a powerful computer to run on.

The PC I choose to run the tests on is a 1.? Ghz machine with 512Mb of RAM.

The first candidate was XBMC. It looked good. Downloaded and installed it, no problems. When I started to use it, there were some serious issues. It played fine but the user interface was very, very slow. Dragging the mouse accross the screen produced a large number of jumps.

This product was quickly dismissed, as it would fail the UAT (User Acceptance Test) straight away.


The next fella was LinuxMCE. This requires a specific version of Kubuntu to install. It is all contained on the DVD image which is handy.

The install took many hours, about 5, to complete. There were a few hangs and reboots. It didn't fail but just picked up from where it left off.

When I got it installed, I had some trouble setting preferences, such as IP address. The changes were not retained. This gets very frustrating, after 5 or 5 attempts to set something.

I noticed that it failed to pick up various media available.

The main issue was the customisation. It wouldn't take the changes.

After a number of hours, there was only one decision and that was /bin.

The end.

The next system is MythTV. I have it installed on Fedora Core 11 and need to configure it.

More next time.

Friday, November 6, 2009

Sinead's 1-Wire Alarm Clock


My daughter Sinead has a problem getting up for college in the morning.

She finds standard alarm clocks do not work for her. Too easy to turn off and go snoozing again.

We investigated a number of solutions, such as louder alarm clocks etc, but nothing really provided a complete solution.

I have been involved, some people would say obsessed, with Home Automation for a while now. One of the technologies that I use is called '1-Wire'.

1-Wire is basically a 2 wire network, that can be used with a number of components supplied by Dallas Semiconductor Co (now Maxim) to perform a number of functions, controlled by a computer for example.

They are probably best known, in geekdom, for their DS18S20 temperature sensor. I use these throughout the house to measure the temperature in different rooms.

They product other chips that do different things. The one I used in this case was a DS2405 addressable switch. It is an oldish device that has been superseded by the DS2406 and DS2408.

Anyway, it can be used as a switch and as a sensor to detect voltage. Pretty useful.

When the alarm goes off, the patron will need to get out of the scratcher, go to where the computer is, bring up a web page and click 'OFF'. She has an iPaq which is connected to the network. There will be a block on using an iPaq to turn off the alarm. Hehe! Evil, evil, evil.

My design is as follows:

1. Use my existing 1-Wire network to control the DS2405.
2. Use the DS2405 to control a relay.
3. Use the relay to switch on and off a sound source.
4. Use a PHP web page to interface with the set-up, i.e. turn on/off, set-up schedules, etc.
5. Use bash scripts to manage the schedule automatically.
6. Cost me nothing, except time.

List of materials:

DS2405 (or DS2406 or DS2408)

Some relay. I used a Opto-Isolator, which I already had. I used Opto-isolator,ISD74 5300Vac/50mA DIP8 which I got from Radionics.ie

A door /window alarm I got from Lidl a number of years ago. There is a small siren, that is loud enough for this application. I shouldn't wake people in other rooms.

5V Transformer. I used one from an old Sony walkman.

Various cabling, cat-5 and phone cable.

Some heat shrink sleeving (to make it all neat-o)


Construction:

Prepare the alarm. Strip out the button batteries, remove the battery contacts. You are left with a red and black wire. I also removed the reed relay sensor.

Connect the 1-Wire cable to the GND and 5V of the DS2405.

Connect the PIO and GND of the DS2405 to the appropriate pins. See spec sheet for this chip.

Connect the output pins to the 5V+. One to the walkman and the other to the 5V on the alarm siren (red wire).

Connect the black wire from the alarm to the gnd on the transformer.


I was able to fit all the components in to the alarm, after removing the batteries and cutting a plastic separator.


Wired it up to the 1-Wire controller and tested it. Worked perfectly.

Patched it through from where the main computer is to Sinead's bedroom.


Next Step:

Write the PHP script to provide an interface to turn it off, when the patron has arisin.

Put together a bash script to automate the switch on and off of the alarm. I think 30 mins on would be sufficient. I you can't get up in that time, you are not there or there is a serious problem.

This will be the easy part.

Power failure - Restart not successful - No Email

There was a power failure here yesterday and knocked out the computers that were running.

One of these was my Internet server. It provides my web sites 'www.thegiblins.com' and 'shankillweather.com' and acts as my email server.

It is based on Linux, so, I thought that it should recover fairly easily.

This was not 100% true. The web site came up fine but email was working well.

I use sendmail as my MTA, which can be very difficult to configure and maintain.

I noticed that I hadn't received any emails since the afternoon. There are always emails being sent, either externally or internally from the various scheduled jobs that are always running. Something was wrong.


On further inspection of the /var/log/maillog, I say many messages like:

Milter: data, reject=451 4.3.2 Please try again later

and

to=, delay=00:00:04, pri=31034, stat=Please try again later

and even

to=root, ctladdr=root (0/0), delay=00:00:02, xdelay=00:00:02, mailer=relay, pri=30341, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later

I said to myself, "What the Feck!".

I did the usual quick fix, i.e. "Did you try turning it off and on again?". No change.

I run Spamassassin and Clamav (Virus Protection), which can be troublesome boys, so, they were the next suspects.

The main clue from the maillog, was the word 'Milter'. This is basically a mail filter. There is one for Spamassassin and Clamav.

If you have ever set these up on Linux, you will know how tricky it can be. The documentation is not clear enough. It becomes clear after you have completed the job, which is not very helpful. Clamav has many components and it is not clear what are required.

Spamassassin seemed to be fine. It was identifying spam and non spam correctly.

Next was Clamav. I checked the configs, all OK. Ran an update on the data ans s/w. No change.

Checked my old notes. No help there. Talked to DR Google. Same.

I had a look through the bash history and noticed something.

I could see that 'clamav-milter' was running bit 'clamd' was not.

I started 'clamd' and restarted 'clamav-milter'. All good.

Done.

Mail logs looked good. Emails were coming through. Happy days.


What did I learn?

Make better notes (probably never happen).

Fully automate for a restart. I remember when I recently rebuilt the Internet server, there were issues with these email components. I obviously did not fully complete the install and left things not starting on boot.

Thursday, October 22, 2009

Handy Little Helping Hands Mutation

I use those helping hands tool for messing with electronics and other small projects.

I love Lidl sometimes. This was another gold find. A few months ago, I saw on their web site that they had them, so I got two of them.

Full of handiness.

This is what they look like.









These are the boxed fellas.






























I often found that there were not enough clips to assist me with my very important work.

I thought, I should buy another.

I saw the advert for Lidl, and got two at a great price.

After swapping some of the bits around I was able to build some mutated tools, which gave me more then I needed.































And again......


Thursday, October 15, 2009

Major Computer Failure

I woke up on Wednesday to find that the boiler had not turned on.

I have an iPaq that I use from the scratcher to control things around the house. I cranked it up and nothing. I then arose and checked out the house server called 'Multipass'. The name is based on a scene from 'The Fifth Element'.

It was dead. Switched it on and a few minutes later it powered down again. I powered it on a few times and the same result. Dead.

I had always suspected that it would fail. The PSU was not really up to the job. It was 300W and there were a few disks and a fairly beefy motherboard installed. Not a big server but a well used one.

Anyway it died.

I toddled off to work, as you do.

On the way home, I called into PC World and had a look.

For fecks sake. PSUs about 50 to 150 euros. There was no one around to help me with my problem.

I thought... Maybe get a new case with PSU included. None of their cases has PSU included. Cases from 50 to more then 200. Feck again, I said.

Exit stage left...........

I was almost home, when I remembered that there was a computer shop on the Johnstown Road, called A1 Computers.

I did a quick U-turn and headed there. They had a case with PSU for 50 euros. Had a quick look and bought it. Shiny black. Cool

I spent most of the rest of the evening moving the old stuff to the new case. The new case was about 5cm smaller front to back then the original case.

This proved to be a bit of a challenge but I got everything fitted in. The main issue I had, was that the screw holes for the drives did not line up. I fitted the drives using gravity as the securing system. Not great but the server is out if the way and will never move while it is on.

I cranked it up and after a few issues, everything started fine.

It is amazing how much one begins to rely on a hose server.

My one has the following config:

Linux - Fedora
Apache
Mysql
Php

1-Wire - Controlling temperature measurement inside and out (shankillweather.com). It is also used for the heating boiler controller.

CurrentCost - electricity monitoring and reporting.

HomeEasy - electrical device power on/off as part of a home automation project including an Ardino ethernet controller.

X-10 - again home automation of devices

File server - for general 'My Documents' centralization, music, videos, pictures, pdfs etc.

Web Server - several specific web pages for wiring, IP address db, weather and temperature pages and a general house page with sites of interest, including TV, media and public transport links.

Virtual Machine running Windows XP.

Digiguide central repository.

Things you take for granted are not there when the system failed.

Anyway, all back and available. Cool.