What I’ve tried, What I want
Skip to the next section if you just care about the end result. In the past, I’ve had my remote Irssi client send UDP Growl packets to my static home IP that were then forwarded to the broadcast address on the local network. This worked great and allowed me to get Growl notifications on which ever computer I happened to be sitting at. These days, I’m always on my laptop, even when sitting at another computer (Teleport for the mega win).
I wanted a solution that would allow me to receive Growl notifications without having to forward any ports and no matter what the public IP for my laptop may be. I use App::PersistentSSH to maintain a persistent SSH control master connection to my Linode so the ideal solution uses a reverse tunnel over this connection to get the notifications too my laptop.
My Current Solution
–ssh_opts -R 127.0.0.1:22992:127.0.0.1:22to my App::PersistentSSH command line. This connects localhost:22992 on my Linode to port 22 on my laptop.
- local-growl.pl – an Irssi script that uses growlnotify to send growl notifications
- growlnotify.pl – an ssh proxy for growlnotify, passes it’s arguments to growlnotify on a remote system via ssh
Configuration for local-growl.pl is via Irssi’s in built settings, type
/set growl to see a list of possibilites:
[local-growl] growl_enabled = ON growl_growlnotifypath = /home/michael/bin/growlnotify growl_image_path = /Users/mgreb/Documents/irssi.png growl_show_hilights = ON growl_show_private_messages = ON growl_sticky = OFF
Configuration for growlnotify.pl is via a set of config variables near the top:
my $ssh_host = 'localhost'; my $ssh_port = 22992; my $ssh_user = 'mgreb'; my $growlnotify = '/usr/local/bin/growlnotify';
Hopefully you will find this useful.