Return to tor debian package
This commit is contained in:
parent
68d73d5057
commit
14307ee7e7
|
@ -954,12 +954,7 @@ EOF
|
||||||
|
|
||||||
if [[ $VARIANT == "usb" ]]; then
|
if [[ $VARIANT == "usb" ]]; then
|
||||||
# tor
|
# tor
|
||||||
echo "deb $TOR_PACKAGE_UPSTREAM $DEBIAN_VERSION main" | sudo tee -a $rootdir/etc/apt/sources.list.d/tor.list
|
chroot "$rootdir" apt-get -yq install tor
|
||||||
echo "deb-src $TOR_PACKAGE_UPSTREAM $DEBIAN_VERSION main" | sudo tee -a $rootdir/etc/apt/sources.list.d/tor.list
|
|
||||||
chroot "$rootdir" gpg --keyserver keys.gnupg.net --recv $TOR_GPG_KEY
|
|
||||||
chroot "$rootdir" gpg --export $TOR_GPG_KEY | sudo apt-key add -
|
|
||||||
chroot "$rootdir" apt-get update
|
|
||||||
chroot "$rootdir" apt-get -yq install tor deb.torproject.org-keyring
|
|
||||||
|
|
||||||
# xmpp client
|
# xmpp client
|
||||||
chroot "$rootdir" echo "deb ftp://ftp.gajim.org/debian unstable main" > /etc/apt/sources.list.d/gajim.list
|
chroot "$rootdir" echo "deb ftp://ftp.gajim.org/debian unstable main" > /etc/apt/sources.list.d/gajim.list
|
||||||
|
@ -1082,12 +1077,7 @@ function image_setup_utils {
|
||||||
chroot "$rootdir" apt-get -yq install fail2ban vim-common python3 unattended-upgrades
|
chroot "$rootdir" apt-get -yq install fail2ban vim-common python3 unattended-upgrades
|
||||||
|
|
||||||
# Tor and ssh over tor
|
# Tor and ssh over tor
|
||||||
echo "deb $TOR_PACKAGE_UPSTREAM $DEBIAN_VERSION main" | sudo tee -a $rootdir/etc/apt/sources.list.d/tor.list
|
chroot "$rootdir" apt-get -yq install tor connect-proxy
|
||||||
echo "deb-src $TOR_PACKAGE_UPSTREAM $DEBIAN_VERSION main" | sudo tee -a $rootdir/etc/apt/sources.list.d/tor.list
|
|
||||||
chroot "$rootdir" gpg --keyserver keys.gnupg.net --recv $TOR_GPG_KEY
|
|
||||||
chroot "$rootdir" gpg --export $TOR_GPG_KEY | sudo apt-key add -
|
|
||||||
chroot "$rootdir" apt-get update
|
|
||||||
chroot "$rootdir" apt-get -yq install tor deb.torproject.org-keyring connect-proxy
|
|
||||||
chroot "$rootdir" 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
|
||||||
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
|
||||||
|
|
|
@ -31,9 +31,6 @@
|
||||||
# The maximum amount of traffic per day in gigabytes
|
# The maximum amount of traffic per day in gigabytes
|
||||||
TOR_MAX_TRAFFIC_PER_DAY_GB=3
|
TOR_MAX_TRAFFIC_PER_DAY_GB=3
|
||||||
|
|
||||||
TOR_PACKAGE_UPSTREAM='http://deb.torproject.org/torproject.org'
|
|
||||||
TOR_GPG_KEY='A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89'
|
|
||||||
|
|
||||||
HIDDEN_SERVICE_PATH='/var/lib/tor/hidden_service_'
|
HIDDEN_SERVICE_PATH='/var/lib/tor/hidden_service_'
|
||||||
|
|
||||||
function add_email_hostname {
|
function add_email_hostname {
|
||||||
|
@ -272,12 +269,7 @@ function install_tor {
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "deb $TOR_PACKAGE_UPSTREAM $DEBIAN_VERSION main" | sudo tee -a /etc/apt/sources.list.d/tor.list
|
apt-get -yq install tor
|
||||||
echo "deb-src $TOR_PACKAGE_UPSTREAM $DEBIAN_VERSION main" | sudo tee -a /etc/apt/sources.list.d/tor.list
|
|
||||||
gpg --keyserver keys.gnupg.net --recv $TOR_GPG_KEY
|
|
||||||
gpg --export $TOR_GPG_KEY | sudo apt-key add -
|
|
||||||
apt-get update
|
|
||||||
apt-get -yq install tor deb.torproject.org-keyring
|
|
||||||
if [ ! -f /etc/tor/torrc ]; then
|
if [ ! -f /etc/tor/torrc ]; then
|
||||||
echo 'Tor failed to install'
|
echo 'Tor failed to install'
|
||||||
exit 38259
|
exit 38259
|
||||||
|
|
Loading…
Reference in New Issue