Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Torsocks allows you to use most applications in a safe way with Tor. It ensures
that DNS requests are handled safely and explicitly rejects any traffic other
than TCP from the application you're using.
Torsocks is an ELF shared library that is loaded before all others. The library
overrides every needed Internet communication libc function calls such as
connect(2) or gethostbyname(3).
This process is transparent to the user and if torsocks detects any
communication that can't go through the Tor network such as UDP traffic, for
instance, the connection is denied. If, for any reason, there is no way for
torsocks to provide the Tor anonymity guarantee to your application, torsocks
will force the application to quit and stop everything.
Requirements
-----------------
- autoconf
- automake
- libtool
- gcc
Installation
-----------------
$ ./configure
$ make
$ sudo make install
If you are compiling it from the git repository, run ./autogen.sh before the
configure script.
Using torsocks
--------------
Once you have installed torsocks, just launch it like so:
$ torsocks [application]
So, for example you can use ssh to a some.ssh.com by doing:
For more details, please see the torsocks.1, torsocks.8 and torsocks.conf.5 man
pages. Also, you can use -h, --help for all the possible options of the
torsocks script.
A configuration file named *torsocks.conf* is also provided for the user to
control some parameters.
More informations
--------------
torsocks is distributed under the GNU General Public License version 2.
Mailing list for help is <tor-talk@lists.torproject.org> and for development
use <tor-dev@lists.torproject.org>. You can find the project also on IRC server
irc.oftc.net (OFTC) in #tor and #tor-dev.
I just downloaded the source code from the place you got it and the file "INSTALL" in the root directory contains a great deal more information on the installation procedure.
It suggests that make uninstall might do the trick (run this from the source code directory you created to build the application).
It really didn´t occur to me to look elswhere than the readme-file.
Anyway, I un-installed torsocks with make uninstall running the command from the respective directory.
It seems to have worked as the command torsocks isn´t available any more.
Excellent. Right, I've figured out the Recommends issue. It turns out that 99synaptic contains an option to turn Install-Recommends on, and as 01norecommend comes before it alphanumerically, 99synaptic wins the day.
Housekeeping on the move - I like it. Although it will have no effect on the situation, given 99synaptic, you're right to clean up and delete it. You can do this with:
I'm off out for a while, so I recommend that you now install torsocks from the repo and see if it works any better than the manually installed one did.
Note that although you have now switched off Install-Recommends globally, if when installing a package and seeing the information that apt provides before it actually installs it, you decide that you want to auto install the recommended packages for that package, you can use the --install-recommends option in apt-get.
Tnx so much!
And now apt-get -s install torsocks gives me
Code:
apt-get -s install torsocks
HINWEIS: Dies ist nur eine Simulation!
apt-get benötigt root-Privilegien für die reale Ausführung.
Behalten Sie ebenfalls in Hinterkopf, dass die Sperren deaktiviert
sind, verlassen Sie sich also bezüglich des reellen aktuellen
Status der Sperre nicht darauf!
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
linux-headers-4.4.0-124 linux-headers-4.4.0-124-generic
linux-image-4.4.0-124-generic linux-image-extra-4.4.0-124-generic open-vm-tools-dkms
Verwenden Sie »apt autoremove«, um sie zu entfernen.
Empfohlene Pakete:
tor
Die folgenden NEUEN Pakete werden installiert:
torsocks
0 aktualisiert, 1 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Inst torsocks (2.1.0-2 Ubuntu:16.04/xenial [amd64])
Conf torsocks (2.1.0-2 Ubuntu:16.04/xenial [amd64])
Now I try to install torsocks via apt.
As soon as I can say more about it I´ll post.
But alas: torsocks is not working as expected. torsocks rhythmbox for example starts rhythmbox. But again: no internet-connection can be established.
Code:
(rhythmbox:13621): Rhythmbox-WARNING **: Unable to grab media player keys: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SettingsDaemon was not provided by any .service files
[Jun 12 16:48:05] PERROR torsocks[13621]: socks5 libc connect: Verbindungsaufbau abgelehnt (in socks5_connect() at socks5.c:185)
----- connection refused -----
The problem with firefox also remains the same (see post #1).
What does work is torsocks --shell ("Create a new shell with LD_PRELOAD including torsocks(8).")
But I can´t see any good use in that.
Seems nothing more can be done about it. It´s a real shame - after all the work that went into making it run.
Nevertheless:
Thank you so much for yor help and all the effort of yours, hydrurga!
So that I can understand, you say that you have tor-browser-bundle on a stick. Are you planning on putting torsocks on the stick as well, or is it for your main machine? If the latter, why don't you want to install Tor on your main machine? (it shouldn't affect the copy of tor on your stick).
P.S. Don't get out of your wits, or give up. This is a good learning experience (for us both, since I'm not used to using Tor on Linux).
I want to Tor in terminal. This is what I used to do and it was working without any issue:
running Tor Browser
running torify or torsocks before the command in terminal
It seeems that he has Tor-Browser or Tor-Browser-Bundle (or whatever) locally installed on his system.
Otherwise torify wouldn´t work as this seems to be an integral part of Tor.
So there´s the difference.
you say that you have tor-browser-bundle on a stick. Are you planning on putting torsocks on the stick as well, or is it for your main machine?
Well, I have made it my policy to install as few programms as possible on my local machine (the traditional way). So any "portable" programmes are welcome.
Plus ubutuusers.de states
Quote:
Das Tor-Browser-Bundle {en} (TBB) ist die Variante, die von den Tor-Entwicklern empfohlen wird (Gründe . Das Tor-Browser-Bundle ist ein in sich stimmiges, geschlossenes Programmpaket mit den Elementen
.
That basically means that Tor-Browser-Bundle (Webdownload) is recommended by the Tor-developers themselves.
For reasons see https://www.torproject.org/projects/torbrowser/design/.
So I thought why bother to install it locally?
In fact I don´t have tor-browser on a stick but on my system:
I start it like this:
(Yeah, I sandbox almost everything....)
Therefore I didn´t intend to install Tor/Tor-browser locally.
The thing is don´t see a way to get torsocks to work alongside my "portable installation".
Reason: no tor.service running.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.