Get ready hackerman, In this tutorial I'll show you how to install Kali linux as a virtualbox VM in any OS, and I'll show you how I like to configure it for cybersecurity work.
1. Installing Virtualbox
Go to virtualbox.org and follow the instructions to install the version compatible with your OS.
2. Downloading the preconfigured Kali VM
In kali.org you'll find the pre-configured virtual machine for virtualbox, download that, extract it, and import into virtualbox using the green plus button.
3. Setting a password for the root user, enabling root login
You can change the current user's password using the command passwd
, you should do that for the kali user, and then using sudo su
, impersonate the root user to run passwd
again, setting the password for root.
4. Change the default username, password and hostname
to change the hostname, change kali to your prefered hostname in the /etc/hosts
file using sudo nano /etc/hosts
.
After that you'll also need to run hostnamectl set-hostname <new-hostname>
to propagate that change.
Now reboot the system, and in the login screen log into the root user with the password you just created.
As root rename the kali user and kali group to whatever name you want using the following commands
usermod -l <new_username> -d /home/kali -m kali
and
groupmod -n <new_username> kali
After that, reboot again and log in using your new username.
5. Updating the system software
You can update the system using sudo apt update && sudo apt upgrade -y