#!/bin/sh #script to prepare kali desktop vm for cloning apt-get dist-upgrade #chrome remote desktop wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb sudo apt install --assume-yes ./google-chrome-stable_current_amd64.deb wget https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb sudo apt install --assume-yes ./chrome-remote-desktop_current_amd64.deb #open ssh apt-get install -y open-vm-tools-desktop openssh-server cat /dev/null > /var/log/wtmp cat /dev/null > /var/log/lastlog rm -rf /tmp/* rm -rf /var/tmp/* rm -f /etc/ssh/ssh_host* rm -f /etc/udev/rules.d/70-persistent-net.rules cat < /etc/machine-id rm /var/lib/dbus/machine-id ln -s /etc/machine-id /var/lib/dbus/machine-id echo "remove git repo and then issue a shutdown - h now"