Difference between revisions of "Testbed"

From Physical Layer Security
Jump to: navigation, search
(Required Material for our Testbed)
(Prepare the Host)
Line 12: Line 12:
  
 
==Prepare the Host==
 
==Prepare the Host==
To prpeare the Host please follow the next instructions.
+
To prpeare the Host please follow the next instructions. Please enter the commandline by opening terminal or pressing CTRL+ALT+T.
 +
After that enter the following line to prepare your host system.
 +
 
 +
#Please execute line by line ( Except the lines that start with #, which are only a comment during the lines)
 +
 
 +
#libsodium installation
 +
 
 +
sudo add-apt-repository ppa:chris-lea/libsodium
 +
 
 +
#next things have to be done as root so we swith with sudo su
 +
 
 +
sudo su
 +
 
 +
echo "deb http://ppa.launchpad.net/chris-lea/libsodium/ubuntu trusty main" >> /etc/apt/sources.list
 +
 
 +
echo "deb-src http://ppa.launchpad.net/chris-lea/libsodium/ubuntu trusty main" >> /etc/apt/sources.list
 +
 
 +
apt-get update && sudo apt-get install libsodium-dev
 +
 
 +
exit
 +
 
 +
#from here no root shell required
 +
 
 +
 
 +
 
 +
#zmq
 +
 
 +
wget https://github.com/zeromq/zeromq4-1/releases/download/v4.1.4/zeromq-4.1.4.tar.gz
 +
 
 +
tar -xvzf zeromq-4.1.4.tar.gz
 +
 
 +
cd zeromq-4.1.4
 +
 
 +
./autogen.sh
 +
 
 +
./configure
 +
 
 +
make -j 4
 +
 
 +
make check
 +
 
 +
make install
 +
 
 +
sudo ldconfig
 +
 
 +
 
 +
 
 +
#python packages
 +
 
 +
sudo apt-get install python-zmq python-dev python-qt4 libzmq3 python-numpy

Revision as of 13:27, 27 October 2017

To setup the Testbed, one can simply follow the instructions below. For a successfull measurement one should follow the instruction precisely.

Required Material for our Testbed

  • HOST PC with Ubuntu installed
  • 2x Raspberry Pi
  • 2x USB - Extension Cable
  • 1x Powerbank
  • 1x Power Supply
  • 3x CC2531 Sticks (TI)
  • 2x SD Card (16GB or more recommend)
  • 2x WLAN Stick (in this case TL-WN722N)

Prepare the Host

To prpeare the Host please follow the next instructions. Please enter the commandline by opening terminal or pressing CTRL+ALT+T. After that enter the following line to prepare your host system.

  1. Please execute line by line ( Except the lines that start with #, which are only a comment during the lines)
  1. libsodium installation

sudo add-apt-repository ppa:chris-lea/libsodium

  1. next things have to be done as root so we swith with sudo su

sudo su

echo "deb http://ppa.launchpad.net/chris-lea/libsodium/ubuntu trusty main" >> /etc/apt/sources.list

echo "deb-src http://ppa.launchpad.net/chris-lea/libsodium/ubuntu trusty main" >> /etc/apt/sources.list

apt-get update && sudo apt-get install libsodium-dev

exit

  1. from here no root shell required


  1. zmq

wget https://github.com/zeromq/zeromq4-1/releases/download/v4.1.4/zeromq-4.1.4.tar.gz

tar -xvzf zeromq-4.1.4.tar.gz

cd zeromq-4.1.4

./autogen.sh

./configure

make -j 4

make check

make install

sudo ldconfig


  1. python packages

sudo apt-get install python-zmq python-dev python-qt4 libzmq3 python-numpy