#!/bin/sh #script to prepare ubuntu desktop vm for linked cloning apt-get update apt-get 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/hostname apt-get clean chmod +x /etc/rc.local systemctl stop apt-daily-upgrade.timer systemctl disable apt-daily-upgrade.timer systemctl stop apt-daily.timer systemctl disable apt-daily.timer sudo apt autoremove -y #truncate the machine id to avoid duplicate dhcp #OM fixes echo -n > /etc/machine-id rm /var/lib/dbus/machine-id ln -s /etc/machine-id /var/lib/dbus/machine-id