[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: package-install and Tor
From: |
Aleksandr Vityazev |
Subject: |
Re: package-install and Tor |
Date: |
Wed, 27 Apr 2022 15:20:54 +0000 |
On 2022-04-27, 00:07 -0400, Richard Stallman <rms@gnu.org> wrote:
> [[[ To any NSA and FBI agents reading my email: please consider ]]]
> [[[ whether defending the US Constitution against all enemies, ]]]
> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]
>
> > I believe you can use url-proxy-services and direct HTTP requests to use
> > your Tor daemon.
>
> Could you show me how to do that? I don't know how.
> The variable's doc string presumes knowledge I don't have.
>
> Perhaps we should add concrete documentation of how to use that variable to
> do precisely this.
Hi,
There 2 common solutions:
1. Using torsocks [1] run Emacs from terminal:
#+begin_src shell
torsocks emacs;
#+end_src
2. Using the built-in socks.el library with these settings:
#+begin_src elisp
(setq socks-server '("tor" "127.0.0.1" 9050 5))
(setq url-gateway-method 'socks)
(setq socks-username "user")
(setq socks-password "")
#+end_src
But this library has issue [2].
To use tor via http proxy, you must configure it accordingly, because
socks proxy is used by default.
[1] https://gitweb.torproject.org/torsocks.git
[2] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=%35%33%39%34%31
--
Best regards,
Aleksandr Vityazev