This is the third installment in a series devoted to irssi. This is going to be quick because it deals with installing scripts to improve irssi's performance and usability.
You can read more about it in the official website http://scripts.irssi.org/
I use irssi inside screen on the command line and I usually connect to it through ssh. Well the paradox here is that I connect to an only text environment from a graphical one. So I would like to have the cake and eat it too. Well, to a certain extent it is possible running scripts. There are hundreds!!! There is even a .deb package for it. Simply:
# apt-get install irssi-scripts
But you do not need to do that if you only want to use several scripts. It is better to download them from the official website and install them by hand.
You can for example use your mouse to swipe from channel to channel just as if you were using your fingers on a touch screen mobile phone (By the way I use irssi-connectbot on my android to do that )
Then you would download mouse.pl into ~/.irssi/scripts/ and in order to load it type:
/script load mouse.pl
In order to unload it:
/script unload mouse.pl
I use several scripts. I'll name some personal favourites: nicklist.pl and proxy_backlog.pl They were written by Wouter Coekaerts Now that I see mouse.pl was written by him as well nice!
nicklist.pl prints a user list on the right (similar to other GUI/CLI clients) In order to use it inside screen, you have to /script load nicklist.pl and then /nicklist screen. Please read more about it on the author's site.
proxy_backlog.pl sends the backlog to any client connecting to the proxy. It is still in the works but it works great if the client connecting is irssi but not so well with other clients. To get the backlog you have to type:
/ctcp -proxy- IRSSIPROXY BACKLOG SEND
Another favourite one:
nickcolor.pl is self-expanatory enough. It prints nicks in different colours.
update: If you want your scripts to be run at startup you have to place them in a directory named autorun:
.irssi/scripts/autorun
Showing posts with label irssi. Show all posts
Showing posts with label irssi. Show all posts
09 June 2011
08 June 2011
Irssi proxy: Irssi to the next level.
Irssi is probably the best irc client there is out there. According to their website, irssi is 'The client of the future'. Being a text mode irc client, which does not seem to be very fashionable nowadays when most people use graphical desktops, this is true for several reasons. One of them is because you can run it 24/7 in a server without a graphical environment and secondly because of its proxy module.
It is difficult to explain the huge advantages of this in a short sentence. But let me try: If you use irssi proxy you'll be able to connect to it from any other computer across the internet and using any other client or clients. Let's say for instance: X-chat.
All this keeping your nick because what you are actually doing is sharing one connection using one or several clients at the same time. You can close your clients connected to the proxy but your irc session will continue as long as your first irssi client and proxy are on.
The first thing that may come to your mind may be that you can access your irssi client running on screen and using ssh. Yes, you sure can. But we are dicussing here the advantages of using irssi proxy. You can still have it running with screen as it does not affect how the proxy works.
Let's get down to it. In order to use irssi proxy you have to compile it with the --with-proxy option. You can read the documentation for more details.
http://www.irssi.org/documentation/proxy
In my case I'm using Debian and it already comes with the proxy module. I already had an instance of irssi running connected to my favourite network and channels. So the only thing I had to do was:
1.- /load proxy
2.- /set irssiproxy_password < mypassword >
3.- /set irssiproxy_ports < ports.you.want.the.proxy.to.listen.to > It works < network >=< port > I use oftc so I wrote oftc=6667. You can specify as many as you want, or need.
Now the proxy is listening to connections on port 6667.
You are not done yet. But the hardest part is over. You can now go to any computer in your local network or connected to the internet. Open your favourite irc client and configure it to connect to your proxy. Your irssi proxy 'acts' as a new server so add it < your.irssi.proxy.address.or.ip > < port > < your.password > It can be any: irssi, xchat, gnome-xchat, chatzilla, weechat...
Since it is a proxy you can connect as many clients as you want. They will all share the same irc session actually running on your original irssi client with the same nick. You could be on a machine with xchat in another one with gnome-xchat. All your conversations from different clients would be one on the server. And your nick would be the same.
The only problem is that on the clients connected to the proxy you will not be able to read the backlog. You can read it anyway connecting to your original irssi client, the one you have activated the proxy from.
Now you're done. Enjoy your chat, and /part if you want to, but there is not the need to /quit anymore using irssi proxy!!!
/part
Update: If you want your proxy module loaded at startup you have to create a file .irssi/startup with this text: load proxy
It is difficult to explain the huge advantages of this in a short sentence. But let me try: If you use irssi proxy you'll be able to connect to it from any other computer across the internet and using any other client or clients. Let's say for instance: X-chat.
All this keeping your nick because what you are actually doing is sharing one connection using one or several clients at the same time. You can close your clients connected to the proxy but your irc session will continue as long as your first irssi client and proxy are on.
The first thing that may come to your mind may be that you can access your irssi client running on screen and using ssh. Yes, you sure can. But we are dicussing here the advantages of using irssi proxy. You can still have it running with screen as it does not affect how the proxy works.
Let's get down to it. In order to use irssi proxy you have to compile it with the --with-proxy option. You can read the documentation for more details.
http://www.irssi.org/documentation/proxy
In my case I'm using Debian and it already comes with the proxy module. I already had an instance of irssi running connected to my favourite network and channels. So the only thing I had to do was:
1.- /load proxy
2.- /set irssiproxy_password < mypassword >
3.- /set irssiproxy_ports < ports.you.want.the.proxy.to.listen.to > It works < network >=< port > I use oftc so I wrote oftc=6667. You can specify as many as you want, or need.
Now the proxy is listening to connections on port 6667.
You are not done yet. But the hardest part is over. You can now go to any computer in your local network or connected to the internet. Open your favourite irc client and configure it to connect to your proxy. Your irssi proxy 'acts' as a new server so add it < your.irssi.proxy.address.or.ip > < port > < your.password > It can be any: irssi, xchat, gnome-xchat, chatzilla, weechat...
Since it is a proxy you can connect as many clients as you want. They will all share the same irc session actually running on your original irssi client with the same nick. You could be on a machine with xchat in another one with gnome-xchat. All your conversations from different clients would be one on the server. And your nick would be the same.
The only problem is that on the clients connected to the proxy you will not be able to read the backlog. You can read it anyway connecting to your original irssi client, the one you have activated the proxy from.
Now you're done. Enjoy your chat, and /part if you want to, but there is not the need to /quit anymore using irssi proxy!!!
/part
Update: If you want your proxy module loaded at startup you have to create a file .irssi/startup with this text: load proxy
07 June 2011
Irssi: Command line irc client
This is the first in a series of posts devoted to irssi, possibly the best irc client there is out there. This series will (at least) include:
Irssi: Command line irc client (An introduction to irssi for new users)
Irssi proxy (Irssi to the next level. For advanced users only)
Irssi scripts (Adding awesome utilities to irssi)
Irssi is possibly the best irc client there is out there. It can be installed and used on a variety of operating systems. Even legacy ones!!! It is a command line irc client, now you're thinking that nowadays it has no future at all. On the contrary!!! That is precisely what makes it outstanding. Let me explain you how I discovered irssi. In order to do that I have to tell you all my irc story. Do not worry it's really short. One or two lines at most. I was not an irc fan untill recently.
-My first irc client was a web-based one. I used it to connect to #kanotix back in ~2006 to ask the team a question and (I imagine) congratulate them.
-My second irc client was X-chat. A great and widely used client (There is no doubt about it) I had used it occasionally before. I first used it seriously in 2011 to connect to #debian-live (You will surely notice the 5 year leap. I told you before, I was not an irc frequent user.
-My third and last one is irssi. I discovered it searching for irc clients apt-cache search irc client
The great thing about command line clients is that you can install them on a web server and keep them connected to your favourite channels 24/7. Does that mean that you chat all day and all night long? No way. It means that by keeping your client up and running you can read the backlog and keep track of what's happening in the channel while you're out there walking the dog or sleeping. On a channel there are people from all time zones. This means that while you sleep other people arrive home from work or when other people wake up you are on your lunch break. Now it's easy to understand this 24/7 thing.
Irssi works very much like any other irc client. Only that whereas on X-chat you click on your mouse to connect to a server on irssi you have to type some commands to do it. It is not my intention to write a list of irssi commands, there's their website for that. I only want to enhance irssi's performance and show it to new users. For example to connect to #debian on oftc you would have to type several commands like for example:
/server add ...
/connect ...
/join #...
... but once you get used to it it's not difficult at all.
I think this is enough for an introduction to irssi. If you want more information you can visit http://www.irssi.org/ or wait for my next installment in the irssi series.
Enjoy!!!
Irssi: Command line irc client (An introduction to irssi for new users)
Irssi proxy (Irssi to the next level. For advanced users only)
Irssi scripts (Adding awesome utilities to irssi)
Irssi is possibly the best irc client there is out there. It can be installed and used on a variety of operating systems. Even legacy ones!!! It is a command line irc client, now you're thinking that nowadays it has no future at all. On the contrary!!! That is precisely what makes it outstanding. Let me explain you how I discovered irssi. In order to do that I have to tell you all my irc story. Do not worry it's really short. One or two lines at most. I was not an irc fan untill recently.
-My first irc client was a web-based one. I used it to connect to #kanotix back in ~2006 to ask the team a question and (I imagine) congratulate them.
-My second irc client was X-chat. A great and widely used client (There is no doubt about it) I had used it occasionally before. I first used it seriously in 2011 to connect to #debian-live (You will surely notice the 5 year leap. I told you before, I was not an irc frequent user.
-My third and last one is irssi. I discovered it searching for irc clients apt-cache search irc client
The great thing about command line clients is that you can install them on a web server and keep them connected to your favourite channels 24/7. Does that mean that you chat all day and all night long? No way. It means that by keeping your client up and running you can read the backlog and keep track of what's happening in the channel while you're out there walking the dog or sleeping. On a channel there are people from all time zones. This means that while you sleep other people arrive home from work or when other people wake up you are on your lunch break. Now it's easy to understand this 24/7 thing.
Irssi works very much like any other irc client. Only that whereas on X-chat you click on your mouse to connect to a server on irssi you have to type some commands to do it. It is not my intention to write a list of irssi commands, there's their website for that. I only want to enhance irssi's performance and show it to new users. For example to connect to #debian on oftc you would have to type several commands like for example:
/server add ...
/connect ...
/join #...
... but once you get used to it it's not difficult at all.
I think this is enough for an introduction to irssi. If you want more information you can visit http://www.irssi.org/ or wait for my next installment in the irssi series.
Enjoy!!!
Subscribe to:
Posts (Atom)