How to make the perfect TOR VM in VirtualBox
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

install.sh 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #!/bin/sh
  2. apt-get -y 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. vim-tiny
  16. apt-get -y remove --purge nano
  17. mount /dev/cdrom /mnt && cd /mnt && ./VBoxLinuxAdditions.run
  18. cd -
  19. umount /mnt
  20. cd static && rsync -av . /
  21. echo net.ipv6.conf.all.disable_ipv6=1 >> /etc/sysctl.conf
  22. echo net.ipv6.conf.default.disable_ipv6=1 >> /etc/sysctl.conf
  23. for INSTUSER in `cd /home && ls -d *`
  24. do
  25. echo "Installing non-root setup for $INSTUSER"
  26. cp -R user/* /home/${INSTUSER}/
  27. chown -R ${INSTUSER}:${INSTUSER} /home/${INSTUSER}/
  28. echo "Disable bash_history for user ${INSTUSER}"
  29. rm -f /home/${INSTUSER}/.bash_history
  30. ln -s /dev/null /home/{$INSTUSER}/.bash_history
  31. done
  32. echo "Disable bash_history for root"
  33. rm -f /root/.bash_history
  34. ln -s /dev/null /root/.bash_history
  35. echo "Cleaning apt/pkg"
  36. apt-get clean
  37. echo "Cleaning syslog"
  38. /etc/init.d/rsyslog stop
  39. find /var/log -type f -print0 | xargs -0 rm
  40. echo "Time to reboot, setup will not work until you reboot"
  41. echo -n "Setup complete, press [Enter] to reboot (CTRL+C to reboot later)"
  42. read
  43. reboot