Enviado por alejandro_blue el Dom, 04/15/2018 - 03:45.
Revisión de Instalar paquetes de Freedombox en Trisquel de Dom, 04/15/2018 - 03:45
La revisión le permite rastrear las diferencias que hay entre distintas versiones de una entrada.
Introducción
Puesto que Trisquel es una distribución GNU/Linux que usa el sistema de paquetes de Debian, es más fácil instalar algunos paquetes de freedombox que en Parabola.Freedombox privoxy
Clonar freedombox privoxy:git clone https://github.com/jvasile/freedombox-privoxy cd freedombox-privoxyLuego necesitamos aplicar ese parche para asegurar que estamos haciendo el build contra la versión de Debian de freedbox-privoxy. Copie el siguiente texto en un archivo llamado trisquel.patch
From ba2451de6612667ea48df1ab6d3f74d8eabd0226 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org> Date: Sat, 9 Feb 2013 17:21:13 +0100 Subject: [PATCH] Make freedombox privoxy work in trisquel 5.5 Not all Debian-based GNU/Linux distributions have the same version of privoxy as debian. That changes fetches the privoxy packages from debian to have the required version that works. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org> --- make_deb.sh | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/make_deb.sh b/make_deb.sh index 1950bf7..21ba4cd 100755 --- a/make_deb.sh +++ b/make_deb.sh @@ -91,7 +91,11 @@ mkdir -p Debian cd Debian ## Install source package -apt-get source privoxy +#apt-get source privoxy +wget http://ftp.de.debian.org/debian/pool/main/p/privoxy/privoxy_3.0.19-2.dsc +wget http://ftp.de.debian.org/debian/pool/main/p/privoxy/privoxy_3.0.19.orig.tar.gz +wget http://ftp.de.debian.org/debian/pool/main/p/privoxy/privoxy_3.0.19-2.debian.tar.gz +dpkg-source -x privoxy_3.0.19-2.dsc echo You might need to \"apt-get build-dep privoxy\" as root dir_setup add_patch config -- 1.7.5.4Then run:
git am trisquel.patchThen we need to build the packages, run:
make debIt will probably fails with:
Traceback (most recent call last): File "./abp_import.py", line 101, in 0 main() File "./abp_import.py", line 98, in main print translate_all(easylist, infile) File "./abp_import.py", line 71, in translate_all str += translate(line) File "./abp_import.py", line 54, in translate pat, opts = line.split("$",2) ValueError: too many values to unpack make: *** [privoxy/easylist.action] Error 1Then run make deb again:
make debThen install the result:
sudo apt-get purge privoxy # yes, this is necessary the first time sudo dpkg -i Debian/*.debEdit the configuration file to not listen on all addresses if necessary (for instance if trisquel is directly connected to the internet...):
vim /etc/privoxy/configChange listen-address to the lan interface instead of 0.0.0.0:8118 if your trisquel server is directly conected to the inetrnet:
listen-address 192.168.1.1:8118And start the service:
sudo service privoxy restartand verify that it really listens on the right address:
sudo netstat -antp | grep privoxyTo benefit from it, make your browser use the proxy:
- for abrowser,IceCat,Iceweasel-libre go in preferences->advanced->settings and click on manual proxy configurations, put the IP of the trisquel server in HTTP Proxy and 8118 for the port and check the "Use this proxy server for all protocols" box