How to make the perfect TOR VM in VirtualBox
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

install.sh 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #!/bin/sh
  2. apt-get install \
  3. build-essential \
  4. linux-headers-amd64 \
  5. iptables-persistent \
  6. gdm3 \
  7. vlc \
  8. firefox-esr \
  9. transmission \
  10. enlightenment \
  11. redsocks \
  12. tor \
  13. rsync \
  14. unbound \
  15. mount /dev/cdrom /mnt && cd /mnt && ./VBoxLinuxAdditions.run
  16. cd -
  17. umount /mnt
  18. cd static && rsync -av . /
  19. echo net.ipv6.conf.all.disable_ipv6=1 >> /etc/sysctl.conf
  20. echo net.ipv6.conf.default.disable_ipv6=1 >> /etc/sysctl.conf
  21. for INSTUSER in `cd /home && ls -d *`
  22. do
  23. echo "Installing non-root setup for $INSTUSER"
  24. cp -R user/* /home/${INSTUSER}/
  25. chown -R ${INSTUSER}:${INSTUSER} /home/${INSTUSER}/
  26. echo "Disable bash_history for user ${INSTUSER}"
  27. rm -f /home/${INSTUSER}/.bash_history
  28. ln -s /dev/null /home/{$INSTUSER}/.bash_history
  29. done
  30. echo "Disable bash_history for root"
  31. rm -f /root/.bash_history
  32. ln -s /dev/null /root/.bash_history
  33. echo "Cleaning apt/pkg"
  34. apt-get clean
  35. echo "Cleaning syslog"
  36. /etc/init.d/rsyslog stop
  37. find /var/log -type f -print0 | xargs -0 rm
  38. echo "Time to reboot, setup will not work until you reboot"
  39. echo -n "Setup complete, press [Enter] to reboot (CTRL+C to reboot later)"
  40. read
  41. reboot