From ddbb97a2a3898ca680d3b9f2ed69e35de57dcc0a Mon Sep 17 00:00:00 2001 From: Jason Mehring Date: Wed, 15 Oct 2014 02:57:19 -0400 Subject: [PATCH] Added additional configurations to allow Whonix to boot with tor enabled --- .../etc/udev/rules.d/99-qubes-whonix.rules | 2 +- .../02_install_groups_packages_installed.sh | 15 +++++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/scripts_debian/custom_wheezy_whonix-gateway/extra-whonix-files/etc/udev/rules.d/99-qubes-whonix.rules b/scripts_debian/custom_wheezy_whonix-gateway/extra-whonix-files/etc/udev/rules.d/99-qubes-whonix.rules index fe68663..679a178 100644 --- a/scripts_debian/custom_wheezy_whonix-gateway/extra-whonix-files/etc/udev/rules.d/99-qubes-whonix.rules +++ b/scripts_debian/custom_wheezy_whonix-gateway/extra-whonix-files/etc/udev/rules.d/99-qubes-whonix.rules @@ -1,2 +1,2 @@ - SUBSYSTEMS=="xen", KERNEL=="eth*", ACTION=="add", RUN+="/usr/lib/whonix/setup-ip" +SUBSYSTEMS=="xen", KERNEL=="eth*", ACTION=="online", RUN+="/usr/lib/whonix/setup-ip" diff --git a/scripts_debian/custom_wheezy_whonix/02_install_groups_packages_installed.sh b/scripts_debian/custom_wheezy_whonix/02_install_groups_packages_installed.sh index 21c3f98..c7eb388 100755 --- a/scripts_debian/custom_wheezy_whonix/02_install_groups_packages_installed.sh +++ b/scripts_debian/custom_wheezy_whonix/02_install_groups_packages_installed.sh @@ -64,10 +64,12 @@ sudo rm -f resolv.conf sudo ln -s resolv.conf.backup resolv.conf popd -sudo update-rc.d network-manager disable -sudo update-rc.d spice-vdagent disable -sudo update-rc.d swap-file-creator disable -sudo update-rc.d whonix-initializer disable +# Enable Tor +sudo sed -i 's/#DisableNetwork 0/DisableNetwork 0/g' /etc/tor/torrc + +# Fake that whonixsetup was already run +sudo mkdir -p /var/lib/whonix/do_once +sudo touch /var/lib/whonix/do_once/whonixsetup.done # Fake that initializer was already run sudo mkdir -p /root/.whonix @@ -79,6 +81,11 @@ sudo su -c 'echo WHONIXCHECK_NO_EXIT_ON_UNSUPPORTED_VIRTUALIZER=\"1\" >> /etc/wh # Ensure umask set in /etc/login.defs is used (022) sudo su -c 'echo "session optional pam_umask.so" >> /etc/pam.d/common-session' +sudo update-rc.d network-manager disable +sudo update-rc.d spice-vdagent disable +sudo update-rc.d swap-file-creator disable +sudo update-rc.d whonix-initializer disable + sudo touch "/tmp/.prepared_whonix" EOF