My ‘cloud’ IM setup

Posted on August 18th, 2010 by Luke Sheldrick.
Categories: IT / Tech.
Tags: , , , , , , , , , , , , .

18 08 2010

For a long time now, I’ve had a number of different applications I use to connect to various different IM (instant messaging) mediums, such as Irssi for IRC, Pidgin for Jabber/MSN/etc on my desktops/laptops and usually BeeJive on my iPhone when I’m out and about.

This has all ‘kinda’ worked, it hasn’t been the most elegant of solutions, but it did do what I need it to. Until you add something like the iPad to the mix.

The problem I had, was I’d be signed on to say MSN on my MacBook, and then decide I’ve worked enough for the day, so sign off. Then whilst watching TV in the evening, want to send a message to someone, who only uses MSN, so grab my iPad and sign on via BeeJive. Well that kind of works, except, if I forget to sign off BeeJive, it keeps me online on their ‘cloud’, so I can connect back at any time via the iPad, only the iPad though.

If someone was to send me a message when the client is closed on the iPad, sure it sends a push message to it, but no other device. If I go out, and I know someone has sent me a message, I can’t connect to it via BeeJive on the iPhone, as it doesn’t keep them in sync. Same as if I wanted to log in with the MacBook, I can’t see what that message was.

So I decided this doesn’t work how I want and need it to. So I set about designing my own solution. The aim was to set something up running on my infrastructure, at little or no cost (not always easy when you add any iOS devices in the mix), and reliable.

What I came up with, works really well for me, so thought I’d document what I put together.

The server components run on a machine that is always on, the is the core of the solution. The underlying OS I used is a Fedora 14 box (so Fedora rawhide – the development branch). The packages I’ve used are widely available on pretty much every Linux distribution, ports (OS X, *BSD), so the OS here, really doesn’t make much of a difference.

Server side:
Irssi – a cross platform IRC client.
ZNC – a cross platform IRC bouncer.
BitlBee – a cross platform IM gateway for IRC.

Client side:
Colloquy Mobile – iOS IRC client – use this on the iPad and iPhone.
Adium (Beta) – OS X IM client – use the beta version as it supports IRC.
Pidgin – a cross platform IM client – use this on any Windows or Linux machines i happen to be on.

Again the client side really doesn’t matter, just as long as you have something you can connect to an IRC server with, it should be all good.

The setup uses BitlBee to connect to MSN, G-Talk, Jabber, Facebook chat, and pretty much any other IM network you’d want to connect into. BitlBee presents it’s self as a IRC server, and you contact list is all shown as a room. When you chat to someone you do so as you would traditionally. That part worked a treat.

At first I just had Irssi running with the proxy module enabled, this allows you to reconnect into your Irssi session, with a local client, and ‘pose’ as remote session. This worked well, so I just left Irssi running in a remote screen session, then when I wanted to connect in and chat, I would just open say Pidgin locally, and it would connect to all the rooms the Irssi session had.

This was fine, however, Irssi on it’s own doesn’t support playback. What I mean here is, if someone had sent me a DM, Irssi would have it, but when I logged in with Pidgin, Irssi wouldn’t send me a copy of that message, it only forwards new messages. For these kind of features, I’d need to employ a bouncer, not the thuggish type that stand outside nightclubs, but an IRC bouncer.

I tried a few, but settled with ZNC. I should point out here, that when using ZNC, there isn’t really any need to use Irssi in the equation any more, I just kept it as have a few custom scripts, and all my historic logs are there, so decided to keep it.

ZNC will connect to all your favourite IRC networks, keep you online, and when you connect to it with your client, it will replay all the conversations and DMs you missed since you last connected in. this was exactly the functionality I was looking for.

There are also a host of other cool things you can do with ZNC, so I have mine configured to set me away everywhere 5 minutes after my client disconnects. Also if you team colloquy mobile up with ZNC, you can have it push message your iPhone or iPad if you’re mentioned in a chat, or if someone sends you a DM, I have mine set to only do this if there are no other clients connected, else when I’m at computer having a conversation, both my iPhone and iPad have a bit of a push message spasm. This push message function was exactly what I was looking for to replace BeeJive, except this pushes it to all my devices, not just the one that has my account singed in.. neat I thought.

This my no means is the simplest way to set up your MSN, but for if you want all the prerequisites I did, it really works.

The server topology may be a bit complex so have (for my sins) put together a diagram of how it’s set out, along with a few screenshots.

Any questions, please feel free to ask.

IM Blog - Adium IM Blog - Topolgy IM Blog - Colloquy Mobile (iPad) IM Blog - iPhone Push

0 comments.

Web interface and more from your Huawei E5830 (Three MiFi)

Posted on April 11th, 2010 by Luke Sheldrick.
Categories: IT / Tech.
Tags: , , , , , , , .

11 04 2010

Last year I bought a Three MiFi aka the Huawei E5830. The small box of magic has a 3G sim and a battery. It’s basically a wireless router. What this allows you to do is to ‘share’ the 3G connection to 5 wireless devices, as well as an additional one via usb.

So when I’m out, it’s great. If I need to use my netbook, laptop, iPod Touch, or my iPhone or Blackberry if their connection is poor, I can just switch on my MiFi, and as long as there is a decent Three data signal, I’m good to go. It’s a lot more flexible than just having a 3G dongle or using the inbuilt 3G modem on my laptop and netbooks, as I can share it with a number of devices at once, effortlessly.

The problem with it, is it comes with some poorly written software which is windows only app to configure the device, which can only be used when the MiFi is connected via USB. Not ideal? Well no not really. Quite often I’ll let someone I’m with leach off it, and want to set the password to something easy to share, and turn mac filtering off. This is often when I’m out and about, and I only have one windows machine, which is my work laptop, which I’m not in the habit of keeping with me. Also the interface gives no stats as to how much data I’ve used, or any logging.

So I was looking around the interwebs the other night, as I thought there must be a way around this. The previous wireless router (albeit not battery powered but still made by huawei) I had,  did have a web interface at least. Turns out there are a number of different firmwares available if you’re a bit brave, which unlock the good stuff.

First of all have a read of the flashing guide here. The process is pretty straight forward if you follow the instructions. There are two versions of the firmware available out there, one by another network, which brands with their branding, which I wasn’t a fan of. There is also the official firmware (not from three though) which is what I used, and so far am quite happy with. You can get that from here.

Make sure you follow the flashing guide, and if like mine if you flash b0rks half way through and your device then doesn’t turn on, not all is lost. Follow the guide again, and keep trying. For best results use XP. However if you’re going to use Vista/7, then ensure you run the exe as administrator, else it will get half way through the flash, then b0rk, leaving you with a MiFi that wont boot.

Once you’ve updated the firmware it should reboot, and the come back as normal. I noticed that it seemed to turn on a lot faster Also turning on 3G/Data and Wireless seems a lot quicker too. The standard Three utility will still work as before, just connect via USB. However now you’ll have web access to the Mifi, with all the goodies unlocked. So go to 192.168.x.1 where x is the subnet you set, default is 1 (so 192.168.1.1). You’ll get a login screen, the username is admin, as is the password.Then you can go in to all the advanced features. You also get a bandwidth usage which is really nice to have if you’re always running out.

You can also change the config quite a bit, which is awesome. Two things that used to annoy me, that I had to turn it on, then turn wifi on, and then 3G, it should just do it all when I turn it on. Now I can set this… WIN.

Also noticed that it has a mobile (well looks iPod/iPhone friendly) gui too. Point safari to the same IP and you get

So a lot more usable, and I can say goodbye to being stuck to Windows for it. Good luck, let me know how you got on.

6 comments.

A walk down memory lane

Posted on December 28th, 2009 by Luke Sheldrick.
Categories: Personal, Photography.
Tags: .

28 12 2009

I’ve been at Mum’s over Christmas, and is always a bit weird coming back to the area.
I moved away to Southend-on-Sea (Essex) when I was 14, and lived in Essex until very recently.

I was meeting Mum from work today, to go on to visit my Brother for the afternoon. As I’m one of those people who are usually early, and I had a few hours to kill so thought I’d go for a wander.

There was always an area near to where I used to live, that was totally different to the surrounding area, and always somewhere I’d love to escape to. I always dreamt of living in one of the houses, and today was a bit of a shock, to realise, well actually I could if wanted to. At that point, I realised, I’m getting old. It’s like I always wished I’d work in IT, with a nice car…blah blah when I was older, and now I actually do it’s a bit like, well what do I do now? Well I know next time I have to move, which I hope isn’t anytime soon, that I’ll be looking in SE16.


