Backtrack How to

This is an collection of problems and bugs I had with Backtrack 5 R2 (Linux based Distribution).

To download Backtrack look at


Ubuntu software centre and update manager

For more Software, I installed the ubuntu software centre with this command:

then run a update:

now you could choose your software sources at:

System > Administration > Software Sources

If you want the Update manager, run this:

Or you could add the ubuntu repository to your system, just open the “/etc/apt/sources.list” file and generate a list from, now you could add what you want.


NVIDIA or ATI/AMD driver


just run it from your download folder.



After a reboot you could check your driver status with:



If you need more features at your network just install what you need:

network-manager-openvpn – network management framework (OpenVPN plugin core)
network-manager-openvpn-gnome – Network Management framework (OpenVPN plugin GNOME GUI)
network-manager-pptp – network management framework (PPTP plugin)
network-manager-pptp-gnome – network management framework (PPTP plugin)
network-manager-vpnc – network management framework (VPNC plugin core)
network-manager-vpnc-gnome – network management framework (VPNC plugin GNOME GUI)
network-manager – network management framework daemon
network-manager-dev – network management framework (development files)
network-manager-gnome – network management framework (GNOME frontend)


Add the Network icon to the panel:


network is blocked

To solved this run this:


Disable bell in terminal

open the file “/etc/inputrc” and add this:


Mint backup

run this:


BUG : wait for sound system to respond

System > Preferences > Startup Applications add this:


BUG : Couldn’t execute command: xscreensaver-command -lock

run this command:

System > Preferences > Keyboard Shortcuts
Lock Screen disable.
Add new “Ctrl+Alt+L” with “xlock” ,apply done!


BUG : Chrome wont start as root

Menue>Internet>Chrome>Properties>Comand and add this:


BUG : run a *.deb


BUG : E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Limit. Current value: 25165824. (man 5 apt.conf)

Solution A:

open “/etc/apt/apt.conf.d/70debconf” and add this:

then run this:

Solution B:

open “/etc/apt/apt.conf.d/90user” and add this:


BUG : GRUB2 error: out of disk


BUG : VLC is not supposed to be run as root. Sorry.

In line 7F8, replace “geteuid” with “getppid”.

Bash rename files

This is an example how to rename files with regex.

At first we need to create some files:

Lets look what we got:

now rename this files:

And we see the renamed files:

Benchmark Bash fastest replace with tr sed awk perl

Test String (10xX):

Test Cases Results must look like:

single char remove:

single char replace:

string/multi char remove:

string/multi char replace:


run the test string from file 100000 times.

single char remove single char replace multi char remove multi char replace string remove string replace
sed 5.658s 5.774s 3.449s 5.929s 3.476s 5.724s
perl regex 5.604s 5.918s 3.428s 6.027s 3.482s 5.870s
awk gsub 3.469s 5.892s 3.339s 5.942s
tr bash 5.972s 5.897s
perl tr  5.996s  5.837s


For bash its the easiest way to use sed because its simpler to use perl and it could do the most things or if you do simple things you could use tr.In perl you could see this benchmark.

SED 4.2.2

single char remove:

single char replace:

multi char remove:

multi char replace:

string remove:

string replace:


AWK 4.0.1

single replace with regex not possible.

multi char remove:

multi char replace:

string remove:

string replace:


TR 8.21

single replace and remove not possible.

multi char replace:

string replace:



single char remove:

single char replace:

multi char remove:

multi char replace:

string remove:

string replace:



multi char replace:

string replace:


Get IP´s

To get the adapters wit IPs use this: