Skip to content

Instantly share code, notes, and snippets.

@racerxdl
Created November 22, 2021 22:38
Show Gist options
  • Save racerxdl/26bc3f4bc443fa145b6f5604923d216f to your computer and use it in GitHub Desktop.
Save racerxdl/26bc3f4bc443fa145b6f5604923d216f to your computer and use it in GitHub Desktop.
Software TPM2 Ubuntu 20.04
git clone https://github.com/stefanberger/libtpms/
sudo apt-get -y install automake autoconf libtool gcc build-essential libssl-dev dh-exec pkg-config dh-autoreconf
./autogen.sh --with-openssl
make dist
dpkg-buildpackage -us -uc -j4
# Install the library and development packages
cd ..
sudo dpkg -i libtpms_0.x.y-z..._amd64.deb libtpms-dev_0.x.y-z..._amd64.deb

swtpm

sudo apt install devscripts git equivs

git clone https://github.com/stefanberger/swtpm.git

cd swtpm
sed -i 's/SWTPM_TEST_SECCOMP_OPT.*$/SWTPM_TEST_SECCOMP_OPT=""/' ./debian/rules 
sudo mk-build-deps --install ./debian/control
debuild -b
sudo apt autoremove swtpm-build-deps
sudo apt install ../swtpm*.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment