Turning Debian into Kali

A brain-dump of the commands I used to convert a debian virtual machine to kali.

sudo sed -i 's/stretch/buster/g' /etc/apt/sources.list
sudo sed -i 's/stretch/buster/g' /etc/apt/sources.list.d/qubes-r4.list
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get autoremove
git clone https://github.com/LionSec/katoolin.git
sudo cp katoolin/katoolin.py /usr/bin/katoolin
sudo chmod +x /usr/bin/katoolin
rm -rf katoolin
sudo katoolin
  #select 1, then 1 and 2 (add repos and update)
  #Ctrl-C to quit katoolin
sudo apt-get dist-upgrade
sudo apt-get autoremove
  #need at least 32GB disk space (increase size if in a VM)
  #https://iamjagjeetubhi.wordpress.com/2017/04/10/fix-unable-to-locate-package-error-in-kali-linux/
sudo nano /etc/apt/sources.list
  ADD TO END
deb http://http.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src http://http.kali.org/kali kali-rolling 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
# For source package access, uncomment the following line
# deb-src http://http.kali.org/kali sana main non-free contrib
# deb-src http://security.kali.org/kali-security sana/updates main contrib non-free
deb http://old.kali.org/kali moto main non-free contrib
# For source package access, uncomment the following line
# deb-src http://old.kali.org/kali moto main non-free contrib
  END ADD
sudo katoolin
  select 2 and install everything
sudo apt autoremove --purge shashlik thunderbird texstudio xzdec perl-tk texlive texlive-latex-base texlive-latex-extra texlive-latex-recommended
apt autoremove