Home‎ > ‎Wardriving‎ > ‎

How to install Pyrit with ATI Cal++ support under BackTrack 5 R1 Gnome 64bit

Last updated:
10/20/2011
 
 
-- prepare kernel sources (required for ATI proprietary driver installation)
prepare-kernel-sources
cd /usr/src/linux
cp -rf include/generated/* include/linux/
--
 
-- install ATI proprietary driver
cd; mkdir tmp; cd tmp
wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-9-x86.x86_64.run
sh ati-driver-installer-11-9-x86.x86_64.run
follow installer; reboot
--
 
-- to uninstall if needed
cd /usr/share/ati
sh fglrx-uninstall.sh
--
 
-- to enable multi-monitor support (optional)
System > Preferences > AMD Catalyst Control Center (Administrative)
reboot
--
 
-- install dependencies
apt-get install cmake libroot-python-dev libboost1.40-all-dev
--
 
-- download and install AMD-APP-SDK-v2.5-lnx64.tgz (includes CAL++ libraries)
cd ~/tmp
wget http://download2-developer.amd.com/amd/APPSDK/AMD-APP-SDK-v2.5-lnx64.tgz
tar xvzf AMD-APP-SDK-v2.5-lnx64.tgz
tar xvzf AMD-APP-SDK-v2.5-RC2-lnx64.tgz
mv AMD-APP-SDK-v2.5-RC2-lnx64/ /opt
cd /
tar xvxf ~/tmp/icd-registration.tgz
--
 
-- edit .bashrc
vi ~/.bashrc
 
add the following to the end of .bashrc

export AMDAPPSDKROOT=/opt/AMD-APP-SDK-v2.5-RC2-lnx64/
export AMDAPPSDKSAMPLESROOT=/opt/AMD-APP-SDK-v2.5-RC2-lnx64/
export LD_LIBRARY_PATH=${AMDAPPSDKROOT}lib/x86_64:${LD_LIBRARY_PATH}
export ATISTREAMSDKROOT=$AMDAPPSDKROOT
 
save; quit
 
source ~/.bashrc
--
 
-- download and compile calpp
cd ~/tmp
svn co https://calpp.svn.sourceforge.net/svnroot/calpp calpp
Checked out revision 90
 
cd calpp/trunk/
cmake .
make
make install
---

-- download and compile pyrit
cd ~/tmp
svn checkout http://pyrit.googlecode.com/svn/trunk/ pyrit_svn
Checked out revision 308

cd pyrit_svn/pyrit/
python setup.py build
python setup.py install
--
 
-- compile cpyrit_calpp (adds ATI GPU module to pyrit)
cd ~/tmp/pyrit_svn/cpyrit_calpp/

vi setup.py

change
VERSION = '0.4.0-dev'
to
VERSION = '0.4.1-dev'
(this is to match Pyrit version; otherwise will see version mismatch while running)

change
CALPP_INC_DIRS.append(os.path.join(CALPP_INC_DIR, 'include'))
to
CALPP_INC_DIRS.append(os.path.join(CALPP_INC_DIR, 'include/CAL'))

python setup.py build
python setup.py install
--
 
pyrit list_cores
should show CAL++ devices and CPU cores
 


pyrit benchmark
 


-- to limit core numbers to 2 if needed
vi ~/.pyrit/config
limit_ncpus = 2
--
Comments