| ||||||||
General Mac OS X Discussion General Apple and Mac OS X Discussion
|
| | LinkBack | Thread Tools | Display Modes |
(#1)
|
| Junior Member Posts: 18 Join Date: Apr 2009 | 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 |
| | |
(#2)
|
| Member Posts: 32 Join Date: Feb 2009 | This is actually pretty bad-ass, I know their are more polished solutions out there, but they cost moulah. Nice job mate. I'd prefer if you could enable tracking remotely. As this will fill up your dropbox account pretty quick (6 months) and as you have to have the folder mounted you couldn't use a seperate account just for the tracking output. I'm thinking maybe you could figure out a way to tunnel through VNC and turn the cron on/off over terminal remotely. But nice job for an 0.1 release. Now all it needs is a web interface and a GUI and you could charge a subscription model! BTW, if you want a sandbox to play around on on the web, you could mess about on a subdomain on my server if you want. PM if you're interested. |
| | |
(#3)
|
(#4)
|
| Super Moderator Posts: 1,356 Join Date: Jan 2009 Location: Idaho | Quote:
Edit: Drat. Beat me to it already. http://osx.mechdrew.com - News and Guides for Installing Mac OS X via NetbookInstaller - Now on Twitter | |
| | |
(#5)
|
(#6)
|
(#7)
|
| Member Posts: 32 Join Date: Feb 2009 | Quote:
Wow that was quick, thanks alot man. That will make it easier to implement into a simple gui. | |
| | |
(#8)
|
| Expert Member Posts: 692 Join Date: Mar 2009 | Not too shabby, but with a job every 15 minutes, that's quite a hit on Dropbox, in terms of file xfers. Since the purpose of this is for pseudo tracking, wouldn't it make more sense to just send data once per boot? With perhaps a second xfer 15 (or 5 or whatever, time for some to be up and fully running) minutes in, with perhaps a every 24 hours if someone is keeping the machine on all the time? I make the suggestion just as a way to not abuse Dropbox but still have this pseudo tracking? Mini2: Mini9, Black, 2G, 0.3 Webcam, Bluetooth, 32G RunCore, OS X/Win 7, internal PCI-e SHDC Reader Mini3: Mini10v. Black, 2G, Webcam, 640G HD, OS X 10.5.8/Win 7/Ubuntu [Hibernate w/NBI 0.8.3 RC4] Dropbox Referral |
| | |
(#9)
|
| Member Posts: 32 Join Date: Feb 2009 | Interestingly enough I couldn't get this working with Lingo for the crontabs. I set it to every 15 seconds just to see what an average output would look like. Couldn't get it to go... |
| | |
(#10)
|
| Member Posts: 31 Join Date: Aug 2009 Location: austin, tx | i get access denied on the shell script from the command line Violet:~ admin$ ~/Dropbox/Public/tracking/tracking.sh -bash: /Users/admin/Dropbox/Public/tracking/tracking.sh: Permission denied |
| | |
![]() |
| Thread Tools | |
| Display Modes | |
| |
LinkBacks (?)
LinkBack to this Thread: http://www.mydellmini.com/forum/general-mac-os-x-discussion/8714-theft-tracking-method-mini-using-dropbox.html | ||||
| Posted By | For | Type | Date | |
| Hey, Reddit - my wife's Macbook got smash'n'grabbed out of her mom's car two hours ago. Had I installed this script in her Dropbox beforehand, I might well have a picture and IP history of the perpetrator. : gadgets | This thread | Refback | 11-21-2009 04:57 AM | |
Copyright © 2008-2011 MyDellMini.com.









Linear Mode
