Track and Trace your stolen or missing Laptop with Adeona, on 32 and 64 Bit Ubuntu

Posted by Hodge on Nov 15, 2008 in Linux, Security, Ubuntu3 commentsPrint This Post

Adeona logo - Track a stolen laptop

Adeona is an Open Source system for tracking stolen and lost laptops/notebooks, developed by the University of Washington Computer Science and Engineering department. It’s also one of the few systems which doesn’t require a silly BIOS hack, or access to proprietary services, and is available for Linux, Windozzze and Mac OSX. Since 64bitjungle is a site dealing with Linux, I’ll obviously focus on the Linux version – although, the Windozzze and Mac versions are available as binary installers, so should be pretty easy to set up.

The only prerequisites for Adeona are OpenSSL, traceroute, libssl-dev, and cron which, with the exception of traceroute and libssl-dev, are installed by default on most Linus distributions. To install traceroute on Ubuntu, simly open a terminal (Applications -> Accessories -> Terminal) and run:

sudo apt-get install traceroute libssl-dev

Setting up Adeona itself involves downloading, compiling and installing a small client application. The current version, 0.2.1a, can be downloaded from the Adeona download page as a 3.5 Mb tarball. extract the tarball:

cd ~/Desktop
tar -zxvf adeona-0.2.1.tar.gz
cd adeona

32 Bit Installation

Installing on a 32 bit system is a snap not quite as easy as installing from a .deb, and involves compiling and configuring the source code:

./configure
sudo make install

64 Bit Installation

64 Bit systems entail much more work. Download and install the getlibs package:

wget http://www.boundlesssupremacy.com/Cappy/getlibs/getlibs-all.deb
sudo dpkg -i getlibs-all.deb

Then, from the adeoma directory, run:

getlibs -l libcrypto.a

This will detect, download and install any 32 bit libraries required to build Adeona. In many cases, this will be libssl-dev. If you don’t have them already, the ia32-libs package also needs installing:

sudo apt-get install ia32-libs

The Makefile may also requires a small change, so first make a backup, then open it up in a text editor:

cp Makefile Makefile.bak
gksu gedit Makefile

Find the CFLAGS variable (the line “CFLAGS := -Wall” – line 46 in the current release) and add a new line after it, with “CFLAGS += -m32″, so that the lines are now:

CFLAGS := -Wall
CFLAGS += -m32

Save the file, and close the text editor. Now, configure, and install:

./configure
sudo make install

This should hopefully work for most users. However, I was receiving the following error when compiling:

/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory

Installing libc6-dev-i386 solved the problem:

sudo apt-get install libc6-dev-i386

If you had to install libc6-dev-i386 following the above error, remember to run:

make clean

before running

sudo make install

Post Installation Steps (32 and 64 Bit)

Adeona initialises immediately after the code has compiled and installed, and requires a little configuration. First, it asks for a password, and to verify the password. Finally, a line needs to be added to crontab – this line is output once the installation and initialisation is complete. It’s dependent on where you installed Adeona, but the default is:

@reboot /usr/local/adeona/adeona-client.exe -s /usr/local/adeona/adeona-clientstate.cst -r /usr/local/adeona/resources/ -l /usr/local/adeona/logs/ &

So, highlight the line output by Adeona, right click and “Copy” , then open up crontab for editing:

sudo crontab -e

and choose “nano” (it’s much easier than vi(m) if you’ve never used a text editor from the terminal before). Move the cursor to the end of the last line, and hit return to add a new line, then right click and “Paste” the line output from Adeona. Push Ctrl+X to exit, and choose “Y” to save the changes. If you’re using vi, then you know what to do… That’s it.

During the installation process, a file called “adeona-retrievecredentials.ost” was created – move it to a better location, and/or make a note/remember that location.

Reboot.

Data Retrieval

Simple data retrieval can be executed by the following, in a Terminal:

/usr/local/adeona/adeona-retrieve.exe -r /usr/local/adeona/resources/ -l /path/to/results -s /path/to/your/adeona-retrievecredentials.ost -n 1

Change /path/to/results to some thing such as /home/<username>/adeona-results.txt (where <username> is your username), and /path/to/your/adeona-retrievecredentials.ost to the location the file adeona-retrievecredentials.ost was saved (told you to remember it!).

This is fine for testing, but since you’re using the machine that Adeona is installed on, and thus the one you want to track, to locate it… Not very useful if it gets stolen. Simply copy the adeona-retrievecredentials.ost file to a USB drive, Memory stick, or whatever – this file can then be used from any computer with the Adeona Retrieval Tools installed (also easy to install) to retrieve it’s last known location.

