It’s no secret that IRC is at the heart of all things WordPress and Automattic when it comes to realtime collaboration. I hadn’t used it in years, but am now back to being logged in for substantial portions of my days.
With this in mind, I set out to install the excellent ZNC IRC bouncer on my home Linux server yesterday, coupled with the experimental Colloquy Push module to send relevant messages to my iPhone when not in front of my screen.
Couldn’t have been any easier on Centos 5 (Note: actually, if you happen to have a Mac desktop or server that is powered on all the time, unlike my laptop, Colloquy has a built-in push bouncer that makes things even easier).
Install the Fedora EPEL repo as root:
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
yum install znc znc-extra znc-devel gcc gcc-c++ openssl-devel
Download compile and install the Colloquy Push module:
curl -LO http://github.com/wired/colloquypush/raw/master/znc/colloquy.cpp znc-buildmod colloquy.cpp cp colloquy.so ~/.znc/modules/
Generate an initial configuration file (with SSL and Colloquy push module):
Edit the said configuration file manually to add a flag so that it stops sending push notifications to my phone if I’m already connected to the bouncer: added
-attachedpush 0 to the
LoadModule = colloquy line in
Opened port 6697 (the one I chose, default would be 6667) on my home router.
And that’s pretty much it.
Now instead of connecting to the Automattic IRC server directly, I connect ZNC to it permanently on my server, and connect to the said ZNC bouncer (via SSL) from both my desktop IRC client, as well as the one on my iPhone (over 3G, Edge and/or wifi).
I’ll have to wait until Monday to confirm that the push notifications are working as intended, but beyond this, it’s been stable and awesome since yesterday.
Update: The push notifications are working great!
Update 2: I forgot to mention ZNC also has a very handy web admin module. I strongly advise SSL once more, as well as considering the
-noircport flag combined with a custom port.
Update 3: After a full workweek of use, the little time I spent on installing ZNC has already proven invaluable enough for me to more than recommend it. Push notifications work brilliantly, but most of all, the buffer replay option, is the BEST FEATURE EVER! My IRC user experience has now been changed forever. Awesome!