Actions

IRC: ZNC with Irssi and tmux Configuration

From falz.net

Revision as of 10:33, 30 May 2025 by Falz (talk | contribs) (Created page with "'''Work in progress''' === Description === This is for folks generally proficient at a unix terminal. It is so that you can connect to a terminal via ssh and reconnect to your IRC session without actually 'leaving' any IRC networks. You will always appear online to those on the IRC network, and can choose to look at / log into your terminal when you desire. This example connects to the libera IRC network. === Applications === * [https://irssi.org/ irssi] - An IRC cli...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Work in progress

Description

This is for folks generally proficient at a unix terminal. It is so that you can connect to a terminal via ssh and reconnect to your IRC session without actually 'leaving' any IRC networks.

You will always appear online to those on the IRC network, and can choose to look at / log into your terminal when you desire.

This example connects to the libera IRC network.

Applications

  • irssi - An IRC client that runs in a terminal. It will connect to ZNC in this use case.
  • ZNC - IRC "bouncer". This actually connects to IRC networks and will run as a service on your server.
  • Tmux - Terminal Multiplexer. This lets you run many applications in one terminal. In this use case we'll run many irssi IRC clients, each of which connects to a ZNC session and hence a single IRC network
  • Mosh - Mobile Shell. Auto 'roams' and reconnects to your shell session across various networks. If your laptop goes to sleep and wakes up, it will reconnect.


Configuration

Ubuntu / Debian example. Install some packages:

apt-get install mosh irssi znc tmux

ZNC

  • Configure as a service (todo). "myzncuser" is auth between the IRC client (irssi) and ZNC, it is NOT your actual IRC username.


irssi

launch irssi and issue some commands

  • Add network called 'libera-znc'.
/network add libera-znc -nick myircuser -alternate_nick myircuser_ -user -autosendcmd '^MSG NickServ identify <ircpass>' myzncuser-libera


  • Add a server to this newly created network
/server add -network libera-znc -auto -4 localhost 6667 myzncuser-libera/libera:<zncpass>