Skip to content

Commit

Permalink
Update ubuntu19.10.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
rayures authored Dec 19, 2019
1 parent 12152d9 commit e614cf4
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions ubuntu19.10.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ read -rsp $'Press any key to continue...\n' -n1 key

# Install dependent packages
apt-get update -y
apt-get -y install automake expect gnutls-bin libgnutls28-dev git gawk m4 socat fuse libfuse-dev tpm-tools libgmp-dev libtool libglib2.0-dev libnspr4-dev libnss3-dev libssl-dev libtasn1-6-dev net-tools libseccomp-dev
apt-get -y install automake expect gnutls-bin libgnutls28-dev git gawk m4 socat fuse libfuse-dev checkinstall tpm-tools libgmp-dev libtool libglib2.0-dev libnspr4-dev libnss3-dev libssl-dev libtasn1-6-dev net-tools libseccomp-dev

read -rsp $'Press any key to continue...\n' -n1 key

Expand All @@ -24,27 +24,37 @@ git clone https://github.com/stefanberger/libtpms.git /home/vtpm/libtpms
cd /home/vtpm/libtpms
./bootstrap.sh
./configure --with-openssl --with-tpm2 && # support TPM2.0
read -rsp $'Press any key to continue...\n' -n1 key
make &&
#install on current system
read -rsp $'Press any key to continue...\n' -n1 key
make install # optional

#create .deb installation package
read -rsp $'Press any key to continue...\n' -n1 key
checkinstall
#compress all files
read -rsp $'Press any key to continue...\n' -n1 key
tar -zcvf /home/vtpm/libtpms.tar.gz /home/vtpm/libtpms
echo "libtpm finished"
read -rsp $'Press any key to continue...\n' -n1 key

#swtpm part:
git clone https://github.com/stefanberger/swtpm.git /home/vtpm/swtpm
cd /home/vtpm/swtpm
./autogen.sh &&
read -rsp $'Press any key to continue...\n' -n1 key
./configure --prefix=/usr --with-openssl --with-tpm2 &&
read -rsp $'Press any key to continue...\n' -n1 key
make &&
read -rsp $'Press any key to continue...\n' -n1 key
make install #optional
read -rsp $'Press any key to continue...\n' -n1 key
checkinstall
read -rsp $'Press any key to continue...\n' -n1 key
tar -zcvf /home/vtpm/swtpm.tar.gz /home/vtpm/swtpm

echo "done with swtpm"
cd /home/vtpm
read -rsp $'Press any key to continue...\n' -n1 key

#archiving folders
tar -zcvf /home/vtpm/libtpms.tar.gz /home/vtpm/libtpms
read -rsp $'Press any key to continue...\n' -n1 key
tar -zcvf /home/vtpm/swtpm.tar.gz /home/vtpm/swtpm

echo "finished"

0 comments on commit e614cf4

Please sign in to comment.