Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to show how generate a digital signature, a checksum, or something along those lines based on your computer hardware using an Ubuntu Live CD?

So, once the first digital signature is created, then when a part of the hardware is removed or changed, if the digital signature is created again, it should be different.

Is this possible with an Ubuntu live CD?

share|improve this question
up vote 2 down vote accepted

Microsoft and other companies have spent a good deal of time tackling this problem for their products (for example, Windows Genuine Advantage). But here's a quick way to get a hardware footprint of a system from Linux, and your live CD will probably have these tools built-in.

Start with the "lspci" tool. This tool shows, in human-readable text, the hardware visible on your PCI bus. For example, it will list out your network card, video card, sound card, and some motherboard components.

Now, you could use "lspci", but you're probably looking for something a little more concise. I suggest hashing this output into an MD5. To do so, type:

lspci | md5sum

This will redirect the "lspci" command into "md5sum" which will return an MD5 hash that looks something like this:


While this is certainly a less secure way to handle hardware fingerprinting, it's a quick and easy way to get the job done. You should know that it's quite likely that if you swap out a component for another of the same model and revision (say, you bought two NVidia GeForce 7800GTS cards at the same store at the same time), you would probably get the same hash. So, if that's a concern, this may not be for you. But if you and I both ran this command, we would get wildly different output.

Hope that helps!

share|improve this answer
Nice answer, and I can also suggest capturing MAC addresses of network adapters so you can distinguish identical configurations which is actual for e.g. notebooks/especially netbooks: $ cat <(lspci) <(ip link | grep ether) | md5sum – whitequark Aug 13 '10 at 13:53
Thanks for that! would dmidecode be a better option over lspci for hardware finger printing? – oshirowanen Aug 13 '10 at 14:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .