Archive

Archive for the ‘Projects’ Category

Once more unto the breach, dear friends, once more…

October 1st, 2012 2 comments

OK, so I have decided to start yet another ‘project’..! Aside from the ongoing restoration of my old Land Rover (see my earlier posts), I am starting the resurrection of a classic computer, notably a D.E.C. PDP-8 ‘Straight Eight’. It has spent the last twenty plus years gathering dust, mold and rust at the back of a garage owned by a late friend of mine.

Here it is, in all its glory…

As you would probably have guessed, it isn’t in the best of conditions. The casing has several cracks and there are a few missing switches on the control panel. There is also considerable corrosion on the wiring loom and connection blocks.

The damage to the control panel…

The damaged outer casing…

On a plus side, it is complete and I have managed to find a good collection of the original documentation. The memory core is also still tightly sealed, so hopefully that should be in good condition.

The core memory module…

A view from the top…

This will be a slow project, for several reasons:

  • I don’t want to screw it up!! They only made ~1400 of this type and I would hate for there to be one less due to my stupidity.
  • This is a learning project, how better to learn about the inner workings of a computer than by rebuilding one.
  • This particular machine has a good deal of history attached to it (see first point).
  • It belonged to a dear friend of mine and I would like to do him proud…

There will be more to follow soon, plus hopefully a little bit of the back history.

Exhausting Work..!

December 23rd, 2011 No comments

I’m sorry I couldn’t help it… The pun that is… Not the… Err, never mind…

As it is nearing Christmas, my spare time has been eaten into and the time available for frivolous Land Rover work has dwindled. However, I did manage to fabricate a new exhaust pipe. The original one had a few spots of rust and needed a new downpipe to connect to the diesel manifold. I am running the 200Tdi without the turbo fitted as it would have been too powerful, without it, it should provide a similar BHP to a good 2.25 petrol. I decided (as is my way) to build a new one from scratch.

A visit to my local hardware store and I had all the mild steel I needed…

The start of the new downpipe...

I started by cutting a piece of plate steel to match the outlet on the manifold (as can be seen at the top of the picture above). Then I slowly cut and tacked into place the pipe sections, angling them out and under the chassis. One of the things I wanted from the start was a smooth finish. I have seen other similar exhausts where the cuts and joints were welded together and left. Not the best look!

The downpipe fitted...

Once I was happy with the position and placement of the downpipe I continued back to the muffler. I made this from two pieces of box section. On the sides that met I drilled one hundred and twenty 4mm holes to allow the gas to pass through. This is almost exactly the same method used in the original muffler, it is only the external shape that has changed.

The downpipe and muffler...

As you can see I added a joint plate to allow for easy fitting. I also used the original mounting bracket (it lined up perfectly). Because of the increased weight of the muffler I added an additional bracket to the rear. The exhaust is made from steel almost four times the thickness of the original, so it tends to weigh a ‘tad’ more.

The rear support and exit pipe...

It took about ten hours in total to make, it could have been less if I had left the surface weld on the joints. However, I am very pleased with the result. The final thing to do is spray it with high temperature ‘stove’ paint…

…meanwhile…

The dashboard fitted...

I have also been working on the dashboard and internal parts. It doesn’t look it, but there isn’t that much work left to do. I will not meet my original Christmas deadline, however, I feel confident that I can have it ready by the end of January…

 

Honest..!

After six years… Movement!!

March 8th, 2011 No comments

It has been over six years and my poor old landrover has been patiently waiting for someone to show it a bit of affection. That time has finally come… On Saturday (05/03/2011) I, along with my friends Dave and Jim, started the task of moving my SIII 109″ from its resting place to a new home. Years of growth had to be cut back. The brambles didn’t give up  the fight easily and after three hours of blood, sweat and tears we had access.

After hours of bramble bashing contact is made...

Next came the task of trying to move the beast! There was no way in this world I was going to try starting the engine, even if it did by some miracle jump into life, I didn’t want to risk mechanical damage. As it was unable to move under its own power I was left with two options, push it (yeah good luck with that one!), or pull it out. Dave’s father had kindly offered the use of his Transit, so we hitched up a length of rope and began to pull…

