How to Install and Configure Irssi May 6, 2013How Toirc, Linux
Total Page:16
File Type:pdf, Size:1020Kb
How to install and configure irssi May 6, 2013How Toirc, linux Email irssi 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 1 sudo apt-get 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/ . ascii.pl – Prints text as ASCII art . autoaway.pl – Controls your away status depending on your activity . email_privmsgs.pl – Emails unread private messages to you . nm.pl – Divides nicknames and channel text into two columns 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/ 1 mkdir ~/.irssi/scripts/autorun 2 cd ~/.irssi/scripts/autorun/ 3 ln -s ../ascii.pl ascii.pl 4 ln -s ../autoaway.pl autoaway.pl 5 ln -s ../email_privmsgs.pl email_privmsgs.pl 6 ln -s ../nm.pl nm.pl 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. ~/.irssi/config 1 servers = ( 2 { 3 address = "irc.freenode.net"; 4 chatnet = "freenode"; 5 port = "6667"; 6 autoconnect = "yes"; 7 }, 8 { address = "irc.efnet.org"; chatnet = "EFNet"; port = "6667"; }, 9 { address = "irc.dal.net"; chatnet = "DALnet"; port = "6667"; } 10 ); 11 chatnets = { 12 freenode = { 13 type = "IRC"; 14 autosendcmd = "/msg nickserv ghost mynick mypass;wait 2200;/nick mynick;wait 2000"; 15 max_kicks = "4"; 16 max_msgs = "3"; 17 max_whois = "30"; 18 }; 19 EFNet = { 20 type = "IRC"; 21 max_kicks = "4"; 22 max_msgs = "3"; 23 max_whois = "1"; 24 }; 25 DALnet = { 26 type = "IRC"; 27 max_kicks = "4"; 28 max_msgs = "3"; 29 max_whois = "30"; 30 }; 31 }; 32 channels = ( 33 { name = "#digitalocean"; chatnet = "freenode"; autojoin = "yes"; }, 34 { name = "#multirpg"; chatnet = "freenode"; autojoin = "yes"; } 35 ); 36 settings = { 37 core = { 38 real_name = "John Doe"; 39 user_name = "mynick"; 40 nick = "mynick"; 41 }; 42 "fe-text" = { actlist_sort = "refnum"; }; 43 "fe-common/core" = { 44 autocreate_own_query = "no"; 45 autocreate_query_level = "DCCMSGS"; 46 use_status_window = "no"; 47 use_msgs_window = "no"; 48 theme = "zenbarn"; 49 activity_hide_targets = "#multirpg"; 50 }; 51 "perl/core/scripts" = { neat_maxlength = "10"; }; 52 }; 53 hilights = ( 54 { text = "mynick"; nick = "yes"; word = "yes"; }, 55 { text = "my nick"; nick = "yes"; word = "yes"; } 56 ); 57 ignores = (); 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 http://www.antonfagerberg.com/archive/my-perfect-irssi-setup/ In the cygwin terminal: cd $HOME/.irssi/scripts wget http://scripts.irssi.org/scripts/beep... wget http://www.andrews-corner.org/tmp/din... mkdir $HOME/.irssi/scripts/autorun cd $HOME/.irssi/scripts/autorun ln -s ../beep_beep.pl rename ding_dong.wav to beep_beep.wav (you can use any .wav you want as long as it's named beep_beep.wav, I haven't tried other formats as I'm not sure of what SoX supports.) Install the SoX applet from the CygWin setup.exe. (Use the "search" feature) In IRSSI: /set bell_beeps /set beep_msg_level MSGS DCC DCCMSGS HILIGHT NOTICES /set beep_cmd play -q ~/.irssi/scripts/beep_beep.wav /save You can also right click the IRSSI terminal, go to options, terminal, and enable "Bell flash." It doesn't work for me but maybe it'll work for you git clone -b pu git://gitorious.org/cmus/cmus.git cd cmus ./configure prefix=$HOME/cmus make install Build From Gentoo Repo: emerge -va cmus Help/Usage Page: man cmus .