Wednesday, March 24, 2021

Find hardware version of Raspberry Pi from the command line

 


Run
cat /proc/cpuinfo
look for revision and look it up on above page

! or 
cat /proc/cpuinfo | grep 'Revision' | awk '{print $3}' | sed 's/^1000//'

! web version - not always accurate/updated though and not well documented
rev=$(awk '/^Revision/ { print $3 }' /proc/cpuinfo) && curl -L perturb.org/rpi?rev=$rev

Monday, March 15, 2021

Windows Server Activation

Several Windows Server 2019 installs wouldn’t let me activate them normally. To do it, launch an elevated command prompt and use this command - 

cscript c:\windows\system32\slmgr.vbs /ipk <product-key>