WGBEEPER

NAME:

wgbeeper - Tracking device.
 
SYNOPSIS:

sudo wgbeeper
 
USAGE:

If you have trouble accessing the board, try copying the current IP and domain into your hosts file. If this only gives you a `Domain Parking' page, try the recent IP instead.
 
On Mac, Linux, and other Unix-like systems, the path to this file is /etc/hosts , but on Windows it could be anywhere...
 
Windows XP/Vista/7:
C:\Windows\system32\drivers\etc\hosts
 
Windows NT/2000/XP:
C:\winnt\system32\drivers\etc\hosts
 
Windows 95/98/Me:
C:\Windows\hosts
 
DESCRIPTION:

Yeah, maybe I should explain what this thing is...
 
The hosting company and/or domain registration service for the William Gibson Board isn't much good at notifying the webmaster [All Hail Tiger68] that the domain is about to expire. So there's a neary-annual outage, during which visitors and forum members only see a `Domain Parking' page at that URL, and can't read or post anything.
 
While parked, the IP address associated with the domain changes, and actually points to another server. But the real one's still there, if you know where to look.
 
So I wrote this script.
 
FILES:
/etc/cron.hourly/wgbeeper
Checks for changes, but rarely does anything.
 
/etc/cron.weekly/wgmaintain
Weekly maintenance script, just to keep various accounts active. Some expire after a month of inactivity, so it performs updates whether there's any change or not.
 
/usr/local/lib/changeip_update
Maintains the wgbeeper.dns1.us account, and keeps its IP address in sync with that of the web-server hosting this page.
 
/usr/local/lib/no-ip_update
Maintains the locohost.no-ip.org account [deprecated, although it still reflects the WGB's most recent, but not current IP].
 
/usr/local/lib/ftp_update
Generates and uploads the pages you're looking at right now.
 
/usr/local/bin/HTS
`Hypertext Shorthand' -- used by `ftp_update' to generate HTML.
 
/usr/local/lib/wgdata
Contains shared data used by both `wgbeeper' and `wgmaintain'. It also contains usernames and passwords for the various services involved, so its permissions have been set to 700 [meaning only root can read/write/execute the file].
 
The linked text-file is just an example. Move along, move along, nothing to see there...
 
Oh, wait... And a few other files, just a little something to cover my ass. The thing is, 50webs has a policy, at least with relation to their free hosting, that there should be no hidden files. Everything must be linked from some HTML file or other. This is probably to support their other, `No File Storage' policy.
 
Fair enough. Perfectly reasonable. But just in case I missed anything, here's a list of directories used. Directory browsing should be enabled.
 
bin/
Where the zipped scripts live.
 
etc/
Where some of the unzipped scripts hang out.
 
js/
Where I keep my JavaScript files [actually only one].
 
px/
Images directory.
 
usr/
Where the rest of the unzipped scripts are [these mirror the directory structure on my laptop, btw].
 
SEE ALSO:

Well, you could go and look at the board. ;-)
 
AUTHOR:

aka Garage_Rubin.
 
BUGS:

Seems to work okay, but make sure to remove or comment-out the hosts file entry, once order is restored... ;-P Just let me know if you have any trouble with this thing, or can suggest improvements.
 
LICENSE:

Eh, sure, why not...
 
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
 
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 

And that's about it.

 

Cheers,

Last update; 2012/Sep/27
12:15:50 PM