Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Nov 2011
    Location
    Dallas, TX
    Posts
    31
    Thanks
    0
    Thanked 8 Times in 3 Posts
    Rep Power
    10

    Post irssi For Beginners

    Welcome

    If you're reading this it means you have an interest in using irssi, need some help installing irssi or are just browsing. I use irssi daily in order to communicate with different people in IRC Chat Channels. I use irssi because I don't like dealing with loading up a full Graphical Interface, going through the connection process and then joining channels. I let my personal VPS maintain my IRC connection, through the use of screen, and never have to worry about this. Even if my server restarts for some reason, I merely restart screen and it auto starts irssi with all my settings loaded, connections made and channels joined. So, without further ado, lets begin!
    Installation

    If your using a Debian Based Distribution, or a CentOS Based Distribution, installing Irssi is fairly simple. Everything beyond the installation should work the same way, as it all occurs within the irssi command line.
    Debian Based Systems
    Package managers make installing most software a cinch. Using the apt package manager that comes with Debian, you can install irssi with one simple command:
    Code:
    # apt-get install irssi
    CentOS Based Systems
    As with Debian, CentOS has its own Package Manager that makes installing software almost painless. Execute the command below and you're ready to start using irssi on CentOS:
    Code:
    # yum install irssi
    Initial Configuration

    When it comes to using irssi, it is fairly safe to say that it runs perfect out-of-box. However, some people might require a more tailored environment. I happen to be one of those individuals as I use screen for all of my terminal interactions. The advantage of screen is that I am able to preserve my sessions even if my PuTTY connection dies. This means that I will not be logged out of any IRC chat that I may be in, and end users need never know that I left. It also means that I don't have to keep my computer running 100% of the time as my server is maintaining my IRC session for me.
    Auto Connect
    Since screen plays such a crucial role in my every day terminal use, it is possible that I could be logged out of IRC without being aware of it. Therefore, my screen environment is set up to automatically create a new screen and execute the irssi command. However, this isn't of much help as it only fires up the program. The advantage to using screen was to allow me to automatically connect and stay connected. Thus, it stands to reason that I would like for irssi to automatically connect to each of my most visited servers, auto-join my favorite channels and even execute any necessary commands.
    First, you want to add the Network Name to the list of auto-connect networks. This name can be anything you want, but I try to stick with the actual name of the server or service (i.e. Freenode).
    Code:
    (status) /NETWORK ADD -autosendcmd '^nick mynickname;/^msg nickserv identify password' Freenode
    (status) /NETWORK ADD -autosendcmd '^nick mynickname;/^msg nickserv identify password' Slashnet
    Second, you want to add the actual servers to the Network Name. This is fairly easy to do, and you can add multiple servers to each Network. The advantage is if one server is offline it will roll to the second server. Also note that at the end of the following commands you can specify a password, should that server require one, and the 6667 is the default IRC port.
    Code:
    (status) /SERVER ADD -auto -network Freenode irc.freenode.net 6667
    (status) /SERVER ADD -auto -network Slashnet pinky.slashnet.org 6667
    Third, you want to set up the auto join channels. I only auto-join two channels, one for each server, but you are free to add as many as you wish.
    Code:
    (status) /CHANNEL ADD -auto -botcmd "/^msg bot LOGIN <char_name> <password>" #g7 Slashnet
    (status) /CHANNEL ADD -auto #phpfreaks Freenode
    Note that on the first example of /CHANNEL I used the -botcmd flag. This is a special flag that is used to send message to any bot that might exist in the IRC Chat. #g7 is a idle chat room that acts like an RPG. Unlike a normal chat, the less you say the higher level you'll get. It is meant to be observed not interacted with. Therefore, the only way to participate is to send that channels bot a private message telling it that you wish to login, what your username is, and what your secure password is.
    Auto Start In screen
    You probably noticed that I mentioned having screen auto-start irssi for me. This is pretty basic. I'll show you how to do this, but it is recommended you read my tutorial on screen. This will show you how to set up a custom status bar, auto start screens, and a few other useful tips & tricks.
    Code:
    # vim ~/.screenrc
    
    screen -t 1 IRC-Client irssi
    Code:
    # screen -DR
    The above will allow you to edit screen's default configuration. This is loaded every time you run screen. The second line tells screen to open a new window using the -t flag, make sure it is window 1 (be sure you don't have any other auto-attach screens using 1), names it IRC-Client and executes the command irssi.
    Running irssi

    Now that you have irssi installed and configured it is time to run it. Using irssi is pretty simple, especially if you are comfortable using the command line. If you followed my walk-through above, starting irssi is as simple as executing the command at the terminal.
    Code:
    # irssi
    That will automatically load the IRC client and then read in the irssi configuration file. Below are a few other commands that you might find useful while using irssi.
    Code:
    To join a channel:
    /join #channel
    Switch windows where # is 0-9:
    Alt-#
    Query a user:
    /q <nick>
    List users in a channel:
    /n
    Private message a user:
    /m <nick> message
    Display a channels topic:
    /topic
    Perform an action: (e.g. <nick> scratches his nose)
    /me scratches his nose
    To mark yourself as away:
    /away away_message
    Final Configurations

    Themes
    One of the great things about irssi is the ability to use themes. These themes are not the same as you might find in a Graphical Interface, but you can theme your client nonetheless. Some of the common themes might change nick colors depending on their mode, hilight colors and various other aspect.
    In this example we'll use the fear2 theme. This theme has not be altered any from the original theme. First, we need to retrieve the theme and store it in our irssi folder. Run the following from your BASH Terminal:
    Code:
    # wget -P ~/.irssi http://static.quadpoint.org/irssi/fear2.theme
    Next, we need to apply the them using /set. Execute the following command within irssi, where "fear2" is the filename omitting the .theme extension. We'll also save the theme so it loads each time we start irssi.
    Code:
    (status) /set theme fear2
    (status) /save
    That's it! You should now have an irssi client that is different than the default out-of-box look & feel.
    Hilight Window
    Now we're going to split the irssi window. On the bottom portion you'll have actual channels. You can change these using the meta keys to change between channels. The top portion will be sectioned off and used for your hilight box. The items that appear in this box depend on what you set with the /hilight command.
    First, you want to get the hilightwin.pl script. To do so, execute the following in your BASH Terminal:
    Code:
    # wget -P ~/.irssi/scripts http://static.quadpoint.org/irssi/hilightwin.pl
    # cd ~/.irssi/scripts
    # cp hilightwin.pl autorun/
    Now we need to load the script into irssi. Open the irssi client and execute the following:
    Code:
    (status) /run autorun/hilightwin.pl
    Next, create the split window. This is done with the /window command as shown below:
    Code:
    (status) /window new split
    (status) /window name hilight
    (status) /window size 6
    The above commands will create a new split window (as opposed to a "hidden" window, which privmsg, channel, and status windows are by default), call it hilight (so the script knows where to send the information) with a height of 6 lines.
    Now, it is time to determine what will be included in this channel. Unless I have two nicks logged in for some reason, or I'm watching someone elses replies, I'll just tell it to hilight my nickname. This means that if someone says my nickname in a channel not in my view, I'll know. Simply do the following:
    Code:
    (status) /hilight yournickname
    That's it! You now have a hilight window to bring things to your attention more easily.
    Advanced Status Bar
    The default status bar in irssi is unhelpful, to say the least, and becomes an eye-sore since it provides no real user value. Therefore, it is best to go ahead and modify it. First, lets add the user count to it. This will give you an idea of how many people are in a channel. First download the usercount.pl file and then execute the following in irssi:
    Code:
    (status) /statusbar window add usercount
    Next, we want to list the open windows in irssi. Download the adv_windowlist.pl script and load it into irssi using /run autorun/adv_windowlist.pl . Next we'll get rid of the default status bar (known as the act bar) and load up the new status bar. Do the following:
    Code:
    (status) /statusbar window remove act
    (status) /set awl_display_key $Q%K|%n$H$C$S
    (status) /set awl_block -15
    (status) /save
    That's it. You should now have a custom status bar that will be a little bit more useful and a little easier to deal with. Of course you can always get rid of the status bar completely, but why not actually make good use of it?
    Last edited by steelmanronald06; 05-15-2012 at 03:53 PM.
    Visit my MySQL Forum at MySQLExchange.com for MySQL help, articles, tutorials, tips and tricks.

  2. The Following 3 Users Say Thank You to steelmanronald06 For This Useful Post:

    Acronix (04-17-2012),Remp (03-25-2012),Rob (11-15-2011)




  3. #2
    Join Date
    Mar 2012
    Posts
    47
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I'm using Irssi too, but I don't get something: How can I copy and paste?? I just can't figure it out, I already searched the web, but I didn't find anything... (Or I'm just too lame) Is this even possible to do?

  4. #3
    Join Date
    Mar 2012
    Location
    Cardboard box
    Posts
    113
    Thanks
    2
    Thanked 4 Times in 4 Posts
    Rep Power
    2
    Depending on your environment, usually copy can be done by selection of text (no need to press any other key!). Paste is still ctrl + v.
    distrACT -- an open community

  5. The Following User Says Thank You to dale For This Useful Post:

    Remp (03-25-2012)

  6. #4
    Join Date
    Mar 2012
    Posts
    47
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Hmmm... I've never though about that :O Thanks for the info, I'll try it out! (I'm currently on Windows, so that's why I'm not trying it now )

  7. #5
    Join Date
    Jan 2012
    Posts
    124
    Thanks
    0
    Thanked 10 Times in 10 Posts
    Rep Power
    2
    Quote Originally Posted by Remp View Post
    Hmmm... I've never though about that :O Thanks for the info, I'll try it out! (I'm currently on Windows, so that's why I'm not trying it now )
    If you're on Windows and using Putty then yes, just highlighting the text will copy it to your clipboard.
    Information Server Management
    Linux server management, PCI consultation and affordable web hosting.

    Security For Us - Where security works for you

    Providing server security and PCI compliance for individuals and businesses.

  8. #6
    Join Date
    Apr 2012
    Location
    Manila, Philippines
    Posts
    27
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I just started to play around with irssi on my cygwin and I found this thread. Now I know the basic commands on how to go about using this client for IRC. Thank you so much for the share!
    Acronix | Coders Republic
    "In my weakness, I find strength."

  9. #7
    Join Date
    Apr 2012
    Posts
    24
    Thanks
    1
    Thanked 2 Times in 1 Post
    Rep Power
    0
    i prefer weechat over irssi. But using them both as well

  10. #8
    Join Date
    Nov 2011
    Location
    Dallas, TX
    Posts
    31
    Thanks
    0
    Thanked 8 Times in 3 Posts
    Rep Power
    10
    Quote Originally Posted by Remp View Post
    Hmmm... I've never though about that :O Thanks for the info, I'll try it out! (I'm currently on Windows, so that's why I'm not trying it now )
    Also you can, from Windows using PuTTY, do Alt+C and Alt+V. Also if you have something copied to clipboard that you want to paste into putty, simply right clicking your mouse will do it.
    Last edited by steelmanronald06; 05-15-2012 at 03:49 PM.
    Visit my MySQL Forum at MySQLExchange.com for MySQL help, articles, tutorials, tips and tricks.

  11. #9
    Join Date
    Apr 2012
    Posts
    124
    Thanks
    5
    Thanked 1 Time in 1 Post
    Rep Power
    2
    Useful, I think I will have a crack of this later, I always have a crashing or hanging client after 5pm. Are there many crashes with this client? If so what protocols can you recommend?

  12. #10
    Join Date
    Jan 2012
    Posts
    124
    Thanks
    0
    Thanked 10 Times in 10 Posts
    Rep Power
    2
    Quote Originally Posted by Darwin View Post
    Useful, I think I will have a crack of this later, I always have a crashing or hanging client after 5pm. Are there many crashes with this client? If so what protocols can you recommend?
    I use this on my netbook all the time and I have no crashes or hangs. It runs from the CLI and makes everything more smoother.
    Information Server Management
    Linux server management, PCI consultation and affordable web hosting.

    Security For Us - Where security works for you

    Providing server security and PCI compliance for individuals and businesses.

 

 

Similar Threads

  1. Screen - The Path For Beginners
    By steelmanronald06 in forum Linux-Howtos
    Replies: 6
    Last Post: 04-07-2013, 09:58 AM

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
  •  
           








Check out Linux Central for Linux software and other goodies!





» Stats

Members: 3,531
Threads: 3,911
Posts: 9,418
Top Poster: Fred (1,486)
Welcome to our newest member, Losebellyfat03

» Links



Powered by vBadvanced CMPS