unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Gottfried <gottfried@posteo.de>
To: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Cc: help-guix@gnu.org
Subject: Re: tor
Date: Mon,  7 Nov 2022 19:24:14 +0000	[thread overview]
Message-ID: <1f999794-32e4-718a-2e6b-1395e1d116aa@posteo.de> (raw)
In-Reply-To: <20221105012942.2be20962@primary_laptop>


[-- Attachment #1.1.1: Type: text/plain, Size: 9484 bytes --]

Hi Denis,

thanks for your work.

Will this be also at some stage a Guix package or everybody has to 
install it as a script?
-------------------------------------------------------------------
I did only 2 scripts in my life.
So I need help to do this one.

I did:

1. made a:
"tor-browser.sh"
through:
"touch tor-browser.sh"

2. I opened it with:
"nano tor-browser.sh"

3. I made the first line:
"#!/bin/bash"

4. to make it executable:
"chmod +x tor-browser.sh


5. I put it into:
~/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/Browser/
(this is what I understood)

6.
bash can't find it, after making it:
where is my mistake?

7. after doing

guix shell \
	--share=/srv/data/Downloads/ \
	--expose=/run/user/$(id -u)/ \
	--expose=/tmp/.X11-unix \
	--expose=/tmp/.X1-lock \
	--container \
	--emulate-fhs \
	--network \
	bash coreutils dbus-glib file grep gcc:lib gtk+@3 libxt sed -- \
		bash -l -c "export DISPLAY=${DISPLAY}; ./start-tor-browser"

it downloaded 94 MB.
------------------------------------------------------------------------
gfp@Tuxedo ~$ guix shell \
         --share=/srv/data/Downloads/ \
         --expose=/run/user/$(id -u)/ \
         --expose=/tmp/.X11-unix \
         --expose=/tmp/.X1-lock \
         --container \
         --emulate-fhs \
         --network \
         bash coreutils dbus-glib file grep gcc:lib gtk+@3 libxt sed -- \
                 bash -l -c "export DISPLAY=${DISPLAY}; ./start-tor-browser"
substitute: Liste der Substitute von „https://ci.guix.gnu.org“ wird 
aktualisiert … 100.0%
substitute: Liste der Substitute von „https://bordeaux.guix.gnu.org“ 
wird aktualisiert …  substitute: Liste der Substitute von 
„https://bordeaux.guix.gnu.org“ wird aktualisiert …  substitute: Liste 
der Substitute von „https://bordeaux.guix.gnu.org“ wird aktualisiert … 
substitute: Liste der Substitute von „https://bordeaux.guix.gnu.org“ 
wird aktualisiert …  substitute: Liste der Substitute von 
„https://bordeaux.guix.gnu.org“ wird aktualisiert …  substitute: Liste 
der Substitute von „https://bordeaux.guix.gnu.org“ wird aktualisiert … 
substitute: Liste der Substitute von „https://bordeaux.guix.gnu.org“ 
wird aktualisiert …  substitute: Liste der Substitute von 
„https://bordeaux.guix.gnu.org“ wird aktualisiert …  substitute: Liste 
der Substitute von „https://bordeaux.guix.gnu.org“ wird aktualisiert … 
substitute: Liste der Substitute von „https://bordeaux.guix.gnu.org“ 
wird aktualisiert …  substitute: Liste der Substitute von 
„https://bordeaux.guix.gnu.org“ wird aktualisiert …  substitute: Liste 
der Substitute von „https://bordeaux.guix.gnu.org“ wird aktualisiert … 
substitute: Liste der Substitute von „https://bordeaux.guix.gnu.org“ 
wird aktualisiert …  substitute: Liste der Substitute von 
„https://bordeaux.guix.gnu.org“ wird aktualisiert …  substitute: Liste 
der Substitute von „https://bordeaux.guix.gnu.org“ wird aktualisiert … 
substitute: Liste der Substitute von „https://bordeaux.guix.gnu.org“ 
wird aktualisiert …  substitute: Liste der Substitute von 
„https://bordeaux.guix.gnu.org“ wird aktualisiert … 100.0%
85,6 MB werden heruntergeladen
  gtk%2B-3.24.30-doc  3.0MiB                     809KiB/s 00:04 
[##################] 100.0%
  glibc-for-fhs-2.33-debug  19.8MiB              1.2MiB/s 00:16 
[##################] 100.0%
  librsvg-2.50.7  2.6MiB                         1.0MiB/s 00:03 
[##################] 100.0%
  librsvg-2.50.7-doc  47KiB                      564KiB/s 00:00 
[##################] 100.0%
  librsvg-2.50.7-debug  15.9MiB                  1.5MiB/s 00:10 
[##################] 100.0%
  libxt-1.2.1-doc  320KiB                        655KiB/s 00:00 
[##################] 100.0%
  mozjs-91.13.0  14.5MiB                        1008KiB/s 00:15 
[##################] 100.0%
  polkit-121  185KiB                             771KiB/s 00:00 
[##################] 100.0%
  colord-minimal-1.4.5  712KiB                   708KiB/s 00:01 
[##################] 100.0%
  gtk%2B-3.24.30  7.8MiB                         885KiB/s 00:09 
[##################] 100.0%
  gtk%2B-3.24.30-bin  783KiB                     956KiB/s 00:01 
[##################] 100.0%
  gtk%2B-3.24.30-debug  11.3MiB                  1.5MiB/s 00:08 
[##################] 100.0%
substitute: Liste der Substitute von „https://ci.guix.gnu.org“ wird 
aktualisiert … 100.0%
substitute: Liste der Substitute von „https://bordeaux.guix.gnu.org“ 
wird aktualisiert …  substitute: Liste der Substitute von 
„https://bordeaux.guix.gnu.org“ wird aktualisiert … 100.0%
Folgende Ableitung wird erstellt:
   /gnu/store/vg7dkn3j5rmf9x7a4fg7an2ps90phv4i-profile.drv

8,3 MB werden heruntergeladen
  bash-5.1.8-doc  301KiB                         915KiB/s 00:00 
[##################] 100.0%
  bash-5.1.8-include  70KiB                      459KiB/s 00:00 
[##################] 100.0%
  file-5.41  349KiB                              645KiB/s 00:01 
[##################] 100.0%
  gcc-12.2.0-lib  5.6MiB                         961KiB/s 00:06 
[##################] 100.0%
  linux-libre-headers-5.10.35  1.1MiB            728KiB/s 00:02 
[##################] 100.0%
7 Veredelungen für cups-filters-1.28.9 werden angewandt …
4 Veredelungen für harfbuzz-2.8.2 werden angewandt …
3 Veredelungen für cups-2.3.3op2 werden angewandt …
8 Veredelungen für librsvg-2.50.7 werden angewandt …
8 Veredelungen für librsvg-2.50.7 werden angewandt …
2 Veredelungen für libxt-1.2.1 werden angewandt …
4 Veredelungen für polkit-121 werden angewandt …
2 Veredelungen für python-3.9.9 werden angewandt …
8 Veredelungen für colord-minimal-1.4.5 werden angewandt …
2 Veredelungen für glib-2.70.2 werden angewandt …
19 Veredelungen für gtk+-3.24.30 werden angewandt …
3 Veredelungen für mesa-21.3.8 werden angewandt …
Zertifikatsbündel der Zertifikatsautoritäten wird erstellt …
Liste der Emacs-Unterverzeichnisse wird erzeugt …
Schriftartenverzeichnis wird erstellt …
Zwischenspeicher für GdkPixbuf-Lader wird erzeugt …
Zwischenspeicher für GLib-Schemata wird erzeugt …
Zwischenspeicher für GTK-Symbolthemen wird erzeugt …
Dateien im Zwischenspeicher für GTK-Eingabemethoden werden erstellt …
Verzeichnis von Info-Handbüchern wird erstellt …
Zwischenspeicher für XDG-Desktop-Dateien wird erzeugt …
XDG-Mime-Datenbank wird erstellt …
Profil mit 10 Paketen wird erstellt …
guix shell: Fehler: statfs: /srv/data/Downloads/: Datei oder Verzeichnis 
nicht gefunden

guix shell: mistake: statfs: /srv/data/Downloads/: file or directory not 
found.
----------------------------------------------------------------------
Where are my mistakes?
thanks

Kind regards

Gottfried



Am 05.11.22 um 01:29 schrieb Denis 'GNUtoo' Carikli:
> Hi again,
> 
> I had some data loss so I wasn't able to reply to this thread before.
> 
> I managed to make the tor-browser work in Guix proper, and I've
> attached the script I used for that. It's hardcoded for i686 though so
> it needs to be modified for x86_64.
> 
> Even if that works, there is a problematic issue: the tor-browser has a
> potential freedom issue: on one hand it very strongly advises people
> not to install any addons, on the other hand in "tools->Addons and
> themes->Plugins", there is the following message:
>> Get extensions and themes on addons.mozilla.org
> 
> And the issue is that that repository also contains nonfree addons.
> 
> If that address can get removed or changed, we could have something
> where we could be sure that it is FSDG compliant, so we could probably
> ship scripts like guix-tor-browser-installer for instance.
> 
> I've tried to find where that string is set in the binaries in the hope
> of being able to make a dead simple sed script that would fix the
> potential FSDG issue at least at installation time, but it didn't
> find much:
>> $ tar xf tor-browser-linux64-11.5.4_en-US.tar.xz
>> $ grep addons.mozilla.org -r tor-browser_en-US
>> tor-browser_en-US/Browser/TorBrowser/Docs/ChangeLog.txt:   * Bug
>> 10464: Remove addons.mozilla.org from NoScript whitelist grep:
>> tor-browser_en-US/Browser/libxul.so: binary file matches
> 
>> $ strings tor-browser_en-US/Browser/libxul.so | \
>> grep addons.mozilla.org
>> addons.mozilla.org
>> $http://addons.mozilla.org/ca/crl.pem0
>> signingca1.addons.mozilla.org1!0
>> $http://addons.mozilla.org/ca/crl.pem0N
> 
> The issue is that this domain is also used for addons updates, so we
> can't simply remove it blindly. We need to only remove that string in
> "tools->Addons and themes->Plugins".
> 
> The advantage of patching binaries is that we don't need to rebuild it,
> so we really have the tiniest amount of change possible to make it FSDG
> compliant (and we can hope that it doesn't change the tor-browser
> fingerprint).
> 
> As far as I understand it should also also be OK to use binaries like
> that as long as we're also able to rebuild it in an FSDG distribution
> somehow.
> 
> Though here the path forward is probably to dig into upstream bug
> reports and see what upstream thinks about making the tor-browser FSDG
> compliant and/or removing the information of where to find addons.
> 
> Denis.




[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

  reply	other threads:[~2022-11-07 19:24 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-28 10:52 tor Gottfried
2022-08-28 12:09 ` tor Csepp
2022-08-29 14:19   ` tor Gottfried
2022-08-30 10:54     ` tor Csepp
2022-08-30 18:32       ` tor Gottfried
2022-08-31 16:23         ` tor Denis 'GNUtoo' Carikli
2022-09-01 13:59           ` tor Denis 'GNUtoo' Carikli
2022-09-02 18:31             ` tor Gottfried
2022-09-21  9:52               ` tor Gottfried
2022-09-22 11:52                 ` tor Chris Keschnat via
2022-09-01 14:27         ` tor Denis 'GNUtoo' Carikli
2022-09-01 17:35           ` tor Gottfried
2022-09-01 23:35             ` tor Denis 'GNUtoo' Carikli
2022-11-05  0:29           ` tor Denis 'GNUtoo' Carikli
2022-11-07 19:24             ` Gottfried [this message]
2022-11-07 20:14               ` tor Wojtek Kosior via
2022-11-07 23:19                 ` tor Denis 'GNUtoo' Carikli
  -- strict thread matches above, loose matches on Subject: below --
2022-09-23 16:36 tor Gottfried
2020-09-17 12:32 Tor Rasa Gulla via
2020-09-17 13:15 ` Tor Julien Lepiller
2020-09-17 13:18   ` Tor Rasa Gulla

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1f999794-32e4-718a-2e6b-1395e1d116aa@posteo.de \
    --to=gottfried@posteo.de \
    --cc=GNUtoo@cyberdimension.org \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).