Install Dradis in Backtrack 5 R2

I need newest dradis to manager all scanner report, but if you use:

#apt-get install dradis
You have got only daradis 2.7. I need 2.10
So, i must install Dradis 2.10 from git in Backtrack
Installing Ruby 1.9.3
root@bt:~# bash -s stable < <(curl -s raw.github.com/wayneeseguin/rvm/master/bins..)
root@bt:~# source /etc/profile.d/rvm.sh
root@bt:~# rvm -v

root@bt:~$ for package in zlib openssl libxslt libxml2; do rvm pkg install $package; done

root@root:~# rvm install 1.9.3
root@root:~# rvm 1.9.3 --default
root@root:~# ruby -v
Note: if you see error: rvm is not function, because you didn`t config your gnome terminal. To fix it: In termial menu/ Edit/ Profile Prefences / Titlte and Command/ check Run command as a login shell. Restart terminal

root@root:~# echo "gem: --no-rdoc --no-ri" > ~/.gemrc
root@root:~# gem install bundler
root@root:~# bundle -v
If gem install too slow, you can use this way to slove:

#gem -v
If < 2.0 ( Backtrack R2 is 1.8.x)

#wget rubyforge.org/frs/download.php/23825/curb-0..

#gem install --local curb-0.1.4.gem
Now gem install more quick

Download Dradis
root@root:~# cd /pentest/misc/
root@root:/pentest/misc# mkdir dradis-git && cd dradis-git
root@root:/pentest/misc/dradis-git# git clone github.com/dradis/dradisframework.git server
root@root:/pentest/misc/dradis-git# for file in verify reset start; do curl -O raw.github.com/dradis/meta/master/$file.sh; done
root@root:/pentest/misc/dradis-git# chmod +x *.sh

root@root:/pentest/misc/dradis-git# cd server/
Do you wish to trust this .rvmrc file? (/pentest/misc/dradis-git/server/.rvmrc)
y[es], n[o], v[iew], c[ancel]> y
Using /root/.rvm/gems/ruby-1.9.3-p125 with gemset dradis
root@root:/pentest/misc/dradis-git# cd ..

Install Dradis
In reset.sh and start.sh, chang
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
to
[[ -s /etc/profile.d/rvm.sh ]] && . /etc/profile.d/rvm.sh

root@root:/pentest/misc/dradis-git# ./reset.sh
Some Ruby gems are missing, do you want to install them now? [y] y
wait and if finish, type command again:
root@root:/pentest/misc/dradis-git# ./reset.sh
The config file [config/database.yml.template] was found not to be ready to use.
Do you want to initialize it? [y]es | [N]o | initialize [a]ll
a
root@root:/pentest/misc/dradis-git# cd server/
root@root:/pentest/misc/dradis-git/server# RAILS_ENV=production bundle exec rake assets:precompile

Running Dradis:
root@root:/pentest/misc/dradis-git# ./start.sh
To update dradis:
root@root:~# cd /pentest/misc/dradis-git/server
root@root:/pentest/misc/dradis-git/server# git pull

If you want change command in backtrack menu, go to main menu / System / Preferences / Main Menu / Back track / Reporting tools / Evindence Media / dradis / Properties
Change sh -c "cd /pentest/misc/dradis/ && ./start.sh;sudo -s"
to
sh -c "cd /pentest/misc/dradis-git/ && ./start.sh;sudo -s"

------------------------------------------------------------
Thanks for reading
--------------------------------------------------------------------------
Security Research
All my Lab:
Linux Lab -- window and Cisco Lab
to be continued - I will update more.

Nam Habach