Thursday, September 10, 2015

Installing Virtualbox guest additions in KALI LINUX (1.x-2.0)

Installing Virtualbox guest additions in KALI LINUX (1.x-2.0):

The first and foremost starting with this do an update:

apt-get update

Recheck on your source file:

You can access your source file at  /etc/apt/source.list

cat /etc/apt/source.list

deb http://http.kali.org/kali kali main contrib non-free
deb http://security.kali.org/kali-security kali/updates main contrib non-free

deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security/ sana/updates main contrib non-free

Probabilities are there that you will not find the below lines:

deb http://http.kali.org/kali kali main contrib non-free
deb http://security.kali.org/kali-security kali/updates main contrib non-free

If not kindly add them (Source: g0tmi1k (https://twitter.com/g0tmilk))

You will have to require to do an update if you have edited your source file.

apt-get update

Next installing linux headers:

apt-get install -y linux-headers-$(uname -r)

or you can combine the above two commands with an && operator:

apt-get update && apt-get install -y linux-headers-$(uname -r)

Next is attaching the “Guest Additions” CD-ROM image. Select “Devices” from the VirtualBox menu and then select “Install Guest Additions”. This will mount the Guest Additions ISO in the virtual CD drive in your Kali Linux virtual machine. When prompted to autorun the CD, click the Cancel button.

Now call your friend THE TERMINAL

Search for a file in the cdrom and copy the VBoxLinuxAdditions.run to some local path on your system . I have copied it to root folder.

cp /media/cdrom/VBoxLinuxAdditions.run /root/

Change the permissions on the file to make it executable.

chmod 755 /root/VBoxLinuxAdditions.run

Go to the location where you have copied the VBoxLinuxAdditions.run file and run it. Below are the commands that can help you if you are stuck anywhere. :)

cd /root

./VBoxLinuxAdditions.run

Final step is to reboot the machine and Tada.
reboot

You have the guest additions installed and can use full screen and full mouse integrations kinda stuff. I know it is not rocket science but this additions will be very helpful.

No comments:

Post a Comment