How to install and configure irssi

irssiirssi is a command-line IRC client.  When properly configured, it can automatically reconnect and re-identify to channels without any user intervention.  It is ideal for use within a reliable server shell, where your session is maintained between uses.

Step 1 – Install irssi

Not using aptitude?  Download from irssi.org

Step 2 – Install a theme

I use the Zenbarn theme.  Save this theme (or another theme of your preference) in  ~/.irssi/

Step 3 – Install scripts

I use the following scripts.  Scripts are placed in  ~/.irssi/scripts/

Open any scripts you decide to use with a text editor and read the first few lines.  Some scripts require configuration to be used properly.  For example, you will need to set your email address to have private messages emailed to you.

To start a script automatically, create a symbolic link to it in  ~/.irssi/scripts/autorun/

 

If you prefer to start your scripts manually, or irssi is already running and you don’t want to restart it, use  /script load scriptname.pl

Step 4 – Configure irssi

The following is my  .irssi/config  file.  Add your commonly used networks and enter your personal information.  If you decided against zenbarn, set the theme attribute to the your custom theme.

Step 5 – Start irssi within a screen session

screen keeps a shell running even after you’ve disconnected from it.  If you’re running irssi locally, you may not need to use screen.  Enter the single command  screen and read any information it prints.  Once you are prompted for a command, start irssi by entering  irssi 

 

There is already an excellent guide on using irssi with screen, so I will only go over the basics below.

  • Detach from the screen and return to your normal shell with Control+A, then press D
  • Re-attach to the running screen with  screen -rd
  • Switch the currently active channel with Alt+(Channel #)

3 thoughts on “How to install and configure irssi”

Leave a Reply