:date: 2013-01-25 07:49 .. index:: tech, irssi, bitlbee .. seealso:: :ref:`2011-irc_client_irssi` .. _`2013-bitlbee_and_irssi`: Bitlbee and IRSSI ================= .. image:: /_images/images/gallery/2013/2013-placeholder/logo-bitlbee.png :alt: Bitlbee :align: right :scale: 100 Occasionally I *have* to use a `Jabber `__ Server and therefore also a Jabber client. Usually I'm fine with the default client. That might be `Empathy `__ or `Pidgin `__ (if necessary). With Pidgin I never got really close. It seems too much for the little job it has, too much clicke-de-click here and there. It's probably just a prejudice. Empathy on the other hand really made me really see red. Having a conversation open with one person made it impossible to open another conversation, just because the window didn't appear for doing that. That might also be a `Gnome3 `__ issue, but frankly: I don't care. I'm still running my :ref:`IRSSI <2011-irc_client_irssi>` instance from where I stay in contact with the rest of the world. While looking for a jabber client on the command-line, I stumble about `mcabber `__. I remember having already tested this client once, but got rid of it after a while. Not really use-able for me. Another thing I found was `Bitlbee `__. Bitlbee basically sets itself between another service and acts as a local `IRC `__ server and is therefore reachable via IRSSI as well. I setup an instance on my local computer, added an account and suddenly all the contacts from the Jabber account appeared in my IRC and are reachable from there as well. How sweet is that? Yes, it's a bit *techi* and nerdy, but it's working like a charm. I think I'll not switch back if there aren't any major flaws somewhere hidden... -------- Installation ------------ .. code:: bash $ sudo apt-get install bitlbee Setup ----- * Start the server .. code:: bash $ sudo /etc/init.d/bitlbee start * Connect to your IRSSI session as usual. From inside IRSSI you open another connection beside the existing ones to the now running *bitblee* irc server on your system: .. code:: bash irssi> /connect localhost Using `/connect` rather than `/server` will keep your existing connections and not close them. So you can be connected to *Bitlbee* and e.g. Freenode at the same time. * Setup access on your *Bitlbee* server and secure it with a password. In the control channel (`&bitlbee`), execute the following (do the same for all following commands): .. code:: bash irssi> register Bitlbee will associate this password with your current nick. Then, when you connect in the future, you just have to identify, either using the identify command or standard identification methods for IRC, and you will have access to your accounts. * Setup an account within *Bitlbee* to connect to your jabber server: .. code:: bash irssi> account add irssi>/OPER (Adding the password) * To set SSL (find the account number with “account list”): .. code:: bash irssi> account set ssl true * To force TLS (the default is try, which falls back to plain text if not available): .. code:: bash irssi> account set tls true * Save your settings .. code:: bash irssi> save *Example* .. code:: bash Jabber account add jabber jt@jabber.no /OPER account 0 set server jabber.no[::ssl] Depending on the jabber server, the port and the encryption used you have to alter the parameter a bit. * Fire up the account By default, Bitlbee will connect to all accounts that have the auto_connect account property set to 1. However, to get started now, do the following: .. code:: bash irssi> account on Usage ----- It took me a while to figure out how I actually could leave a conversation I've opened or that has been opened. Basically it's a mix between IRSSI, IRC and Bitlbee commands: .. code:: bash /WC => Leaving a conversation &bitlbee> blist => listing all contact &bitlbee> blist online => listing all online contacts &bitlbee> set private true => opening new windows for opening contacts &bitlbee> set strip_html true => strips HTML from clients that use it &bitlbee> account 0 set tag => set a tag on an account /msg => starting a conversation to /names => List all users in the channel. &biltbee> account 0 set away DND => Set status to away on account 0 while leaving the other untouched. alt-[1-0], alt-[q-o] => Switching through the channels. /window => Switchting directly into a conversation. /window move left => moving window to the left Backup ------ You have to take a backup of the following folders: * `/etc/bitlbee` * `/var/lib/bitlbee` You also need to take care of the permissions of these folders. Without the correct permissions the next *identity $PASSWORD* will be quitted with "No account available" (or something similar). Links ----- * `Bitlbee trick `__ * `Bitlbee Website `__