Firstly, you need to setup Growl correctly on the computer you’ll be recieving the growls. (Usually the one you ssh from)
You’ll need to have both the first options set, and Net::Growl needs a password, so set something simple. After these have been set, you’ll need to restart Growl before it’ll work.
Next you’ll need to install the script. Put it in the ~/.irssi/scripts dir of the user which you log in as on the remote machine. If you like, you can also link it to ~/.irssi/scripts/autorun by usingln ~/.irssi/scripts/growl-net.pl ~/.irssi/scripts/autorun/growl-net.pl. Next, load the script with ‘/script load [autorun/]growl-net’ . You should see some output like: -!- Irssi: >> growl-net 0.01 loaded (/growl-net for help)
19:11 -!- Irssi: >> growl-net 0.03b1 loaded (/growl-net for help. /gn-test to test.)
19:11 -!- Irssi: Loaded script growl_net
Next you’ll need to set Growl-net’s variables. Since this script was based on the original growl.pl script that came with Growl, I have used some of it’s variables. This means that you can set the behaviour of both scripts, if you use irssi both locally and remotely on the same machine, you can get growl’s when you want. The settings are growl_show_privmsg, growl_show_hilight and growl_show_notify. They will let you decide if you want growls on private messages, hilights and notify’s respectively. These are all boolean values, so they’re either ON or OFF (Use /set growl_show_privmsg OFF to surn off growls for PM’s).
Now you’ll need to set the growl_net_* settings. These are growl_net_pass, growl_net_client and growl_net_server.
growl_net_pass is the password you have set on your local machine above.
growl_net_client is the address to your local machine. If Irssi is running on your local machine, that can be left as ‘localhost’. If irssi is running remotely on another Mac, then you can use it’s Bonjour name, found under sharing prefs in system prefs. It will be the name shown there, with .local added to the end. (G5.local in this case).
growlnetserver is a name that you can give your remote host. It’s only used for registration with Growl. I have irssi running on our OpenBSD router, so I set this to OpenBSD. When the script registers with Growl, it says ‘irssi OpenBSD registered’, useful if you use more than one host. To keep this blank, use /set growlnetserver (That’s growlnetserver with two spaces after it)
Now reload the script with /script load growl-net, and hopefully you should see the script register with Growl on your local machine. If not, make sure the settings are correct: growlnetclient should be the machine you are at, and growlnet_server should be the machine irssi is running on. Also make sure the password is correct.
Mail (will not be published) (required)