Tuesday, February 10, 2009

HowTo: Chat on IRC via Terminal

Photobucket
Well, I know that several blokes have already written on how to chat on irc via the terminal, I am doing this to entertain myself.

Yes.

There are several applications you could use to do the trick. But I would only be discussing: irssi 

Description as found on: irssi homepage

Irssi is a terminal based IRC client for UNIX systems. It also supports SILC and ICB protocols via plugins.


Joost Vunderink wrote a summary of the most beneficial Irssi features.
# Autologging

Irssi will automatically log any channels, queries or special windows that you want. The logfiles will be separated per IRC network, and even log rotation is supported. Log file formats, themes and destination directories can be easily configured with the Irssi log settings.

# Formats and themes

Theming is a popular item in todays desktop enviroments, it's an easy yet powerful way to customize your Irssi client's look and feel. Irssi's formatting is modular which means you can just change the appearance of the objects and all items contaning that object will change into that format.

# Configurable keybindings

This feature is a piece of art; it allows you to modify the default keybindings and create your own so you can customize your client. If these keybindings are tuned, you can switch through the windows in no time, execute commands and even complete objects with these bindings.

# Paste detection

If you have ever pasted a bunchload of text into a wrong channel, you know how hard the consequences can be. Irssi tries to detect when you are pasting large amounts of text, by looking at the speed that characters are entered; if such pasting is detected [TAB]-characters are sent as-is instead of being tab-completed and eventually ending up in a wrong destination window. When Irssi detects such a pasting, you will get the option to either abort the paste or execute the paste, this way you have total control of the pasting.








irssi irc client


# Perl scripting

Perl is one of the most used programming languages around the globe and integrating Perl into applications means flexible and powerful scripting capabilities. The entire behavior and appearence of Irssi can be modified within these Perl scripts. Irssi provides a script archive with many contributed Irssi scripts which provide both useful extra features and the required assistance to make your own scripts.

# Irssi-proxy

This is much more than just a bouncer, Irssi-proxy is a plugin which allows to bind a port to each IRC server you are connected to. This means that instead of having to remember to identify with a password, you can just connect to the Irssi-proxy with a server password. The copy of Irssi running the proxy works just as a normal client which you can use, but you can also connect one or more clients to it to share the connections. Using Irssi as a proxy has the major advantage of Irssi's power as an IRC client. You never have to worry about losing your connection to IRC. Even if you don't want to use Issi as a client, I can strongly recommend it as a proxy because you can just connect to it with any IRC client by just connecting to the specified port instead of SSH-ing to the machine that your Irssi is running on.

# Upgrades

Upgrading your Irssi client to the latest version can be easily done without losing the connections to the IRC servers and without restarting Irssi. You can use the UPGRADE command to load the new Irssi binary and restoring your connections.


Installation on Ubuntu

To install on Ubuntu simply do the following:

1. Install via the apt-get command

dan@ubuntu$ sudo apt-get install -y irssi
password:

2. Run on terminal

dan@ubuntu$ irssi

3.  To connect to a server (for example freenode) type:

/connect irc.freenode.org

4. To join a channel (like #ubuntu) type:

/join #ubuntu

5. To switch between 'screens' (for example from The Message of the Day Screen to #ubuntu) press:

ALT+RIGHT ARROW KEY or ALT+LEFT ARROW KEY

6. To change your nick name, simple type:

/nick yournewnickname

7* For more information type:

dan@ubuntu$ man irssi 

8* To make irssi beep whenever someone types your nick do this:

/set bell_beeps ON 
/set beep_msg_level MSGS NOTICES DCC DCCMSGS HILIGHT

From: http://pookey.co.uk/blog/archives/2-Irssi-making-it-beep-when-your-nick-is-mentioned.html

9* For further information go and visit their documentation web page:

http://www.irssi.org/documentation/manual

4 comments:

  1. Hey, good post. Iwrote a howto irssi install guide thatmight help beginners.

    ReplyDelete
  2. Thanks :) Gee My Blogroll is getting too crowded ^_^

    ReplyDelete
  3. Really nice howto! Easy to understand :]

    ReplyDelete

EventId's in Nostr - from CGPT4

The mathematical operation used to derive the event.id in your getSignedEvent function is the SHA-256 hash function, applied to a string rep...