Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On my home server I use irssi in proxy mode to keep track of irc. From any of my desktops I then just point xchat to my home server.

What I want to be able to do is have irssi start in my user session on the server and start in proxy mode. I've read everything I can find about this but had no joy running it, can anyone help please.

share|improve this question

from Irssi Documentation

Irssi proxy usage:

First you'll need to have the proxy module installed, either configure irssi with --with-proxy and do make install, or manually:

cd src/irc/proxy
  mkdir ~/.irssi/modules
  cp .libs/ ~/.irssi/modules/

In irssi, say:

 /LOAD proxy

You really should set some password for the proxy with:

/SET irssiproxy_password secret

Then you'll need to configure the ports/ircnets the proxy listens in, something like:

/SET irssiproxy_ports ircnet=2777 efnet=2778 freenode=2779

There we have 3 different irc networks answering in 3 ports. Note that you'll have to make the correct /IRCNET ADD and /SERVER ADD commands to make it work properly.

hope thats helps you.

share|improve this answer
If he is already using it in proxy mode he most probably already did all this. The question is how to have it started automatically. – Gerald Schneider Aug 2 '13 at 9:51

The first hit on google provides all information needed:

Add this line to /etc/rc.local (using administrator privileges):

sudo -H -u USER screen -d -m -S irssi-proxy irssi

Replace USER with your username. Explanation of the command:

sudo ; runs command as user
-H ; sets the home directory to the users
-u ; sets the command to act as USER
screen ; the command sudo is executing
-d -m ; starts screen detached. This solves a lot of issues later.
-S ; starts the screen session with the irssi-proxy ID.
irssi ; the command we're launching

You will have to install screen to make this work (screen is a very nice little tool to run command line applications in the background).

If you want to get your irssi in the foreground later you can do that by running screen -r irssi-proxy in a terminal.

Alternatively you can use crontab to have it run as boot (saves you from changing system files in /etc):

Run crontab -e as your User. Add this line:

@reboot screen -d -m -S irssi-proxy irssi

It will basically have the same affect as the entry in rc.local.

share|improve this answer
This is pretty close to what I have tried the issue I have is this start irssi but not the proxy server element you still have to go in and manually start the proxy bit. I'll keep digging but thanks for the help guys. – Davmor2 Aug 13 '13 at 10:40
Did you see this line in the blog post? You want to proxy to load my default so edit ~/.irssi/startup and addthe line "/LOAD PROXY". – Gerald Schneider Aug 13 '13 at 12:31
Yeap doesn't seem to trigger anything for me which is where my frustration stems from. I might try digging into it some more this weekend and see if I can't sort it. – Davmor2 Aug 19 '13 at 18:15

Finally found the answer.

vim .irssi/startup

Then add the line

LOAD proxy

This now loads the proxy correctly \o/

share|improve this answer

Starting irssi in rc.local does not work. The Interface is not up. Starting in cron also does not work. The interface is not up. You have to start irssi in /etc/network/if-up.d/ with a little Script.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.