Hack and / - What Really IRCs Me: Instant Messaging
To me, IRC is the ideal interface for quick communication with my friends. I keep a console IRC session (irssi) running on my server at all times within screen. With that setup, I constantly can lurk in all of the channels I want to follow and reconnect to the session, no matter what machine I am using. Because many of my friends use IRC, it's pretty easy to stay in touch. I can chat with them daily, and if they need to tell me something when I'm not around, they can leave me a private message, and I will see it the next time I'm in front of my computer. To me, the IRC interface is best both for group and private chats—so much so that I prefer it to instant messaging.
Of course, not all of my friends use IRC. Even among those who do, they don't all prefer to do all of their communication there. So, in addition to IRC, I maintain instant-messaging accounts. This means to keep in touch with everyone, I need to keep both an IRC and an instant-messaging program open. Plus, unless I set up a text-based IM client on my server, I'd have to fire up a local client on whatever computer I'm in front of, which isn't possible when I'm using someone else's computer. On top of that, some of my friends have replaced both chat and IM with Twitter, which means yet another account and yet another program open on my desktop—well, it would in theory at least. Instead, I've discovered a few programs that let me roll everything into IRC sessions, so sending someone an IM is as simple as an IRC private message, and everyone's Twitter feeds become just another comment in an IRC channel. In this column, I discuss how to access your IM accounts from within IRC, and in a follow-up column, I will talk about how to access Twitter as well, because they each require different programs.
The program that makes IM possible within IRC is an IM-to-IRC gateway called Bitlbee (www.bitlbee.org). Basically, Bitlbee sets up an IRC server on your local machine that you can connect to like any other IRC server you might already use. Once you connect to the server, you can join the #bitlbee channel and authenticate with the bot inside. Then, you can configure Bitlbee with your Jabber, MSN, Yahoo or Oscar (AIM/ICQ) accounts. Once you are set up, when your friends are on-line, they join the channel, and when you talk to them or private-message them inside the IRC channel, it translates it to an instant message.
Bitlbee should be packaged for most major distributions, so you can install it like any other program. Otherwise, just pull down and compile the source code from the main project page. Bitlbee uses inetd, so once you connect to the IRC port, inetd automatically spawns a Bitlbee process. Depending on your distribution, the post-install script may or may not set up the line in inetd.conf automatically. If it doesn't, add the following line to /etc/inetd.conf:
6667 stream tcp nowait bitlbee /usr/sbin/tcpd /usr/sbin/bitlbee
Once Bitlbee is installed, go to your IRC program and connect to a new server, but in place of the typical hostname, connect to localhost. Once you connect to the server, join the #bitlbee channel. Bitlbee includes a built-in help program. Simply type help to see a list of help topics, or type help followed by a particular Bitlbee bot command to see help for that command. In addition to these help topics, Bitlbee also includes a quickstart topic (type help quickstart) that will walk you through setting up your Bitlbee account and adding your IM accounts (I cover these same steps below).
The first thing you need to do before you can IM with Bitlbee is register an account with the server so that it can save all of your IM account settings, contacts and other information, and password-protect it. Type:
register password
and replace password with the password you want to use. The next time you connect to Bitlbee, you must type:
identify password
Once you are registered, you can start adding IM accounts. The account command lets you add or remove accounts from Bitlbee, and the syntax for adding an account is:
account add protocol username password server
The protocol above should be replaced with jabber, msn, yahoo or oscar, depending on which chat protocol your IM account uses. Then, list your user name and password for that IM account. The final server field is needed only for the oscar protocol, so it knows whether to connect to the AOL Instant Messenger server (login.oscar.aol.com) or the ICQ server (login.icq.com). The rest of the protocols don't need it. So, for instance, if I had an AOL Instant Messenger account called test with a password of mypassword, I would add it with the following command:
account add oscar test mypassword login.oscar.aol.com
After you have added all of your IM accounts, type:
account on
Kyle Rankin is a systems architect; and the author of DevOps Troubleshooting, The Official Ubuntu Server Book, Knoppix Hacks, Knoppix Pocket Reference, Linux Multimedia Hacks, and Ubuntu Hacks.
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Sponsored by AMD
If you already use virtualized infrastructure, you are well on your way to leveraging the power of the cloud. Virtualization offers the promise of limitless resources, but how do you manage that scalability when your DevOps team doesn’t scale? In today’s hypercompetitive markets, fast results can make a difference between leading the pack vs. obsolescence. Organizations need more benefits from cloud computing than just raw resources. They need agility, flexibility, convenience, ROI, and control.
Stackato private Platform-as-a-Service technology from ActiveState extends your private cloud infrastructure by creating a private PaaS to provide on-demand availability, flexibility, control, and ultimately, faster time-to-market for your enterprise.
Sponsored by ActiveState
| Non-Linux FOSS: libnotify, OS X Style | Jun 18, 2013 |
| Containers—Not Virtual Machines—Are the Future Cloud | Jun 17, 2013 |
| Lock-Free Multi-Producer Multi-Consumer Queue on Ring Buffer | Jun 12, 2013 |
| Weechat, Irssi's Little Brother | Jun 11, 2013 |
| One Tail Just Isn't Enough | Jun 07, 2013 |
| Introduction to MapReduce with Hadoop on Linux | Jun 05, 2013 |
- Containers—Not Virtual Machines—Are the Future Cloud
- Non-Linux FOSS: libnotify, OS X Style
- Linux Systems Administrator
- Validate an E-Mail Address with PHP, the Right Way
- Lock-Free Multi-Producer Multi-Consumer Queue on Ring Buffer
- Senior Perl Developer
- Technical Support Rep
- UX Designer
- Introduction to MapReduce with Hadoop on Linux
- RSS Feeds
- One advantage with VMs
6 min 34 sec ago - about info
39 min 43 sec ago - info
40 min 42 sec ago - info
41 min 36 sec ago - info
43 min 41 sec ago - info
44 min 45 sec ago - abut info
46 min 26 sec ago - info
47 min 25 sec ago - info
48 min 57 sec ago - info
49 min 50 sec ago
Featured Jobs
| Linux Systems Administrator | Houston and Austin, Texas | Host Gator |
| Senior Perl Developer | Austin, Texas | Host Gator |
| Technical Support Rep | Houston and Austin, Texas | Host Gator |
| UX Designer | Austin, Texas | Host Gator |
| Web & UI Developer (JavaScript & j Query) | Austin, Texas | Host Gator |
Free Webinar: Hadoop
How to Build an Optimal Hadoop Cluster to Store and Maintain Unlimited Amounts of Data Using Microservers
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Some of key questions to be discussed are:
- What is the “typical” Hadoop cluster and what should be installed on the different machine types?
- Why should you consider the typical workload patterns when making your hardware decisions?
- Are all microservers created equal for Hadoop deployments?
- How do I plan for expansion if I require more compute, memory, storage or networking?