More information can be found at http://adeona.cs.washington.edu/documents.html

Uninstalling Aedona

If you need to uninstall Aedona, simply run the following form a Terminal:

sudo pkill adeona-client.exe
sudo rm -rf /usr/local/adeona

Then run:

sudo crontab -e

and delete the line previously added to crontab.

References

  1. Adeona Linux Installation Notes
  2. Solving 64 Bit Dependency Issues
  3. Adeona Google User Group
  4. Privacy-Preserving Location Tracking of Lost or Stolen Devices: Cryptographic Techniques and Replacing Trusted Third Parties with DHTs (PDF)



Something not quite right? Inaccuracies or invalid code? Didn’t work for you? Don’t like me using Ss instead of Zs? Add a comment below! All comments are welcome. Except spam, because spam is a bit crap.


Not registered with eBay?
Click to sign up


HP Pavilion DV8000 Laptop/Notebook Used Great Condition
US $250.00 (5 Bids)
End Date: Friday Jul-03-2009 18:53:58 PDT
Buy It Now for only: US $400.00
Bid now | Buy it now | Add to watch list
1 P4 Toshiba Laptop Computer XP-2 Notebook DVD Wi Fi NR
US $206.00 (20 Bids)
End Date: Friday Jul-03-2009 19:13:00 PDT
Bid now | Add to watch list
Sony VGN-AW120J Notebook Computer NEW Laptop w/ blu ray
US $780.00 (11 Bids)
End Date: Friday Jul-03-2009 19:14:59 PDT
Bid now | Add to watch list
ASUS M51A-F1 15.4" 2.0GHZ 2GB 250GB HD LAPTOP NOTEBOOK
US $445.00 (14 Bids)
End Date: Friday Jul-03-2009 19:22:10 PDT
Bid now | Add to watch list

Didn't find what you were looking for?

Click here to see similar items.


  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Reddit
  • StumbleUpon
  • Technorati
  • Slashdot
  • TwitThis
  • Yahoo! Buzz

[Post to Twitter]  [Post to Plurk]  [Post to Yahoo Buzz]  [Post to Delicious]  [Post to Digg]  [Post to Ping.fm]  [Post to Reddit]  [Post to StumbleUpon] 

Related posts:

  1. Install Adobe AIR 1.5 and the Google Analytics Reporting Application on Ubuntu
  2. View and Render .nfo files correctly in Ubuntu with NFO Viewer
  3. Split Screen GNOME Terminals with Terminator in Ubuntu
  4. Adobe Flash Player 10 (Alpha) for 64 Bit Linux – Installation
  5. Batch Export Amarok Album Art to the Album’s Containing Directory

Related posts brought to you by Yet Another Related Posts Plugin.

Tags: , , ,

3 comments

» Comments RSS Feed
  1. “Installing on a 32 bit system is a snap:”

    And then it goes on with a full page of cryptic terminal commands and some “oh and by the way you have to open a few text files and modify them with your favorite text editor” stuff. Unfortunately a google search of this app has your “Installing on a 32 bit system is a snap:” blurb in some main headers.

    No a “snap” would be a .deb file for the new linux users among us. Identifying complex instructions like this and identifying them as a “snap” is what drives new users away. Don’t get me wrong…I appreciate your work and the time it took to post this but please don’t mislead the newer users. I get the impression that they were not even considered when you wrote this.

    h

  2. Excellent, my first ever complaint! :D

    Unfortunately, I have no control over what Google displays in its search results. I would apologise on their behalf, but there’s probably all sorts of legal imprecations and such. To be honest, I really don’t think the article is misleading. Installation on a 32 Bit system IS a snap – compile, then install. The rest of the article covers installation on a 64 bit system – admittedly a more complex process – followed by generic post installation and configuration steps for both architectures, which, apart from rewriting the source code myself, I have no control over. But as for the installation on a 32 bit system – which the particular sentence you point out clearly states (32 Bit, that is) – it’s really not that difficult. Also – and unfortunately, this is another “unfortunately” – considering the nature of the installation process, I have to guiltily admit that no, I didn’t consider users new to Linux when writing the article, because I didn’t envisage i) new Linux users searching on how to compile and install what is by its nature, a fairly complex application, and ii) Google displaying a rather obscure part of the article which could be taken out of context.

    However, in my usual way of trying to placate everyone, I’ve edited the article for you :)

  3. Great!

    Thanks a lot, would have tons of work without U ;)

Leave a comment