Connecting to Freenode using irssi+sasl on Debian

If you get the "You need to identify via SASL to use this server" error when connecting to Freenode, try the following.

In shell:

cd \~/.irssi/scripts/
wget http://freenode.net/sasl/cap\_sasl.pl
sudo aptitude install libcrypt-openssl-bignum-perl libcrypt-dh-perl
libcrypt-blowfish-perl

In irssi (see "Connecting to freenode using Tor: SASL" on Freenode blog for details):

/sasl set <network> <username> <password> <mechanism>