Comments
This Article
I am just wondering what language this article is written in!
It's pirate. The whole site
It's pirate. The whole site is transformed for the day. It'll be back to normal tomorrow. http://www.talklikeapirate.com/
Katherine Druckman is webmistress at LinuxJournal.com. You might find her on Twitter or at the Southwest Drupal Summit
Some tips
Hey guys. Here are some more helpful commands. Hope it will come in handy (At least I've used them the first days of my bitlbee'in)
- More commands
"help commands" will give you a list of commands.
- If a buddy requests authorization you will be asked a yes/no question in &bitlbee/#bitlbee .. Simply write yes or no in the main channel.
rename buddies simply:
rename name1 name2
- This command sets typing notices that continually sends CTCP [TYPING] when the client you're chatting with is writing or editing text.
set typing_notice on
Also some other important settings for automatic establishing of connections to your accounts:
set auto_reconnect true
set auto_connect true
- Buddylist .. Same as /names, but more detailed.
blist
- This command gives a list of unanswered questions (Which are mainly authorization requests)
qlist
- A good extensive reference for bitlbee commands:
http://infectious.cc/archive/oldsite/howtos/bitlbee-user-guide.html
irssi bitlbee scripts
http://the-timing.nl/stuff/irssi-bitlbee/
Here are some irssi bitlbee scripts that might help you guys out.
The collection consists of:
Auto_away.pl
Server specific autoaway with two away states
BitlBee_nick_change.pl
Screenname change in query and &bitlbee
BitlBee_join_notice.pl
Statusbar item and query notification
BitlBee_blist.pl
Grep from your buddylist
BitlBee_typing_notice.pl
Show and send typing notices
BitlBee_tab_completion.pl
Completion of BitlBee commands
irssi and bitlbee
Great article Kyle. Is it possible to have irssi automatically join the #bitlbee channel? I tried
/CHANNEL ADD -auto #bitlbeebut it complains of missing parameters. It probably wants the network but there is no network.
Regards,
Doug McComber
Re: irssi and bitlbee
I guess you need to do:
/SERVER ADD -auto -network localhost localhost 6667
to connect automatically to localhost (bitlbee) on startup.