Archive for February, 2004

Gallery is alive again 0

I reinstated my gallery from the old PHP Nuke site I used to run. I’ll probably make a link from the side too, making it easy to find.

Speaking of galleries, Adam’s found the perfect use for mobile telephones with cameras.

In the heat of the night 0

After our huge volleyball win we weren’t too tired, and with the weather, it made sleeping impossible. Last night it didnt’ drop below 30 degrees!

At about midnight, I had the great idea of going and sitting on the grass in the memorial garden across the road from us. The sprinklers had been on recently, and the grass was nice and cool. But that wasn’t all. Steve and myself dragged my TV and DVD player along too, and ran several large extension cords back to the house. This gave us power, and entertainment.

We watched Gladiator, and the world go by. Most cars slowed down to see what we were doing, and the security guard came past. He didn’t have a problem with it (and why should he?), plus a few guys on bikes, and a jogger at about 2:30AM.

The frivolity ended at around 3:00AM when the movie finished, and we lugged the system back inside. Sleeping wasn’t any easier - it had dropped by 0.3 of a degree int he 3 hours we were outside. I need an airconditioner.

Thinkpad keyboard lag fix 0

IBM have a fix for the keyboard lag problem my R40 has. When using Putty to connect to a remote machine, the keyboard would lag behind with input. Now, I have this documented, so when the reinstall happens, I know where to look ;)

SSH auto-authentication Comments Off

For work I had to work out a way to SSH from one Debian machine to another. I knew that it was possible, and here’s how.

Both of these machines are running ssh2 (OpenSSH) so if we wanted to connect from Lifeline (local) to Firefly (remote) we’d need to do the following:

First, generate a public/private DSA key pair on Lifeline.

mlambie@lifeline:~$ ssh-keygen -t dsa -f ~/.ssh/id_dsa

When you are asked for a passphrase, leave it empty. Now send the public key to Firefly.

mlambie@lifeline:~$ cd .ssh/
mlambie@lifeline:~/.ssh$ scp id_dsa.pub mlambie@firefly:~/.ssh

Next, log in to Firefly and add the public key to the list of authorized keys.

mlambie@lifeline:~/.ssh$ ssh mlambie@firefly
mlambie@firefly:~$ cd .ssh/
mlambie@firefly:~/.ssh$ cat id_dsa.pub >> authorized_keys2
mlambie@firefly:~/.ssh$ chmod 640 authorized_keys2
mlambie@firefly:~/.ssh$ rm -f id_dsa.pub

Note that the filename is authorized_keys2, not authorized_keys.

And that’s about it, now when you’re logged in to Lifeline, you can SSH to Firefly and not be prompted for a password (which is really handy for rsync backup scripts).

Update: 23/10/2005 12:07PM
It’s been a while, but I use this a lot now. It can better be performed using Debian/Ubuntu’s “ssh-copy-id” command, like this:

mlambie@stormshadow:~$ ssh-copy-id -i ~/.ssh/id_dsa.pub mlambie@machine

Go team Matt!

Update: 26/06/2006 11:59AM
On the Mac I don’t have ssh-copy-id, so it’s best to use:

mlambie@stormshadow:~$ cat .ssh/id_dsa.pub | ssh hostname 'cat >> .ssh/authorized_keys2'

Update: 31/03/2008 12:55PM
An even better solution is to make a bash function that does this for you.

mlambie@stormshadow:~$ cat ~/.profile
#
# Your previous .profile  (if any) is saved as .profile.mpsaved
# Setting the path for MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export DISPLAY=:0.0

function authme {
  ssh $1 'cat >>.ssh/authorized_keys2' < ~/.ssh/id_dsa.pub
} 

mlambie@stormshadow:~$ source ~/.profile
mlambie@stormshadow:~$ authme servername

Our romantic rendezvous 3

Maggie and myself spent last night at Rendezvous Observation City thanks to Sandi (Maggie’s boss). It was a Christmas bonus that we decided to cash in on, as it was our 18 month anniversary on the 10th of February. Also, with Valentine’s Day tomorrow, staying on Thursday night meant we were in the middle of the two celebrations.

Maggie got off work at 2:00PM and was at my house for about 3:00PM. Richie came over and we chatted fora few minutes (he has a new lady in his life now ;) before leaving for the hotel. We checked in, and went straight down to the pool for half an hour.

We got fish and chips and ate them on our balcony, overlooking the pool, and beyond that, the beach. With the sun going down and the lights coming up, it was really romantic. Later we hit the spa, and spent the whole night chilling out. As usual, we talked heaps, mostly about getting a place together in the middle of the year. Yay! We went for a walk around Scarborough, and along the beach, and I got some glass in my foot. I got one piece out, and didn’t notice the other until this morning.

This morning we had breakfast at the hotel (again, thanks to Sandi) and then we went to the chemist to get some surgery tools to remove the glass in my foot. I got this cool digging stick (it is called a splinter removal officially) that has two sharp pointed ends, one at an angle. I didn’t manage to get the other piece of glass out (I don’t think, it may have been removed, and it’s the cut in my foot that hurts now) but did succeed in making a hole in my foot.

We then took our bags to the car and spent about 30 minutes in the pool and spa, before leaving.

Maggie has an appointment with her optometrist this afternoon, so I’ll see her after that, when we go to Kristy and Chad’s for dinner tonight.

« Previous PageNext Page »