Installing tor from backports
This commit is contained in:
parent
f553e502ec
commit
21468a0547
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue