Archive for February, 2009

cygwin putty cthelper x64

February 26, 2009

I really like using putty and cygwin. I use this special version of putty, which uses a program called “cthelper.exe” to speak to cygwin.

I used to ssh into my windows box, but now I just bring up these putty windows.

Anyway, I wanted to do the same thing on x64 windows 2008. I usually just drop the special putty.exe and the cthelper.exe into c:\windows\system32 but that didn’t work.

Note that running cthelper.exe directly always produces an error message like:

cthelper.exe - Unable To Locate Component
This application has failed to start because cygwin1.dll was not found. Re-installing the application may fix this problem.

This is normal and not specific to x64.

Anyway, the solution is to put cthelper.exe into the c:\windows\SysWoW64 directory. And cygwin putty works again.

Oh, and it turns out that you’re probably well off putting the special cygwin-aware putty.exe into the c:\windows\SysWoW64 directory too.

Advertisements

Join LA Fitness with Tesco Clubcard vouchers

February 26, 2009

I’ve just joined LA fitness (in Adelaide Street, in Belfast) with Tesco clubcard vouchers.

We had over a hundred pounds worth of Tesco vouchers and didn’t know what to do with them. We didn’t want to just spend them in Tesco: that would be a terrible waste. But we didn’t really know what else to do with them. Then we discovered that LA Fitness apparently accept them.

I had to convert them on Tesco’s website. They sent me out four times the amount – £470 – in deal tokens. Lois in LA Fitness in Adelaide Street was very helpful and figured out what needed to be done. There was a bit of to-ing and fro-ing, but in the end I had to pay another six pounds or so to get gym membership for a year.

I’ve been a couple of times so far. It seems like a good enough gym. Certainly given that it’s going to cost me about £120 for a year. (Although apparently it’s another £4 a month extra if you want them to provide towels. Fair enough. I’m sure there’ll be other extras too.)

How to get up in the morning

February 26, 2009

If you’re the sort of person who finds it hard to get up in the morning, then have kids: getting up will no longer be a problem. It’ll be an incredible pain, but it won’ t be a problem.

Nowadays, I only set an alarm clock when I have to be somewhere by a certain time, and when I can’t depend on the kids waking me on time. Conversely, I really resent having to set an alarm: sometimes the kids sleep in (rarely!) or forget to wake me up, and having a bit of a lie-in (maybe until after eight!!!) is a very pleasant surprise.

SSH into vmware ESXi boxes…

February 26, 2009

It’s possible to enable ssh on ESXi boxes. It’ll break your warranty, but since you almost definitely don’t pay for ESXi or, indeed, have much of a warranty, you probably don’t care.

You have to hook up a keyboard and monitor to the physical machine when it’s up and running, do alt-f1 to bring up a virtual console. Then type: unsupported

There’ll be no feedback as you type it. Oh, press return afterwards. Now you can login as root with your root password.

Once you’re in, edit the /etc/inetd.conf file to enable ssh. (Remove the hash sign – “pound sign” to americans – from the beginning of the line.) You can use vi to edit the file, use j to move down a line (k to move back up), and x to delete a character. Delete the hash.

Then restart inetd (send it a HUP signal)

~ # ps auxw | grep inetd
1567 1567 busybox              inetd
~ # kill -HUP 1567
~ # ps auxw | grep inetd
1567 1567 busybox              inetd
~ #

Now you should be able to ssh into your ESXi box.

(There’s not a lot you can do there, mind, but at least you can explore the filesystem. And it seems that you can copy vmdk files around.)