Page 1 of 6 123 ... LastLast
Results 1 to 10 of 59

Thread: [Howto] Setup irssi and join #ubuntu on Freenode

  1. #1
    Join Date
    Dec 2006
    Beans
    6,979

    [Howto] Setup irssi and join #ubuntu on Freenode

    I am both a student and a huge fan of the Internet Relay Chat (IRC) program irssi. This brief guide aims to give just a starting point for any like me who are keen to explore this amazing program. I shall do this by demonstrating how to install irssi and some scripts, connect to Freenode with SSL and then access the #ubuntu channel. The guide has most recently been tested with irssi 0.8.15 and Natty Narwhal but should work, perhaps with some small modifications, for most Ubuntu releases.

    Getting started ...

    One important point in this guide is that where you are required to fill in your own details for such things as passwords, email addresses etc I will mark the area this way: <password>. Change this for your own details and omit the brackets in all cases. First let us download some required files from the repository using the following single command:

    Code:
    sudo apt-get -y install irssi irssi-scripts ca-certificates \
    libcrypt-blowfish-perl libcrypt-dh-perl libcrypt-openssl-bignum-perl \
    libmath-bigint-gmp-perl
    This will only be a small download, now start the program as follows:

    Code:
    irssi
    You should then see the following screen:

    Code:
    10:24 -!- Irssi: Looks like this is the first time you've run irssi.
    10:24 -!- Irssi: This is just a reminder that you really should go read
    10:24 -!- Irssi: startup-HOWTO if you haven't already. You can find it
    10:24 -!- Irssi: and more irssi beginner info at http://www.irssi.org
    10:24 -!- Irssi: 
    10:24 -!- Irssi: For the truly impatient people who don't like any automatic
    10:24 -!- Irssi: window creation or closing, just type: /MANUAL-WINDOWS
    10:24 -!- Irssi: 
    10:24 -!- Irssi: For Ubuntu specific help type "/connect irc.ubuntu.com"
    10:24 -!- Irssi: and "/join #ubuntu" (without the quotes) and ask your
    10:24 -!- Irssi: question.
    Well that never makes a great first impression does it? Never fear we are now going to make things a little friendlier:

    Connecting to Freenode and #ubuntu ...

    No doubt like most people (including me) you will ignore the polite note in this opening window encouraging you to first read some of the irssi documentation. At some stage I would suggest that this would be an excellent idea and perhaps sooner rather than later. So to start we need to set a nick, usually a pithy and fairly cool one, and your real name, don't forget to use your own details for <nick> and <Real Name>:

    Code:
    /set nick <nick> 
    /set real_name <Real Name>
    Then manually connect to Freenode as follows:

    Code:
    /connect irc.freenode.net 8001
    This connects and then to manually join #ubuntu simply run the following:

    Code:
    /join #ubuntu
    And there you are in the thick of it, a very busy channel and a little chaotic too. For the moment we will leave this channel:

    Code:
    /leave Put your witty parting shot here!!
    This closes the active channel but leaves us still connected to Freenode so we can complete the setup.

    Register with Freenode ...

    It is a very good idea to formally register your nick with Freenode and it is easy enough to do. Don't forget to substitute your own details here:

    Code:
    /msg nickserv REGISTER <password> <email>
    NickServ will send an email to your email address with copy and paste instructions to verify you nick details. So your email address is not obvious to all users (although this setting is usually the default) then issue the following command:

    Code:
    /msg NickServ SET HIDEMAIL ON
    It is not mandatory but often a good idea to create an alternate nick and then group this with your account. So while logged on with your primary nick run the following:

    Code:
    /nick <alternate_nick> 
    /msg nickserv group
    Finally check your setup with the following command:

    Code:
    /msg nickserv info
    And that is the basics of our dealings with Freenode registration, although I would suggest that after 4 weeks you go to #freenode and ask for an unaffiliated cloak to shield your IP details from the curious. But now to automate the irssi connection and both connect with SSL and secure your password exchange with SASL.

    Automatically connect with SSL/SASL ...

    For the most secure connection it is best to connect with SSL and then shield the password verification with SASL. First to setup the Freenode sasl perl script with the following single command:

    Code:
    mkdir -pv $HOME/.irssi/scripts/autorun && cd $HOME/.irssi/scripts && \
    wget http://freenode.net/sasl/cap_sasl.pl && \
    cd autorun && ln -sv ../cap_sasl.pl
    Now load the script manually and add in the required settings:

    Code:
    /script load cap_sasl.pl
    /sasl set Freenode <primary-nick> <password> DH-BLOWFISH
    /sasl save
    /save
    Finally set irssi to automatically make an SSL connection to Freenode on startup and then automatically log on to #ubuntu:

    Code:
    /network add Freenode
    /server add -auto -ssl -ssl_verify -ssl_capath /etc/ssl/certs -network Freenode irc.freenode.net 7000
    /channel add -auto #ubuntu Freenode
    /save
    /exit
    Perhaps you should also cross your fingers when you restart irssi? If all is well you will see +Zi in the bar at the base of the irssi window and in the irssi connection dialogue you should also see something like the following:

    Code:
    10:51 -!- Irssi: SASL authentication successful
    If all is not well retrace your steps and see if you can spot a problem. If however all is well close your chat windows with /leave, close irssi using the /exit command and continue on as we add a few scripts to make life a little more pleasant with this great irc application.

    Add a few more scripts ...

    I will now demonstrate how to automatically load scripts both from the Ubuntu script pack as well as from external sources. Two great scripts are 'scriptassist.pl', which enables easy installation and upgrade of scripts, and 'mouse.pl' which allows some use of mouse in irssi. These are part of the Ubuntu script pack and can be automatically loaded using the following single command:

    Code:
    cd $HOME/.irssi/scripts/autorun && \
    ln -sv /usr/share/irssi/scripts/scriptassist.pl && \
    ln -sv /usr/share/irssi/scripts/mouse.pl
    The syntax for scriptassist can be seen by typing in '/scriptassist help' in the opening irssi window. Plenty more scripts to explore in this script pack! I demonstrate also how to download a couple of external scripts. 'adv_windowlist.pl' allows easier navigation of multiple channel windows while 'hack-whois-in-current-window.pl' shows the '/whois' window in the current window. The following is a single command:

    Code:
    cd $HOME/.irssi/scripts && \
    wget http://anti.teamidiot.de/static/nei/*/Code/Irssi/adv_windowlist.pl && \
    wget http://dgl.cx/irssi/hack-whois-in-current-window.pl && \
    cd autorun && \
    ln -sv ../adv_windowlist.pl && \
    ln -sv ../hack-whois-in-current-window.pl
    Details of well-written scripts can be seen by opening them with your favourite text editor and following the instructions printed within. Plenty of scripts to explore and perhaps you might even consider writing a few yourself?

    And in conclusion ...

    Experienced users of irssi and IRC know that I have omitted many, many areas that enhance the experience of using this great program. However hopefully I have furnished a strong starting point for inexperienced users who will subsequently explore the program a little more fully. Please feel free to ask questions in this thread if there are problems or suggestions for improvement with this guide. And remember "Have Fun!!".

    Andrew Strong
    March 18, 2011
    Last edited by andrew.46; June 11th, 2011 at 07:52 AM.
    You think that's air you're breathing now?

  2. #2
    Join Date
    Mar 2008
    Beans
    85

    Re: [Howto] Setup irssi and join #ubuntu on Freenode

    Is there a blow fish for this?

  3. #3
    Join Date
    Dec 2006
    Beans
    6,979

    Re: [Howto] Setup irssi and join #ubuntu on Freenode

    Hi Vorhees,

    Quote Originally Posted by Voorhees1979 View Post
    Is there a blow fish for this?
    Lots of discussion here:

    http://fish.sekure.us/forum/viewforum.php?f=3

    but this is a little beyond the scope of this short guide.

    All the best,

    Andrew
    You think that's air you're breathing now?

  4. #4
    Join Date
    Nov 2006
    Beans
    21
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: [Howto] Setup irssi and join #ubuntu on Freenode

    great guide andrew ty very much

  5. #5
    Join Date
    Dec 2006
    Beans
    6,979

    Re: [Howto] Setup irssi and join #ubuntu on Freenode

    Hi Lividity,

    Quote Originally Posted by Lividity View Post
    great guide andrew ty very much
    It is my pleasure! I hope to see you on irc .

    Andrew
    You think that's air you're breathing now?

  6. #6
    Join Date
    Mar 2007
    Location
    Denver, CO
    Beans
    7,554
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: [Howto] Setup irssi and join #ubuntu on Freenode

    Do not like #ubuntu, but other forums are great.

  7. #7
    Join Date
    Dec 2006
    Beans
    6,979

    Re: [Howto] Setup irssi and join #ubuntu on Freenode

    Hi Voorhees,

    Quote Originally Posted by Voorhees1979 View Post
    Is there a blow fish for this?
    Looks like a script has appeared on the irssi website called 'bl**job.pl' (my apologies for the name where I have substituted '**' for 'ow'!):

    Crypt IRC communication with blowfish encryption. Supports public #channels, !channels, +channel, querys and dcc chat. Roadmap for Version 1.0.0 is to get some feedback and cleanup. Join #blowtest on freenode (irc.debian.org) to get latest stuff available. Note to users upgrading from versions prior to 0.8.5: The blowjob.keys format has changed.
    Would this be what you are after?

    Andrew

  8. #8
    Join Date
    May 2006
    Beans
    3

    Re: [Howto] Setup irssi and join #ubuntu on Freenode

    Thanks for the post, been a while since i used irssi and your post really helped.

  9. #9
    Join Date
    Dec 2006
    Beans
    6,979

    Re: [Howto] Setup irssi and join #ubuntu on Freenode

    Hi ayeizajedi,

    Quote Originally Posted by ayeizajedi View Post
    Thanks for the post, been a while since i used irssi and your post really helped.
    My pleasure .

    Andrew

  10. #10
    Join Date
    Dec 2006
    Beans
    6,979

    Re: [Howto] Setup irssi and join #ubuntu on Freenode

    Having been prompted by a pleasant gentleman on #ubuntu-irc I modified my own irssi setup to include an alternate nick and then grouped the nicks. Subsequently altered this guide to include these details .

    Andrew
    You think that's air you're breathing now?

Page 1 of 6 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •