step 2 install virtual box - ewupenguin.ewu.edu/cscd303/labs/kali_lab_setup.pdf · 2017-10-09 ·...
TRANSCRIPT
![Page 1: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/1.jpg)
Kali Linux VM Setup (this walkthrough is for Virtual Box)
Step 1 – Download Virtual Box and Kali .iso Virtual Box – https://www.virtualbox.org/wiki/Downloads
Kali Linux – https://www.kali.org/downloads/
**If you have a 64 bit system download the 64 bit version & 32 bit version if you have a 32 bit system**
Step 2 – Install Virtual Box
Right click on the VirtualBox installer and select “Run as administrator”. Follow the prompt.
![Page 2: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/2.jpg)
Step 3 – Start Virtual Box
Click on “New”. This will begin creation of a new virtual machine.
![Page 3: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/3.jpg)
Name it whatever you want. Click the drop down next to Type, select Linux. Then click the drop down
next to Version select Debian (64-bit) unless you’re on a 32 bit system then select Debian (32-bit). Click
“Next”.
![Page 4: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/4.jpg)
Set the memory size. You can type in the amount you would like to give the Virtual Machine. I chose
2048. This can be changed later.
**If you don’t give enough memory the VM will be slow, if you give it too much the host will be slow**
Once that is done click “Next”.
![Page 5: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/5.jpg)
By default, “Create a virtual hard disk now” should be selected. Click “Create”.
![Page 6: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/6.jpg)
Again, take the default and click “Next”.
![Page 7: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/7.jpg)
Take the default again and click “Next”.
![Page 8: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/8.jpg)
I set this to 32 GB. If you have more space to spare, try 64 GB. **DO NOT take the default**
Click “Create”.
![Page 9: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/9.jpg)
Now that the Virtual Machine is created open its settings and go to Network. Make your Network
settings look just like the above. Press “OK” and start the Virtual Machine.
![Page 10: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/10.jpg)
Step 4 – Install the Kali .ios
The “Select start-up disk” window will pop up, browse to the Kali .iso you downloaded in step one. Press
“Start”.
![Page 11: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/11.jpg)
Select “Install”
Choose the language to be used for the installation.
Select your location.
![Page 12: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/12.jpg)
Enter the host name for the system. This can be whatever you want.
![Page 13: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/13.jpg)
Domain name is not required. Just hit enter to continue.
![Page 14: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/14.jpg)
Enter a root password. DO NOT FORGET THIS PASSWORD.
Hit enter to continue and re-enter the password.
Now set your time zone and hit enter.
![Page 15: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/15.jpg)
Take the default here and press enter.
![Page 16: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/16.jpg)
Again, hit enter.
![Page 17: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/17.jpg)
Enter again here.
![Page 18: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/18.jpg)
Tab over to “Yes” and hit enter. Installation will begin. This takes time so be patient.
![Page 19: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/19.jpg)
When that finishes it will ask if you want to use a Network Mirror. Select the default “No” and hit enter.
![Page 20: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/20.jpg)
Take the default “Yes” here by hitting enter.
![Page 21: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/21.jpg)
Select the second option here and press enter.
![Page 22: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/22.jpg)
Again, press enter here.
![Page 23: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/23.jpg)
Once Kali boots login as root using the password you created during installation.
![Page 24: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/24.jpg)
Now your Kali VM is installed. Let move on to the final step.
![Page 25: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/25.jpg)
Step 5 – Tweak, Update and Install Guest Additions
Open a terminal and change the directory to /etc/NetworkManager/ using the cd command.
![Page 26: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/26.jpg)
Now we want to edit the NetworkManager.conf file. I recommend using vim but for those not familiar
with such we will use nano. Issue the command shown above…
![Page 27: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/27.jpg)
Where it says managed=false change this to managed=true. Hit Ctrl-O to save the file then Ctrl-X to exit.
![Page 28: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/28.jpg)
Next we want to change the directory to /etc/apt/ again using the cd command show above and open
the sources.list file with nano to make sure the source file contains the correct repositories.
![Page 29: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/29.jpg)
Make sure it looks like the above by typing such in. Once done hit Ctrl-O to save and Ctrl-X to exit
![Page 30: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/30.jpg)
Now that we have the correct repositories in our source.list file lets update Kali using the command
shown above. This will take some time so be patient. Once it is finished you will want to issue the apt-
get dist-upgrade -y command. When this is finished reboot Kali and do the apt-get update && apt-get
upgrade -y command to make sure you have everything.
![Page 31: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/31.jpg)
Now let’s check the Linux headers by issuing the above command. When this finished do the apt-get
update && apt-get upgrade -y again just in case. (There will probably be nothing) then in the terminal
type reboot to reboot the Virtual Machine.
![Page 32: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/32.jpg)
Now we will install the Guest Additions by going to “Devices” and clicking “Insert Guest Additions CD
image”
![Page 33: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/33.jpg)
A pop up will appear asking if you want to run the software on the CD. Click “Run” and it will fail.
![Page 34: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/34.jpg)
We will now want to open a terminal and change the directory to /media/cdrom0/ using the cd
command shown above.
![Page 35: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/35.jpg)
Next you will want to make a copy of VBoxLinuxAdditions.run and put it in your Desktop directory using
the command above.
![Page 36: Step 2 Install Virtual Box - EWUpenguin.ewu.edu/cscd303/Labs/kali_lab_setup.pdf · 2017-10-09 · Now that we have the correct repositories in our source.list file lets update Kali](https://reader033.vdocument.in/reader033/viewer/2022041819/5e5ce5080e1dac3c8f0699da/html5/thumbnails/36.jpg)
You will now want to run the VBoxLinusAdditions.run using ./VBoxLinusAdditions.run from you
~/Desktop/ directory. Once this finishes you may remove VBoxLinusAdditions.run and eject the
VBOXADDITIONS cd image.
That’s it! Enjoy!
Created by Rodney Thomas for the EWU Cybersecurity Club