Nothing, except the first tantalising whiff of burning clutch. Hmmm! A mechanical seizure had always been a concern of mine. So out came the block’n’tackle and a length of chain. If we were unable to pull it out, maybe we could drag it out. Luckily my father had (many years ago) fitted a steel gatepost and, as was his way, it had been (slightly) over engineered. You could have moored an oil tanker to it with no problem! It made the ideal anchor point for fitting the lifting gear. After several tugs it was obvious that three of the wheels were rotating freely, one however was locked solid. However, after a little bit of swearing and a few more tugs there was a sudden ‘clunk!’ sound and the rear wheel started to turn. I suspect it was a spot of rust between the brake shoe and drum. I hope that’s all it was! I won’t know until I strip it down.

This sudden freedom of movement allowed us to try the Transit again and other than a little bit of 3-point turning (again, all by hand) we had the lanny on the driveway…

Out of the jungle and onto the open road...

Part 2 – The open road

It was such a relief to see it parked on the road. So many things could have conspired to prevent us getting to this point. It was now a (simple) job of towing the lanny to its new home. And it really was simple! Other than a slight metallic rattle from the gearbox it couldn’t have gone smoother…

The only other bit of hard work was pushing it up the drive and into the garage. Dave volunteered to drive, Jim and I pushed. Five minutes and the job was a good’n!

Now starts the hard part, the strip, clean and assemble…

humyo.com on Ubuntu Server… [update]

March 7th, 2011 No comments

A few months have passed and it is about time I resolved a problem I’m having with WebDAV access to humyo. I found myself reinstalling ubuntu a while back and in my rush to get things up and running I skipped the setup of WebDAV and my humyo mount. However time has come to pull my finger out (as it were!)…

If the truth is known, not much has changed since my original post [here]. However humyo look to have been messing with their security settings and the ‘https’ access is failing… Doh!!

Though not ideal, the best solution is to change the ‘https’ settings to ‘http’. Hopefully this problem will be resolved in the not too distant…

humyo.com on Ubuntu Server…

April 12th, 2010 4 comments
humyo.com

humyo.com

Introduction

I have been searching for a secure and reliable online backup service for some time now. There are many providers offering very similar services, and it has always been a balancing act between price, support and security. I have finally opted for one that ticks all the right boxes. I have chosen humyo.com which is located in the UK. As I am using both Windows and Linux systems I needed a service which works well with both. Humyo doesn’t currently have a client application for Linux, however they do support WebDAV which is ideal…

Setup WebDAV

In order to access the storage using WebDAV we need a WebDAV client. I have chosen to use davfs2 due to FUSE support. At the date of this post the latest version of davfs2 is 1.4.1 and installation is very simple.

sudo apt-get install davfs2

However, there are a number of small configuration changes to be made. Again, nothing too complicated. We need to remove the root access limitation and add account credentials. To add credentials first open the following file:

/etc/davfs2/secrets

Then add your account settings:

https://dav.humyo.com    <EMAIL ADDRESS>    "<PASSWORD>"

As Humyo doesn’t support file locking we need to disable it in order to remove the warning every time a file system is mounted. This can be done either on a per-system, per-user level or in a specific configuration file. Consult the mount.davfs manual for information how this can be changed.

man mount.davfs

To disable the file locking, open the davfs2 config file:

/etc/davfs2/davfs2.conf

Change the option:

# use_locks 1

To the following:

use_locks 0

Finally we need to configure the SSL certificate. Execute the following command:

wget -O - "https://support.comodo.com/index.php?_m=downloads&_a=downloadfile&downloaditemid=10" | \
sudo tee /etc/davfs2/certs/addtrust_ab.pem

Update the config file:

/etc/davfs2/davfs2.conf

And add the following line:

servercert /etc/davfs2/certs/addtrust_ab.pem

Mount

We are now ready to create a folder and mount point. I have used a standard path:

sudo mkdir /mnt/humyo

To mount the humyo drive execute the following command:

sudo mount -t davfs https://dav.humyo.com /mnt/humyo/

To allow users to access the mounted folder and remount at boot we need to modify the fstab config file:

/etc/fstab

And add the following line:

https://dav.humyo.com    /mnt/humyo    davfs    user,auto,rw    0    0

If all goes well you should now have access to humyo storage drive…

Installing Asterisk on Ubuntu Server 9.04

July 28th, 2009 5 comments

There are numerous sites and install guides out there detailing how to set-up Asterisk on Ubuntu. However most are either overly complicated, going into far too much detail for the purpose of installation, and others or not detailed enough, missing out steps and descriptions.

Here is my attempt at writing a usable guide…

Note: The text in quotes (like this) can be copied directly to the command line.
If there are multiple lines do them one at a time.

1)  System Set-up

I am assuming you have a fresh installation of Ubuntu 9.04 Server, if not you may already have these packages installed.

Ok, the first thing we need to do is get a few packages:

apt-get install subversion make linux-source kernel-package

We then need to get the “linux-kernel-headers” package. This is done in two steps:

apt-get install linux-kernel-headers

This command should return a message something like this:

...
Package linux-kernel-headers is a virtual package provided by:
 linux-libc-dev 2.6.28-13.45
You should explicitly select one to install.
...

So go ahead and install the suggested package:
(Remember to drop the version info ‘2.6.28-13.45’)

apt-get install linux-libc-dev

Next we need to install “linux-headers”. Again this is in two steps:

apt-get install linux-headers

You should get a message back similar to:

...
Package linux-headers is a virtual package provided by:
 linux-headers-2.6.28-13-server 2.6.28-13.45
 linux-headers-2.6.28-13-generic 2.6.28-13.45
 linux-headers-2.6.28-13 2.6.28-13.45
 linux-headers-2.6.28-3-rt 2.6.28-3.12
 linux-ports-headers-2.6.28-6 2.6.28-6.20
 linux-headers-2.6.28-6-386 2.6.28-6.20
 linux-headers-2.6.28-11-server 2.6.28-11.42
 linux-headers-2.6.28-11-generic 2.6.28-11.42
 linux-headers-2.6.28-11 2.6.28-11.42
You should explicitly select one to install.
...

Install the two “server” packages:

apt-get install linux-headers-2.6.28-13-server
apt-get install linux-headers-2.6.28-11-server

We then need to install a few more packages:

apt-get install libconfig-tiny-perl libcupsimage2 libcups2 libmime-lite-perl libemail-date-format-perl libfile-sync-perl libfreetype6 libspandsp1 libtiff-tools libtiff4 libjpeg62 libmime-types-perl libpaper-utils psutils libpaper1 ncurses-dev libncurses-dev libncurses-gst ncurses-term libnewt-dev libnewt-pic libxml2 libxml2-dev libspandsp-dev libspandsp1

2) Install Asterisk

First move to the correct directory:

cd /usr/src/

Now we can check out the source files:

svn co http://svn.digium.com/svn/asterisk/trunk asterisk
svn co http://svn.digium.com/svn/dahdi/linux/trunk dahdi-kernel
svn co http://svn.digium.com/svn/dahdi/tools/trunk dahdi-tools
svn co http://svn.digium.com/svn/libpri/branches/1.4/ libpri

We can then build them, starting with “libpri”:

cd /usr/src/libpri
make clean
make
make install

Then “DAHDI kernel”:

cd /usr/src/dahdi-kernel
make clean
make
make install

Then “DAHDI tools”:

cd /usr/src/dahdi-tools
make clean
./configure
make
make install
make config

And finaly “Asterisk”:

cd /usr/src/asterisk
make clean
 ./configure
 make
 make install
 make config

That should be it, restart the server and away you go. All you have to do next is configure Asterisk (that is for another post)…

Categories: Asterisk, Linux, Ubuntu Tags: