cp guest/bin/* /usr/local/bin

mkdir -p /usr/local/share/pbot-vm/
cp -r guest/lib/Languages/ /usr/local/share/pbot-vm/

cp guest/include/prelude.h /usr/include

cp guest/polkit/* /etc/polkit-1/rules.d/

nmcli networking off

if ! grep -qF "pbot-vm" /root/.bashrc; then
  echo '# pbot-vm' >> /root/.bashrc
  echo unset DEBUGINFOD_URLS >> /root/.bashrc
  echo export ASAN_OPTIONS=detect_leaks=0 >> /root/.bashrc
fi

echo PBot Guest VM is now set up.
echo
echo !! Networking is now disabled. To re-enable networking run: nmcli networking on
echo
echo For changes to take effect, run this command now: source /root/.bashrc