diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index acd15dba..a62b883c 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -1623,7 +1623,7 @@ EOF if [[ "$VARIANT" == "usb" ]]; then # tor - chroot "$rootdir" apt-get -yq install tor + chroot "$rootdir" apt-get -yq -t stretch-backports install tor # xmpp client chroot "$rootdir" echo "deb ftp://ftp.gajim.org/debian unstable main" > /etc/apt/sources.list.d/gajim.list @@ -1756,7 +1756,8 @@ image_setup_utils() { chroot "$rootdir" apt-get -yq install vim-common python3 unattended-upgrades # Tor and ssh over tor - chroot "$rootdir" apt-get -yq install tor connect-proxy + chroot "$rootdir" apt-get -yq -t stretch-backports install tor + chroot "$rootdir" apt-get -yq install connect-proxy chroot "$rootdir" connect-proxy sed -i 's|#Log notice file.*|Log notice file /dev/null|g' "$rootdir/etc/tor/torrc" sed -i 's|Log notice file.*|Log notice file /dev/null|g' "$rootdir/etc/tor/torrc" diff --git a/src/freedombone-utils-onion b/src/freedombone-utils-onion index f0ab1ac2..68b9bdb5 100755 --- a/src/freedombone-utils-onion +++ b/src/freedombone-utils-onion @@ -224,7 +224,8 @@ function enable_ssh_via_onion { if [[ $(is_completed "${FUNCNAME[0]}") == "1" ]]; then return fi - apt-get -yq install tor connect-proxy + echo 'N' | apt-get -yq -t stretch-backports install tor + apt-get -yq install connect-proxy if ! grep -q 'Host *.onion' "/home/$MY_USERNAME/.ssh/config"; then if [ ! -d "/home/$MY_USERNAME/.ssh" ]; then mkdir "/home/$MY_USERNAME/.ssh" @@ -339,7 +340,8 @@ function route_outgoing_traffic_through_tor { if [[ $ROUTE_THROUGH_TOR != "yes" ]]; then return fi - apt-get -yq install tor tor-arm + echo 'N' | apt-get -yq -t stretch-backports install tor + echo 'N' | apt-get -yq -t stretch-backports install tor-arm ### set variables # Destinations you don't want routed through Tor