under construction


How To Build OpenPlatformTrustServices for KNOPPIX 5.3.1.

Boot the KNOPPIX DVD.

Following instruction is tested by using KNOPPIX 5.3.1 EN DVD available from http://www.knoppix.net/

If you use a persistent KNOPPIX disk image, the size must be larger than 384MB. 512MB is recommended. And in this case, it is better to use /tmp as work space.


Preparing

Download Java Development Kit V6 from http://java.sun.com/javase/downloads/index.jsp (Choose Linux self-extracting file) and install as follows

cd /opt/
chmod +x /home/knoppix/Desktop/jdk-6u6-linux-i586.bin
/home/knoppix/Desktop/jdk-6u6-linux-i586.bin
export JAVA_HOME=/opt/jdk1.6.0_06
export PATH=/opt/jdk1.6.0_06/bin:$PATH

Download jTreemap and Install from http://jaist.dl.sourceforge.net/sourceforge/jtreemap/jtreemap-1.1.0.zip and extract as follows

cd /tmp
wget http://jaist.dl.sourceforge.net/sourceforge/jtreemap/jtreemap-1.1.0.zip
cd /opt
unzip /tmp/jtreemap-1.1.0.zip

Install TrouSers and tpm-tools from http://sourceforge.net/projects/trousers/

wget http://jaist.dl.sourceforge.net/sourceforge/trousers/trousers-0.3.1.tar.gz

tar xvfz trousers-0.3.1.tar.gz
cd trousers-0.3.1
sh bootstrap.sh
./configure
cd ..
su
tar zcvf /usr/src/rpm/SOURCES/trousers-0.3.1.tar.gz trousers-0.3.1

vi trousers-0.3.1/dist/trousers.spec  (quick fix)

#%config %attr(600, tss, tss) %{_sysconfdir}/tcsd.conf
%config %attr(600, tss, tss) %{_sysconfdir}/../../etc/tcsd.conf

rpmbuild -bb trousers-0.3.1/dist/trousers.spec

cd /usr/src/rpm/RPMS/i386/
alien --to-deb trousers-0.3.1-1.i386.rpm
alien --to-deb trousers-devel-0.3.1-1.i386.rpm

dpkg -i trousers_0.3.1-2_i386.deb 
dpkg -i trousers-devel_0.3.1-2_i386.deb

wget http://jaist.dl.sourceforge.net/sourceforge/trousers/tpm-tools-1.3.1.tar.gz

tar xvfz tpm-tools-1.3.1.tar.gz

cd tpm-tools-1.3.1
sh ./bootstrap.sh
./configure
cd ..

su
tar zcvf /usr/src/rpm/SOURCES/tpm-tools-1.3.1.tar.gz tpm-tools-1.3.1

vi tpm-tools-1.3.1/dist/tpm-tools.spec  (quick fix)

#BuildRequires:  autoconf automake libtool trousers-devel opencryptoki-devel openssl-devel

rpmbuild -bb tpm-tools-1.3.1/dist/tpm-tools.spec

TBD BUILD WAS FAIL DO TO THE DEPENDANCY

Build and Install OpenPlatformTrustServices (package build)

wget http://jaist.dl.sourceforge.jp/openpts/29083/OpenPlatformTrustServices-tools-0.1.1.tgz
tar xzvf OpenPlatformTrustServices-tools-0.1.1.tgz
su
cp OpenPlatformTrustServices-tools-0.1.1.tgz /usr/src/rpm/SOURCES/OpenPlatformTrustServices-tools-0.1.1.tar.gz
rpmbuild -bb OpenPlatformTrustServices-tools-0.1.1/dist/OpenPlatformTrustServices-tools.spec

OLD OLD OLD

Download OpenPlatformTrustServices OpenPlatformTrustServices-tools OpenPlatformTrustServices-tcdemo packages from http://sourceforge.jp/projects/openpts

  1. Copy spec files to /usr/src/rpm/SPECS/
  2. Copy tar files to /usr/src/rpm/SOURCES/ as tar.gz
  3. Build and install OpenPlatformTrustServices and OpenPlatformTrustServices-tools
  4. Build and install OpenPlatformTrustServices-tcdemo
$ tar xzvf OpenPlatformTrustServices-0.1.1.tgz
$ tar xzvf OpenPlatformTrustServices-tools-0.1.1.tgz
$ tar xzvf OpenPlatformTrustServices-tcdemo-0.1.1.tgz

$ cp OpenPlatformTrustServices-0.1.1/dist/OpenPlatformTrustServices.spec /usr/src/rpm/SPECS/
$ cp OpenPlatformTrustServices-tools-0.1.1/dist/OpenPlatformTrustServices* /usr/src/rpm/SPECS/
$ cp OpenPlatformTrustServices-tcdemo-0.1.1/dist/OpenPlatformTrustServices-tcdemo.spec /usr/src/rpm/SPECS/

$ cp OpenPlatformTrustServices-0.1.1.tgz /usr/src/rpm/SOURCES/OpenPlatformTrustServices-0.1.1.tar.gz
$ cp OpenPlatformTrustServices-tools-0.1.1.tgz /usr/src/rpm/SOURCES/OpenPlatformTrustServices-tools-0.1.1.tar.gz
$ cp OpenPlatformTrustServices-tcdemo-0.1.1.tgz /usr/src/rpm/SOURCES/OpenPlatformTrustServices-tcdemo-0.1.1.tar.gz

# cd /usr/src/rpm/SPECS/
# rpmbuild -bb OpenPlatformTrustServices-tools.spec
# rpmbuild -bb OpenPlatformTrustServices.spec

# cd /usr/src/rpm/RPMS/i386/
# alien --to-deb OpenPlatformTrustServices-tools-0.1.1-1.i386.rpm
# dpkg -i openplatformtrustservices-tools_0.1.1-2_i386.deb

# cd /usr/src/rpm/RPMS/noarch/
# alien --to-deb OpenPlatformTrustServices-0.1.1-1.noarch.rpm
# dpkg -i openplatformtrustservices_0.1.1-2_all.deb

# cd /usr/src/rpm/SPECS/
# rpmbuild -bb OpenPlatformTrustServices-tcdemo.spec
# cd /usr/src/rpm/RPMS/i386/
# alien --to-deb OpenPlatformTrustServices-tcdemo-0.1.1-1.i386.rpm
# dpkg -i openplatformtrustservices-tcdemo_0.1.1-2_i386.deb

Build and Install OpenPlatformTrustServices (source build)

export JAVA_HOME=/opt/jdk1.6.0_06
export PATH=/opt/jdk1.6.0_06/bin:$PATH

cp OpenPlatformTrustServices-0.1.1/
sudo make 
make all