Walk down memory lane

Anyways back to the houses, they’re all in a small bit of Bermandsey, by the Thames, and Greenland Docks, but they have the most picturesque surroundings. Most overlook their own water features or ponds (like the above), and I just find them amazing.

Cygnet (Swan)

Throughout my visit, I was followed by the Cygnet above… maybe he was trying to butter me up, so if I moved into the area, I’d keep him in stock of moulding Hovis.

As old as me?

Amazingly, the car above, I’m sure has been in that same parking space, since I left, when I was 13 (so a few years). Still has up to date TAX, but never looks as though it’s moved. Amazing.

0 comments.

A new view

Posted on October 23rd, 2009 by Luke Sheldrick.
Categories: Personal.
Tags: , .

23 10 2009

So I’ve been really quite lax on updating here, for a number of reasons really or more excuses if I am honest.

There has been a lot of change since I last wrote an entry. I finally bit the bullet and moved back to Central London. I’d been living in Southend-on-Sea since I was 14, but for a number of years worked back in the city, and the commute was just too much in the end.

Purple Tower Bridge

So I am now living in E1, with my new flatmate Andrew, just up the road from where the above was taken. The best thing is, it’s only about a mile walk into the office, so I don’t have to depend on public transport or worry about traffic anymore, which is great. I was cycling for the first month or so, but it seems I had forgotten about crime in London, and someone kindly pinched my bike whilst it was chained up outside the flat, so won’t be cycling for a while.

Living in the city has been great so far, lots of places to go, people to see, and am quite enjoying it so far. Still feel like the new guy in town, as don’t hardly know anyone locally, but that’s just a time thing, so I’m not overly worried. However if you do read this, and are in the area, am free for coffee, beers and bar mitzvahs.

I foresee lots more changes over the next few months, especially at work, however can’t really go into much as there haven’t been many announcements as yet.

Have a heap of stuff I could rabble on about, but I’ll save it for another time. I do hope to keep the blog more regularly updated however I don’t seem to get the same urges anymore since twitter has kicked off. If you wanted a more frequent update, check out www.twitter.com/an0key

1 comment.

Windows 7 RC1, Boot Camp & VMware Fusion – No Networking

Posted on May 7th, 2009 by Luke Sheldrick.
Categories: IT / Tech.
Tags: , , , , , .

7 05 2009

Last week when I was at a festival, my macbook unfortunately ran totally out of space, and there wasn’t much I could delete. With almost 20 gigs of SD cards, the only thing that could really take the chop was my XP boot camp partition.

Cut a long story short, I’ve now got a much bigger drive (500 GB) for my macbook. Along with the release of Windows 7 RC1 being released I thought I’d give it a try with boot camp.

Installing is pretty easy, burn the Microsoft ISO to a DVD, and follow the normal guide. I detest the fact that I need to burn another CD, or use my OS X Install DVD (which I can never find) to get the boot camp drivers. If like me you’d like to download them, I’ve given a link below to where you may find them. I just put them on a usb stick.

Once installed, pretty much everything works under boot camp, the only thing I found that didn’t play was the ‘Reboot into OS X’ I get an error. This isn’t a huge problem, as you can just hold the alt key on boot up to select OS X or Windows.

Once I got all that working, I then wanted to get the same build / partition under VMware fusion. Reading a few guides, the best way is to follow the normal guide for XP, but change it so the guest is set to Windows 2008 Server. Again, all working pretty well once you install VMware Tools.


No Network

The only problem that I did have, is there was no networking for the guest. The NIC just showed as Ethernet Controller. Nothing seemed to get this NIC working, tried manually installing the drivers from the VMWare tools cd, copying from another Windows 7 guest.

The only thing that seemed to fix it, was to shutdown the guest, and add a second NIC, and boot back up. Windows 7 RC1, installs this NIC with no problems at all, and all is working. Intererstingly, it still wont play with the original one. None the less, it’s all working through it’s second, new NIC, so I am happy with that.


Windows 7 with second NIC

Useful links

3 comments.

1 of 24123451020...»»