Getting the unique serial number from a Raspberry Pi.
cat /proc/cpuinfo | grep ^Serial | cut -d":" -f2
Example output:
00000000e215b4a2
An interesting use for this is “binding” software, encryption or other servcies to a specific Pi. Found this in a suggestion on the Stack Overflow question “Securing data on SD card Raspberry Pi”
Note: This blog is a collection of personal notes. Making them public encourages me to think beyond the limited scope of the current problem I'm trying to solve or concept I'm implementing, and hopefully provides something useful to my team and others.
This blog post, titled: "Raspberry Pi - Serial Number: Getting the unique serial number from a Raspberry Pi." by Craig Johnston, is licensed under a Creative Commons Attribution 4.0 International License.
