Difference between revisions of "Irssi"

From ArchWiki
Jump to: navigation, search
m (Add interwiki link to french wiki)
m (fixed formatting)
(One intermediate revision by the same user not shown)
Line 110: Line 110:
 
* If you don't want to use CPAN; http://search.cpan.org/~jdporter/Lingua-Ispell-0.07/lib/Lingua/Ispell.pm  
 
* If you don't want to use CPAN; http://search.cpan.org/~jdporter/Lingua-Ispell-0.07/lib/Lingua/Ispell.pm  
 
* Also, [[bauerbill]] can install archlinux packages directly from CPAN:
 
* Also, [[bauerbill]] can install archlinux packages directly from CPAN:
 +
{{Warning|''Bauerbill'' development has been officially discontinued: its latest version does not work with ''pacman>=3.5''. See [https://bbs.archlinux.org/viewtopic.php?id=115660].}}
 
  $ sudo bauerbill -S --cpan perl-lingua-ispell
 
  $ sudo bauerbill -S --cpan perl-lingua-ispell
 
*In irssi
 
*In irssi

Revision as of 22:37, 25 March 2011

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

irssi is a modular, ncurses based IRC (Internet Relay Chat) client for UNIX systems. It also supports SILC and ICB protocols via plugins.

Installation

Simply run as root:

# pacman -S irssi

Configuration

  • Configuration is done by editing the config file located at ~/.irssi/config. If you wish you could start irssi with an alternate config file like this:
$ irssi --config=FILE
  • You can also at anytime use /save to save your current configuration to the config file.
  • You can save the location of your currently opened windows by entering
/layout save
  • It sometimes might happen that umlauts are not correctly displayed. To fix this problem you have to set the right encoding with the following commands directly in irssi.
/set recode_autodetect_utf8 ON 
/set recode_fallback CP1252
/save
Auto-connect to #archlinux on irssi startup

start irssi and then type the following in it:

/server add -auto -network fn irc.freenode.net

fn is for freenode but you can choose some different word e.g foo. Now to automatically identify your nick for a given password, type:

/network add -nick user123 -autosendcmd "/^msg nickserv IDENTIFY *******" fn

where user123 is the nick with which you registered to nickserv and ******* is the password for that nick, replace fn with the word that you used in the first command (e.g foo) if that is the case.

Note: Password will be visible when you type it and also it can be seen in ~/.irssi/config, so you can omit this step if you want to.
/channel add -auto #archlinux fn
/channel add -auto #archlinux-offtopic fn
/save
/quit
set irssi not to show joins,parts,quits

In order to ignore showing of joining,leaving,quiting of users for all channels type the following in irssi:

/ignore * joins
/ignore * parts
/ignore * quits
/save

Basic Usage

Note: This assumes you already know IRC and have used other clients in the past.
  • Running irssi from a terminal.
$ irssi
  • Many people prefer to use screen in conjunction with irssi. Some scripts like the nicklist.pl script are dependent on screen. I'd take this opportunity to start learning screen if you don't know it already.


  • There are 3 connection-related commands:
/server
/s

These change the server of the current network.

/connect
/c

These open a new connection to a server. This is what you want to use in order to connect to multiple servers simultaneously (Ctrl+X switches between multiple servers).

/disconnect
/dc

These close the current connection to a server.


  • ALT+(1-0,q-p,etc) changes the currently active window. Now that you can switch windows, here are a few other window management commands:
/window 1
/w 1

Takes you to the first window. Windows go from are numbered across the top of your keyboard (1-0) and then start on the next row down (q-p).

/window close
/wc

These close the current window.

/window move 1
/w move 1

These move the current window to the first window position.

/save layouts

This will save the current window positions for the next time you start irssi.


The only other miscellaneous commands you really need to know are:

/set

This shows a list of all your current settings.

/help

This provides a helpful description/explanation for whatever parameter provided.

/alias

Lets you create your own shortcuts.

Installing a Script

  • Let's install the spell checking script
  • In a terminal
# pacman -S ispell
$ mkdir -p ~/.irssi/scripts/autorun
$ cd ~/.irssi/scripts
$ wget http://scripts.irssi.org/scripts/spell.pl .
# perl -MCPAN -e 'install Lingua::Ispell' # make sure your are root
$ irssi
Warning: Bauerbill development has been officially discontinued: its latest version does not work with pacman>=3.5. See [1].
$ sudo bauerbill -S --cpan perl-lingua-ispell
  • In irssi
/script load spell.pl
  • If it worked, it should look like this:
- - Irssi: Loaded script spell
/bind meta-s /_spellcheck
  • Alt + s will now spell check your current line.
  • If you want to autorun the script when you start irssi, just link the script into the autorun folder.
$ cd ~/.irssi/scripts/autorun
$ ln -s ../spell.pl .

Proxy

To use irssi behind a HTTP proxy, the following commands are required:

/SET use_proxy ON
/SET proxy_address <Proxy host address>
/SET proxy_port <Proxy port>
/SET -clear proxy_string
/SET proxy_string_after conn %s %d
/EVAL SET proxy_string CONNECT %s:%d HTTP/1.0\n\n

irssi should then alter its config file correspondingly; if the proxy is not required, just set use_proxy to OFF.

Should the proxy require a password, try:

/SET proxy_password your_pass

Otherwise:

/SET -clear proxy_password
Note: SSL behind a proxy will fail with these settings.

Additional Information