#Make directory in files, then right-click the directory and select "Open in Terminal" #All following "sudo" command can be ignored by obtaining root permission from the opened terminal sudo apt -y install git sudo apt -y install tpm2-tools #Create script and run it in the current directory for software dependencies: sudo apt -y install \ autoconf-archive \ libcmocka0 \ libcmocka-dev \ procps \ iproute2 \ build-essential \ git \ pkg-config \ gcc \ libtool \ automake \ libssl-dev \ uthash-dev \ autoconf \ doxygen \ libjson-c-dev \ libini-config-dev \ libcurl4-openssl-dev \ uuid-dev \ libltdl-dev \ libusb-1.0-0-dev \ libftdi-dev #Copy & Paste these next commands in the terminal tab you are currently working in: #Getting source, compiling and installing tpm2-tss: git clone https://github.com/tpm2-software/tpm2-tss.git cd tpm2-tss ./bootstrap ./configure --with-udevrulesdir=/etc/udev/rules.d/ make -j`nproc` sudo make install sudo ldconfig sudo udevadm control --reload-rules && sudo udevadm trigger sudo pkill -HUP dbus-daemon cd .. #Install pre-requisties for tpm2-abrmd: sudo apt -y install libglib2.0-dev Getting Source, compiling and install tpm2-abrmd: git clone https://github.com/tpm2-software/tpm2-abrmd.git cd tpm2-abrmd ./bootstrap ./configure --with-dbuspolicydir=/etc/dbus-1/system.d make -j`nproc` sudo make install sudo ldconfig cd .. #Source, compiling and installing tpm2-tools: git clone https://github.com/tpm2-software/tpm2-tools.git cd tpm2-tools ./bootstrap ./configure make -j`nproc` sudo make install sudo ldconfig #Should be able to use TPM device to generate a random number: sudo tpm2_getrandom --hex 8
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter