{"id":308,"date":"2011-12-10T20:31:21","date_gmt":"2011-12-10T19:31:21","guid":{"rendered":"https:\/\/www.dont-panic.cc\/capi\/?p=308"},"modified":"2011-12-10T20:31:21","modified_gmt":"2011-12-10T19:31:21","slug":"a-geeks-unified-instant-messaging-setup","status":"publish","type":"post","link":"https:\/\/www.dont-panic.cc\/capi\/2011\/12\/10\/a-geeks-unified-instant-messaging-setup\/","title":{"rendered":"A geek&#8217;s unified instant messaging setup"},"content":{"rendered":"<p>Today I want to present to you<strong> my unified instant messaging setup<\/strong>, which enables me to communicate from any of my computers and also any of my mobile devices (<a href=\"http:\/\/en.wikipedia.org\/wiki\/Android_(operating_system)\">Android<\/a>, <a href=\"http:\/\/en.wikipedia.org\/wiki\/IPhone\">iPhone<\/a>, <a href=\"http:\/\/en.wikipedia.org\/wiki\/IPad\">iPad<\/a>). Goal for me was to provide a setup where I have single client per platform with a centralized history I can search if I need to. I want one &#8211; and only one &#8211; client for my communication. I only care about text instant messages, actually; I hardly ever use voice or video services when communicating online. I really like the asynchronous nature of instant messages. At the moment, I have integrated <strong>IRC<\/strong>, <strong>ICQ<\/strong>, <strong>Google-Talk<\/strong>\/<strong>Jabber<\/strong>\/<strong>XMPP<\/strong> (which could potentially also include <strong>Facebook<\/strong>), and <strong>Skype<\/strong>. The current setup also gives me push notifications to my iOS devices on messages directed at me. Today&#8217;s posting is only intended to give you a very high level overview. I will add detailed descriptions of individual setups of the individual components in later posts.<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-319\" title=\"The Unified Instant Messaging Schema\" src=\"https:\/\/www.dont-panic.cc\/capi\/wp-content\/uploads\/2011\/12\/im-schema.png\" alt=\"The Unified Instant Messaging Schema\" width=\"498\" height=\"309\" srcset=\"https:\/\/www.dont-panic.cc\/capi\/wp-content\/uploads\/2011\/12\/im-schema.png 498w, https:\/\/www.dont-panic.cc\/capi\/wp-content\/uploads\/2011\/12\/im-schema-e1351034020323-150x92.png 150w, https:\/\/www.dont-panic.cc\/capi\/wp-content\/uploads\/2011\/12\/im-schema-300x186.png 300w\" sizes=\"auto, (max-width: 498px) 85vw, 498px\" \/><\/p>\n<p><!--more--><\/p>\n<p>Core of my setup is <a href=\"http:\/\/en.wikipedia.org\/wiki\/Internet_Relay_Chat\">IRC<\/a>. All my instant communication is mapped via IRC. Pretty old, but really well-working technology. Main reason here is that many of my friends and\u00a0colleagues\u00a0also communicate via IRC. I use <strong><a href=\"http:\/\/irssi.org\/\">irssi<\/a><\/strong>, which is a console client that can run within a <a href=\"http:\/\/www.gnu.org\/s\/screen\/\">screen<\/a> session so it continues to run even when I am not in front of a terminal. The <a href=\"http:\/\/scripts.irssi.org\/html\/screen_away.pl.html\">screen_away plugin<\/a> takes care of setting the away status when screen is detached.<\/p>\n<p>To connect my non-IRC services, I use <strong><a href=\"http:\/\/www.bitlbee.org\/\">BitlBee<\/a><\/strong>, which is an IRC proxy to connect to non-IRC protocols. BitlBee supports all my external protocols (<a href=\"http:\/\/en.wikipedia.org\/wiki\/ICQ\">ICQ<\/a> &amp; <a href=\"http:\/\/en.wikipedia.org\/wiki\/Extensible_Messaging_and_Presence_Protocol\">XMPP<\/a>, that is). It also supports Skype via the\u00a0fabulous\u00a0<strong><a href=\"http:\/\/vmiklos.github.com\/bitlbee-skype\/\">bitlbee-skype<\/a><\/strong> plugin by\u00a0Miklos Vajna. It requires a running Skype instance within a VNC server, though, but this is fine for me.<\/p>\n<p>irssi is considered core of the setup, as it also provides the the <a href=\"http:\/\/irssi.org\/documentation\/proxy\">irssi_proxy<\/a> module, which enables <em>other<\/em>\u00a0IRC clients to connect to this irssi instance, and when writing via this connection this is treated as if it has been entered directly into the irssi terminal. This mode is essential for my &#8220;centralized history \/ log file&#8221; requirement.<\/p>\n<p>As connecting to the irssi_proxy module will only provide you with messages sent to you after you have connected, another layer is added: <strong><a href=\"http:\/\/wiki.znc.in\/ZNC\">ZNC<\/a><\/strong>. I launch this IRC <a href=\"http:\/\/en.wikipedia.org\/wiki\/BNC_(software)\">bouncer<\/a> at the same machine as my irssi screen session. It connects to the irssi_proxy module and provides me with history if one of my external IRC clients connects, i.e. I am sent the history since the last time I connected to the ZNC.<\/p>\n<p>My mobile devices connect to the ZNC bouncer via SSL whenever I decide to launch one of the clients. Due to my settings, I only get new messages. ZNC can be configured to send you the last n messages though, regardless where you last picked off, if you prefer that. But for me, it is primarily the &#8220;new&#8221; stuff that matters in communication (but this is of course personal taste).<\/p>\n<p>On my iOS devices (iPhone, iPad) I use the <strong><a href=\"http:\/\/colloquy.mobi\/\">Colloquy Mobile<\/a><\/strong> client. This is a clone of the GPL-ed <a href=\"http:\/\/colloquy.info\/\">Colloquy<\/a> IRC client for OSX. In the App Store, it costs a few bucks, but I payed happily as this helps them in the development. There is a very nice plugin for ZNC, <strong><a href=\"https:\/\/github.com\/wired\/colloquypush\/tree\/master\/znc\">colloquypush<\/a><\/strong>, that enables push messages to Colloquy via Colloquy&#8217;s and Apple&#8217;s push servers. I have added a few patches to this open-source module, dealing with privacy (you can configure it to skip content of the messages when pushing) for sensitive communication channels (e.g. my work channel). Also I added an option that push messages are only sent while in away mode. This is where screen_away gets handy, as I only receive push messages when I am not attached to the screen session (or deliberately set myself to &#8220;away&#8221; mode in irssi). You can get colloquypush from the &#8220;official&#8221; maintainer&#8217;s <a href=\"https:\/\/github.com\/wired\/colloquypush\/tree\/master\/znc\">github repository<\/a> or <a href=\"https:\/\/github.com\/capi\/colloquypush\">mine<\/a> (my &#8220;wip&#8221; branch is a few commits behind, as I am working on the Android improvements at the moment, see below).<\/p>\n<p>On Android I use <strong><a href=\"http:\/\/www.andchat.net\/\">AndChat<\/a><\/strong>, which is a free (as in beer) client, but not open-source. Unfortunately there is no push functionality available at the moment, but I am working on an extension of the ZNC colloquypush module to work with a notification app I am currently developing (no estimated time of arrival, if ever).<\/p>\n<p>For me, the setup provides the following benefits:<\/p>\n<ul>\n<li>Centralized approach with a single client which is &#8220;always on&#8221;.<\/li>\n<li>Single location for all logfiles, so I can search them using standard Linux tools.<\/li>\n<li>irssi is <a href=\"http:\/\/en.wikipedia.org\/wiki\/Ncurses\">ncurses<\/a> and I <em>love<\/em>\u00a0ncurses interfaces. I get nostalgic about the old terminals.<\/li>\n<li>I can easily connect from any computer via SSH and attach to the screen session.<\/li>\n<li>I can catch up while on the go via my mobile devices.<\/li>\n<li>I receive notifications if anyone of my friends demands my attention (at least on iOS).<\/li>\n<li>Native clients on the mobile devices, they simply feel smoother than connecting to an SSH session from your slow GPRS connection.<\/li>\n<\/ul>\n<div>The following points I am currently not so satisfied with, but hope to improve in the future (in decreasing order of annoyance to me):<\/div>\n<div>\n<ul>\n<li>No notifications on my Android mobile phone.<\/li>\n<li>ZNC sends me everything since I last connected, even if I have already seen it from within irssi. I suppose writing a plugin to ZNC to clear the buffer when switching into &#8220;away&#8221; mode could fix this and should not be too hard.<\/li>\n<li>No way to search the history from the mobile devices. Centralized history is only available to me when I am connected to the screen session via SSH.<\/li>\n<li>No real &#8220;status message&#8221; support from within Bitlbee. This is not really important to me, as I stopped reading status messages quite some time ago.<\/li>\n<li>Skype must be running within a VNC window. Not sure if this will ever be fixable. Let&#8217;s hope Microsoft won&#8217;t discontinue Skype support for Linux.<\/li>\n<li>SMS has not yet been integrated into this communication schema. But I have some ideas here (but they will take even longer than the Android notification issue).<\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Today I want to present to you my unified instant messaging setup, which enables me to communicate from any of my computers and also any of my mobile devices (Android, iPhone, iPad). Goal for me was to provide a setup where I have single client per platform with a centralized history I can search if &hellip; <a href=\"https:\/\/www.dont-panic.cc\/capi\/2011\/12\/10\/a-geeks-unified-instant-messaging-setup\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;A geek&#8217;s unified instant messaging setup&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,3],"tags":[217,215,219,216,218],"class_list":["post-308","post","type-post","status-publish","format-standard","hentry","category-computer","category-internet","tag-bitlbee","tag-communication","tag-geek","tag-irssi","tag-znc"],"_links":{"self":[{"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/posts\/308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/comments?post=308"}],"version-history":[{"count":13,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/posts\/308\/revisions"}],"predecessor-version":[{"id":324,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/posts\/308\/revisions\/324"}],"wp:attachment":[{"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/media?parent=308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/categories?post=308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/tags?post=308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}