I came up with this silly little script to track your mini in the in unfortunate case you might find it stolen. It requires two additional things: Dropbox and and a cron job.
Dropbox is a free service that creates a local folder (~/Dropbox/ ) that automatically syncs across multiple computers and a remote server in real time. It also does versioning, so you can view/restore older versions of files you put there through it's web interface. This makes it perfect for tracking data. Also, it's just a really handy service and you should use it anyway. In many cases I find it faster than using a thumb drive to transfer files.
Installation:
- Install Dropbox ( Be a pal and use my referral link, eh? I get an extra 250mb if you do!
https://www.getdropbox.com/referrals/NTUzMjQyMTk )
- Double-click this attached archive: tracking.zip. It should give you a folder called "tracking"
- Drag the "tracking" folder into your ~/Dropbox/ folder
- Add a cron job that runs ~/Dropbox/tracking/tracking.sh every 15 minutes (or whatever you'd prefer)*
So what does the script do?
- Dumps your ifconfig (networking information), external IP address, and Airport info to txt files in your dropbox. You can technically use this info to pinpoint location
- Takes a picture of the jerk in front of your laptop
In the event that you lose your machine, log into drop box and have a look at the files that start getting uploaded into your Dropbox under /tracking/output/ . Since dropbox keeps a file history, you'll be able to go back and see all the previous IP info and photos of the alleged thief.
Issues:
- You have to trust dropbox with your data
- You will have unflattering pictures of yourself taken frequently (just comment out the isightcapture line if you don't want pictures taken)
- Only works while the laptop has a network connection
- Who knows what you would do once you got this info. Go to the police? Vigilante justice? Cry yourself to sleep cursing their IP?
Let me know if you have any questions or feedback!
* How do I make a cron job?
- Open a terminal
- Type: crontab -e
- This opens vi to edit the cron file. Press "i" to enter interactive mode
- Type or paste: 00,15,30,45 * * * * ~/Dropbox/tracking/tracking.sh >/dev/null 2>&1
(translation: run tracking.sh every 15 minutes, technically at :00 :15 :30: 45 on the hour, ignore error output)
- type :wq! to save and exit
- Type crontab -l at the terminal to verify your job was added