Install Freedombox packages on Trisquel

Introduction

Since trisquel is a GNU/Linux distribution that uses the debian packaging system, it's easier to install some freedombox packages on it than parabola...

Freedombox privoxy

Clone freedombox privoxy:
git clone https://github.com/jvasile/freedombox-privoxy
cd freedombox-privoxy
Then we need to apply that patch to ensure that we build against the debian version of freedbox-privoxy. Copy the following text in a file named 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.4

Then run:
git am trisquel.patch
Then we need to build the packages, run:
make deb
It 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 1
Then run make deb again:
make deb
Then install the result:
sudo apt-get purge privoxy # yes, this is necessary the first time
sudo dpkg -i Debian/*.deb
Edit the configuration file to not listen on all addresses if necessary (for instance if trisquel is directly connected to the internet...):
vim /etc/privoxy/config
Change 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:8118
And start the service:
sudo service privoxy restart
and verify that it really listens on the right address:
sudo netstat -antp | grep privoxy
To 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

Revisions

02/10/2013 - 00:17
GNUtoo
08/13/2013 - 18:44
lloydsmart
12/04/2013 - 09:59
greenman