I found a nice script from a /. user who commented on a article in which some guy found his wife's notebook with the help of Seti@Home. It posted the ip of the thief on the web and with some tracking done by police he found it back.
Nice, so I took the script on the page and modified it a bit for my needs. Remember to change it for your useraccount and your local places because I use a Macintosh to do my stuff
Here is a small documentation what I did:
bartek@hermes~$ ssh-keygen -b 2048 -t dsaPress three times on your Return key. No keyboard, no comment and default save position.
bartek@hermes~$ scp ~/.ssh/id_dsa.pub debar@nonlogic.org:~/.ssh/authorized_keysNote that you have to type in your password to copy it. It will be the last time. :)
bartek@hermes~$ ssh debar@nonlogic.orgNow it should work without any password. If something failed ask me in the ##nonlogic irc channel.
#!/bin/bash rm -f ~/.locate-laptop date > ~/.locate-laptop w >> ~/.locate-laptop /sbin/ifconfig -a 2>&1 >> ~/.locate-laptop /usr/sbin/traceroute -q 1 -nP ICMP google.com 2>&1 | head -15 >> ~/.locate-laptop scp -q ~/.locate-laptop debar@nonlogic.org:~
bartek@hermes~$ sudo echo "27 * * * * bartek /Users/bartek/bin/callhome.sh" >> /etc/crontab
I know that the thief has to be somewhat unskilled in computers to let this
script do it's job but nerds do not steal and after a successful theft
he maybe wants to try out the computer and check his email. It is a small
chance you can hope for.
Of course, it is the best to not let steal somebody your notebook.