Change Username, Hostname and password
Log in as the current user, then switch to root:
sudo su
Enable root login:
sudo passwd root
Sign out and sign back in as root.
Rename old user:
killall -u kali
usermod -l pickle kali
groupmod -n pickle kali
mv /home/kali /home/pickle
usermod -d /home/pickle pickle
chown -R pickle:pickle /home/pickle
passwd pickle
find /home/pickle -type f -exec sed -i 's|/home/kali|/home/pickle|g' {} +
Replace Hostname:
echo "pickle" > /etc/hostname
sed -i "s/kali/pickle/g" /etc/hosts
reboot
Pimp-my-Kali
git clone https://github.com/Dewalt-arch/pimpmykali.git
cd pimpmykali
sudo ./pimpmykali.sh
Select N for new setup
Oh-My-Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Configure Themes:
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
Configure Shadow Command History:
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
Update ~/.zshrc
ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
source ~/.zshrc
Installing Extra Packages
sudo apt update && sudo apt install -y rlwrap curl git htop wget build-essential unzip
wget https://golang.org/dl/go1.21.5.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.21.5.linux-amd64.tar.gz
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.zshrc
echo 'export PATH=$PATH:$(go env GOPATH)/bin' >> ~/.zshrc
source ~/.zshrc
Install fd and rg for quick search and find (fd finds files by name, rg finds files by content)
sudo apt install -y fd-find ripgrep
sudo ln -s $(which fdfind) /usr/local/bin/fd
Resizing disk
If you changed the disk size in the VM settings, you will need to repartition.
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 100G 0 disk
└─sda1 8:1 0 80.1G 0 part /
sudo gparted
- In the GParted interface:
- Select your virtual disk (e.g.,
/dev/sda
). - Locate the unallocated space at the end of the disk.
- Right-click on the root partition (e.g.,
/dev/sda1
) and select Resize/Move. - Drag the slider to expand the partition to use all the unallocated space.
- Click Apply (green tick) to make the changes.