IP address notification for VNC sessions
Thomas Kaiser
thomas at kaiser.linux-site.net
Thu Feb 10 22:50:20 UTC 2005
Put a file named newip (or similar) into /etc/ppp/ip-up.d/ with the contens:
#!/bin/sh
ifconfig |grep xxx.yyy | mail -s "New IP" somwone at somewhere.nnn
xxx.yyy are the first part of the ip number. This should be always the
same even your ISP changes them dynamicly.
I use this on a debian box. But it should be the same on Ubuntu.
Regards, Thomas
Neil Woolford wrote:
> Hi all,
>
> First, thanks to those who posted the useful stuff about rebinding the
> keystrokes for screenshot/windowshot(?) production in Gnome.
>
> Todays problem is about initialising VNC sessions to support my
> brother's computer; he's in France, I'm in England so this could help a
> lot...
>
> I've tested VNC from my laptop to my desktop Ubuntu machine, and it
> works fine. The problem is that I will have to step my brother through
> the Network Tools menu to get his (non-fixed) IP address to be able to
> initiate sessions.
>
> This wouldn't be necessary if the Remote Desktop Preferences fulfilled
> its promise to email the information: unfortunately all it emails is
> the words vncviewer localhost.localdomain:0 which clearly isn't the
> whole story!
>
> Is there any way of setting the system up to automatically email the
> *current* IP address that is bound to the Modem Interface (ppp0)?
>
> Neil
>
>
More information about the ubuntu-users
mailing list