//
you're reading...
Ethical Hacking

Install VMWare Tools in Backtrack 5 R1

Now the release of Backtrack 5 R1 is out so its time again to configure the new version with scripts that I used on previous versions.

I did have some issues setting up BT5 today with installing VMWare tools so I decided to mirror the info that can be found on the Wiki //  www.backtrack-linux.org/wiki

Here it goes :

 
Installing VMware Tools in BackTrack
NOTE: 

Our VMware image of BackTrack has VMware Tools installed by default. 
Backtrack 5 R1 
 In case you need to manually install the VMware Tools you first have to prepare your kernel source by issuing 
the following commands: 

 


root@bt:~# ln -s /usr/src/linux /lib/modules/2.6.39.4/build


 
 

Next on the VMware Player, we click Virtual Machine -> Install VMware Tools. 
 
Now let's quickly setup the VMware Tools by issuing the following commands: 

 


root@bt:~# mkdir /mnt/cdrom; mount /dev/cdrom  /mnt/cdrom

root@bt:~# cp /mnt/cdrom/VMwareTools-<version>.tar.gz /tmp/

root@bt:~# cd /tmp/
root@bt:~# tar zxpf VMwareTools-<version>.tar.gz 
root@bt:~# cd vmware-tools-distrib/
root@bt:~# ./vmware-install.pl 


 


NOTE: After this a series of questions will come, if you are unsure about them just leave them default. 
 WHEN ASKED IF YOU WANT THE SCRIPT TO RUN VMWARE-CONFIG-TOOLS.PL FOR YOU, SAY NO! 
 

We now need to apply some patches to the VMWare kernel module sources before they are built. So: 
Before running VMware Tools for the first time, you need to configure it by 
invoking the following command: 

"/usr/bin/vmware-config-tools.pl". 

Do you want 
this program to invoke the command for you now? [yes] no

 

Now we apply the vmware-tools 2.6.39 patch: 


root@bt:~# cd /usr/lib/vmware-tools/modules/source/
root@bt:~# for file in *.tar;do tar xpf $file;done


root@bt:~# rm *.tar
root@bt:~# wget www.backtrack-linux.org/vmtools2639.patch

root@bt:~# patch -p1 < vmtools2639.patch 
root@bt:~# for dir in $(ls -l |grep only|awk -F" " '{print $8}' |cut -d"-" -f1);do tar cvf $dir.tar $dir-only;rm -rf $dir-only;done

root@bt:~# vmware-config-tools.pl
Advertisements

Discussion

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: