I am using the irssi client for IRC chat, and I would like to know how to configure the ~/.irssi/config
file so that I can put in my username and password (I have a registered nickname in the IRC).
Also, I'd like to know if I can configure it to open multiple terminals (as in gnome-terminal windows) to connect to different channels like #ubuntu, #ubuntu-in, etc. Or should I alias the command with different parameters so as to connect to different channels from different terminals?
You've asked a lot of questions in one, but I'll help you with as many of them as I can.
First, you need to add your IRC server of choice - fire up irssi, and type the following:
/server add -auto -network Freenode irc.freenode.net 6667
That will add the Freenode IRC network to your IRSSI config, and will automatically connect when you run
irssi
./network add -nick <your-nick> Freenode
That will add your nick to the new
Freenode
network, and will automatically use that nick whenever connecting to the network./channel add -auto #ubuntu Freenode
That will make you join
#ubuntu
on Freenode everytime you run irssi.Assuming you have your nick registered, you can do this to identify automatically:
/network add -autosendcmd "/msg nickserv identify password ;wait 2000" Freenode
You can switch between channels with Alt-2, Alt-3, etc, with each channel being Alt-Number
If you're interested, here is my
~/.irrsi/config
file:If you're someone who likes to add all sorts of cool functionality, then you should take a look at the irssi scripts site - there are all sorts of little gems there.
If you start
irssi
in Ubuntu, it creates a default configuration file in~/.irssi/config
already containing your data taken from the system (nickname and ident set to your username and realname to your full name).There is the connection to the Freenode network already set up. Just write
/connect Ubuntu
,/join #ubuntu
, and repeat for other favorite channels.You can switch between channels with Alt+2, Alt+3, etc.
You can change nickname with
/nick nitstorm
once connected to the server, or change globally, executing the command/set nick nitstorm
, and then/save
to permanently modify your configuration file. The same way, you can changereal_name
anduser_name
with the command/set
.You can add autojoin channels with:
(See
/help channel
for help.)You could also modify the configuration file by hand, but it is better to execute commands to modify it inside irssi, and then save the configuration.
You terminate your session with the command
/quit
.