Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

A couple of scripts to help track a laptop's location Laptop Macs
Okay, so I am kind of paranoid about my belongings, especially my PowerBook. One thought I often have is "what if it were to get legs and disappear?" I mean, my PowerBook is my digital life, what if it were to get stolen?

Understanding that no solution is perfect, and that there are several ways to skin the proverbial cat (most of them posted on this web site), I developed my own solution for having my PowerBook 'phone home' on a regular basis, thus providing me with location information in the event my PowerBook ends up in hands other than my own. In the spirit of the recent Labor Day holiday, I am making the fruit of my labor available for the world, for free. Enter PBphoneHome (8KB download, macosxhints mirror), which is a simple 'application' that is intended to provide detailed information about the installed computer system.

In turn, this information can be utilized to determine the location of the installed system (a.k.a. source location validation), which can be extremely useful to finding a computer system that has been stolen or misplaced. PBphoneHome works by sending a time-stamped email message to a specified address that contains the installed computer's current IP address, broadcast address, MAC address, network information, and a list of running programs. PBphoneHome can also be configured to traceroute and access external web servers, providing additional location information and time-stamped logging capabilities.

Enjoy, with the understanding that PBphoneHome is distributed as freeware, without warranty or guarantee, written or implied, of any kind. Use this application at your own risk. PBphoneHome consists of two files, that utilize PHP and shell scripting. Individuals who are not comfortable with the usage or implementation of these technologies should refrain from using PBphoneHome. From the Read Me, here are the basic setup instructions:
  1. Decompress the application distribution file.
  2. Move the PBphoneHome.sh file to your preferred directory, on your local hard drive. Make sure that the file is executable (chmod 755 PBphoneHome.sh)
  3. The PBphoneHome.sh file can be run manually, but is best utilized when run via cron and executed as the root user or System Administrator.
  4. If you choose to utilize the additional tracking functionality provided by the PBphoneHome.php file, place a copy on your web server.
[robg adds: If you're not using the PHP script on a web server, you might want to edit the shell script to remove the call to curl. On my machine, it threw an error (though the rest of the script ran) when there wasn't a parameter for curl to parse.]
    •    
  • Currently 2.00 / 5
  You rated: 3 / 5 (4 votes cast)
 
[10,745 views]  

A couple of scripts to help track a laptop's location | 4 comments | Create New Account
Click here to return to the 'A couple of scripts to help track a laptop's location' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A couple of scripts to help track a laptop's location
Authored by: Hnz on Sep 07, '06 09:00:37AM

All these scripts wont really work, since the thief will re-install the
Operating system anyway, at least to make himself a login.
Would be better if these scrips would run in the bios.



[ Reply to This | # ]
A couple of scripts to help track a laptop's location
Authored by: transeau on Sep 08, '06 03:14:50AM

Setting an OpenFirmware password (Utility provided on your OS X DVD) will disable booting into Target Mode as well as disable booting from the optical drive. (Also stops single user mode) Effectively preventing an iBook, PowerBook, MacBook or MacBook Pro from being reinstalled without the password.

(Yes, the OpenFirmware Password Utility DOES work on ICBMs)



[ Reply to This | # ]
A couple of scripts to help track a laptop's location
Authored by: The Webguy on Sep 07, '06 10:27:46AM

I use this application via an automated daily job (CRON) and also at boot time (CRON) & login. Certainly any of these can be bypassed, but I only need one to execute successfully to get started relocating my missing PB. Likely, most thieves will at least boot into the OS once (my system is configured to auto boot into a guest account where the login item fires off) but some may not. Nothings perfect, but this is more about covering as many bases as possible. And, in this case, without paying for an off-the-shelf solution that suffers from the same limitations.
<br><br>
While no solution is one hundred percent effective for ensuring the location (and subsequent return) of a stolen or misplaced computer system, the PBphoneHome application is a helpful tool that can be combined with other best practices (Open Firmware password protection, data encryption routines, data backups, etc.) to form an overall system protection strategy.



[ Reply to This | # ]
A couple of scripts to help track a laptop's location
Authored by: luomat on Sep 07, '06 11:00:03AM
http://www.macosxhints.com/article.php?story=20060823112947376 also has some scripts to do roughly the same thing, and he suggests creating a passwordless guest account that the person might use instead of wiping the hard drive



[ Reply to This | # ]