Delivery-Date: Tue, 10 Mar 2015 16:20:41 -0400
Return-Path: <tor-talk-bounces@lists.torproject.org>
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on moria.seul.org
X-Spam-Level: 
X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,
	RCVD_IN_DNSWL_MED,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY,
	URIBL_BLOCKED autolearn=ham version=3.3.1
X-Original-To: archiver@seul.org
Delivered-To: archiver@seul.org
Received: from eugeni.torproject.org (eugeni.torproject.org [38.229.72.13])
	(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by khazad-dum.seul.org (Postfix) with ESMTPS id B4A0C1E0AF3
	for <archiver@seul.org>; Tue, 10 Mar 2015 16:20:38 -0400 (EDT)
Received: from eugeni.torproject.org (localhost [127.0.0.1])
	by eugeni.torproject.org (Postfix) with ESMTP id 3A750347F4;
	Tue, 10 Mar 2015 20:20:35 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by eugeni.torproject.org (Postfix) with ESMTP id E1C58347E7
 for <tor-talk@lists.torproject.org>; Tue, 10 Mar 2015 20:20:30 +0000 (UTC)
X-Virus-Scanned: Debian amavisd-new at 
Received: from eugeni.torproject.org ([127.0.0.1])
 by localhost (eugeni.torproject.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id ChK28S_mh452 for <tor-talk@lists.torproject.org>;
 Tue, 10 Mar 2015 20:20:30 +0000 (UTC)
Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client CN "*.riseup.net",
 Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified))
 by eugeni.torproject.org (Postfix) with ESMTPS id A7ED5345DB
 for <tor-talk@lists.torproject.org>; Tue, 10 Mar 2015 20:20:30 +0000 (UTC)
Received: from berryeater.riseup.net (berryeater-pn.riseup.net [10.0.1.120])
 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
 (Client CN "*.riseup.net",
 Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK))
 by mx1.riseup.net (Postfix) with ESMTPS id C4CD24162C
 for <tor-talk@lists.torproject.org>; Tue, 10 Mar 2015 20:20:27 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak;
 t=1426018827; bh=4jfdNoW0L8dHEK/7p/kO1G6CChSrlj+HuKHe4xAWo8M=;
 h=Date:From:To:Subject:References:In-Reply-To:From;
 b=f6MIwRsPNNxh9IMg3cHV32IXu6OOv4NIuT2vUxRfod8z17hF0l92AWFxBfrFkuyfB
 RzAAfoxTRbCWhA5Zs0hFaZnL2mlgUALqmqnk5ePpY+9MnF30qgGfruttM96J/YGkDN
 5g7KLgPZoPCM1AJ4NzIGe1HTmIgi1Y6tEKer8kuc=
Received: from [127.0.0.1] (localhost [127.0.0.1])
 (Authenticated sender: mirimir) with ESMTPSA id EDBB842A48
Message-ID: <54FF520E.3070803@riseup.net>
Date: Tue, 10 Mar 2015 14:20:30 -0600
From: Mirimir <mirimir@riseup.net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
 rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: tor-talk@lists.torproject.org
References: <54FE57AB.3090805@riseup.net>
 <20150310055813.GH13765@inner.h.apk.li> <54FE9AB0.8090406@riseup.net>
 <54FEB311.202@torproject.org> <54FEBE3E.10502@riseup.net>
In-Reply-To: <54FEBE3E.10502@riseup.net>
X-Virus-Scanned: clamav-milter 0.98.6 at mx1
X-Virus-Status: Clean
Subject: Re: [tor-talk] Tor Browser 4.5a4 on Raspbian wheezy
X-BeenThere: tor-talk@lists.torproject.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: tor-talk@lists.torproject.org
List-Id: "all discussion about theory, design,
 and development of Onion Routing" <tor-talk.lists.torproject.org>
List-Unsubscribe: <https://lists.torproject.org/cgi-bin/mailman/options/tor-talk>, 
 <mailto:tor-talk-request@lists.torproject.org?subject=unsubscribe>
List-Archive: <http://lists.torproject.org/pipermail/tor-talk/>
List-Post: <mailto:tor-talk@lists.torproject.org>
List-Help: <mailto:tor-talk-request@lists.torproject.org?subject=help>
List-Subscribe: <https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk>, 
 <mailto:tor-talk-request@lists.torproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: tor-talk-bounces@lists.torproject.org
Sender: "tor-talk" <tor-talk-bounces@lists.torproject.org>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/10/2015 03:49 AM, Mirimir wrote:
> On 03/10/2015 03:02 AM, Georg Koppen wrote:
>> Mirimir:
>>> On 03/09/2015 11:58 PM, Andreas Krey wrote:
>>>> On Mon, 09 Mar 2015 20:32:11 +0000, Mirimir wrote:
>>>>> I've built Tor Browser 4.5a4 on Raspbian wheezy, using instructions at
>>>>> <https://trac.torproject.org/projects/tor/wiki/doc/TorBrowser/Hacking>.
>>>>>
>>>>> Is this news, or unremarkable?
> 
>> Nice. I have not heard someone trying to do that before.

Thanks for your help.

>>>> At least, it's interesting. I wanted to look into that myself (because
>>>> I only have a raspberry at one place and want the TTB), but...
>>>>
>>>> Did you build on the rasperry or cross? Care to share details?
>>>>
>>>> Andreas
>>>
>>> I built on a Pi 2, with Raspbian wheezy on a 32GB class 10 microSDHC
>>> card. It took 6-7 hours at 100% CPU, and I had to cool the Pi 2 with a
>>> small fan to prevent overheating. I followed exactly the instructions in
>>> the above URL at "Building Just Firefox", except that I commented out
>>> "ac_add_options --enable-tor-browser-update" in
>>> "~/tor-browser/.mozconfig" after configuring.
>>>
>>> After "make -C obj-* package INNER_MAKE_PACKAGE=true", I executed
>>> "~/tor-browser/obj-armv7l-unknown-linux-gnueabihf/dist/firefox/firefox".
>>> And it works. But I've since discovered that add-ons are broken.
> 
>> Not sure what you mean with "works" but starting it this way will create
>> a new profile (or use an existing one) without any of the extensions
>> needed for Tor Browser (like Torbutton and HTTPS-Everywhere etc.) and
>> without tor and pluggable transports.
> 
> Given how I built Firefox, what is the proper way to start it? I'm
> guessing that there isn't one, given what I have so far. The
> instructions that I followed say to copy Firefox into an existing Tor
> Browser folder. But of course, I don't have one of those in Raspbian
> wheezy. If I did, I wouldn't be building from source.
> 
> I'm using this Pi with a Tor gateway Pi, so I don't need tor or
> pluggable transports. But I do need the profile and extensions.
> 
>>> Browsing "about:addons", I get:
>>>
>>> | XML Parsing Error: undefined entity
>>> | Location: about:addons
>>> | Line Number 390, column 15:
>>> |
>>> |            <label value="&plugins.installed.find;"/>
>>> | -----------^
>>>
>>> I'm not sure how to proceed, and would appreciate suggestions. I don't
> 
>> Commit bc305e697edb6860fe035e4b67fc5f027de237a5 in Tor Browser needs
>> this entity and Torbutton defines it. This is, again, a sign that you
>> are missing the extensions we ship in Tor Browser.
> 
> What are my options for creating a proper Tor Browser profile with the
> requisite extensions (Torbutton, HTTPS-Everywhere, NoScript,etc)? Might
> I just copy that from the Tor Browser 4.5a4 release for Debian/Ubuntu?
> Otherwise, I suspect that I'd need to build the complete bundle from
> <https://git.torproject.org/builders/tor-browser-bundle.git>. Or is
> there another solution?

The simple approach worked, presumably because nothing in Tor Browser
except Firefox (and Tor, which I remove) is architecture-dependent. But
a little tweaking was required. I installed tor-browser_en-US from
tor-browser-linux32-4.5a4_en-US.tar.xz, and overwrote the Firefox folder
from the build. Because Tor is running on a gateway Pi, I also deleted
the Tor folder.

In order to have Tor Browser run without local tor process, I added two
lines to prefs.js in the profiles:

| user_pref("extensions.torlauncher.prompt_at_startup", false);
| user_pref("extensions.torlauncher.start_tor", false);

Once Tor Browser would run, I changed SocksPort to 192.168.2.1:9150 and
disabled the TorLauncher extension. All expected extensions are present.
Also, https://check.torproject.org reports that that the browser is
using Tor, and doesn't complain that it's not Tor Browser. All that's
left, I think, is to configure ControlPort 192.168.2.1:9051 and make
Torbutton happy.

>>> believe that Gitian is workable in Raspbian wheezy. But if Gitian is the
>>> way to go, I can try it in Ubuntu 14.10 / Linaro 15.01
>>> <http://www.raspberrypi.org/forums/viewtopic.php?f=56&t=98997>.
> 
>> I'd be very much interested in looking at the results/dead-ends/issues
>> when using the deterministic builds approach. Might be good to document
>> your findings in #12631 which is the ticket for the ARM port of Tor Browser.
> 
> Thank you. I will do that.

I'll also look at the deterministic builds approach using Raspuntu.

>> Georg

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEcBAEBAgAGBQJU/1ILAAoJEGINZVEXwuQ+I18IAI1hQ+plB3fBdmp7T1wjbY5t
yFsvY3gJnRZm89cO27iSp147PwdUjrg32Oum3orrccoa3WQxsksVZDawQV86XYIw
WH9Lho6lETVx9Y/W73ouhakv4IdL8bhSIdxKLDeUbFS3+ScRQ14KtDgt/as29HgB
IkvcIRXp4iV8dzT+vGmZJlKSMALZDoD/lEtVzBW8r4ozsnBINVVDYHkGwi13Fcil
uC8FTJFY+gG7V7luGi0xeCxbdHJQ2xbJa4wzHyG0LgDmWdwrIRKjtXcARrEgcHNz
QDaxqCsmYBBTNbw/M3dLeoMYTAwas+QySjgin7LBTl4qr4sFZTBF1/jjy0mmyZg=
=jwO1
-----END PGP SIGNATURE-----
-- 
tor-talk mailing list - tor-talk@lists.torproject.org
To unsubscribe or change other settings go to
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk

