LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-13-2018, 05:01 AM   #31
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925

Have you tried running your portable version of Tor and using port 9150 for torsocks to access that running program's instance?

https://tor.stackexchange.com/questi...vs-curl-socks5

It may well not work, but it's worth a go.
 
Old 06-13-2018, 05:31 AM   #32
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

Original Poster
Rep: Reputation: Disabled
Hi,

good idea.
Yet despite reading through the repective page Iīm not quite sure how to do it.

But: partial success as far as the theory is concerned:

Code:
curl --socks5-hostname 127.0.0.1:9150 --silent https://check.torproject.org/  | head -25
without running my portable tor-browser returns nothing.
The same command with my portable tor-browser running:

Code:
[...]  Congratulations. This browser is configured to use Tor. [...]
So your theory is working! Great.
But Iīm not sure how to get torsocks working this way.....
 
Old 06-13-2018, 07:04 AM   #33
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

Original Poster
Rep: Reputation: Disabled
*****UPDATE*****

partial success!

What I did:

1.) editing my /etc/tor/torsocks.conf and changing TorPort to 9150 in order to syncronize it to Tor-Browser setting.

2.) starting my portable tor-browser with
Code:
firejail --private=/home/rosika/Schreibtisch/Dokumente/work/tor-browser_de ./start-tor-browser.desktop
3.)
Code:
torsocks curl --silent https://check.torproject.org/  | head -25
---->
Quote:
Congratulations. This browser is configured to use Tor.
That one worked!
Even
Code:
firejail torsocks curl --silent https://check.torproject.org/  | head -25
worked with the same results.
Code:
firejail torsocks rhythmbox
also huge success! I could establish internet-connection. Radio-stations worked.

Fine, but - alas - not everything went well.

Neither audacious nor vlc. The GUI-interfaces opened alright, but when trying to choose a file:
Code:
[Jun 13 13:46:57] WARNING torsocks[5]: [syscall] Unsupported syscall number 204. Denying the call (in tsocks_syscall() at syscall.c:465)
That message was repeated in an endless loop. I had to kill the respective processes.

Plus: torsocks firefox wouldnīt produce a GUI at all.

Yet at least your theory works. Great Tnx!
 
Old 06-13-2018, 07:16 AM   #34
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

Original Poster
Rep: Reputation: Disabled
*****UPDATE_2*****

The following commands work as well:

Code:
firejail --noprofile torsocks qupzilla
and
Code:
firejail --noprofile torsocks midori
Code:
Congratulations. This browser is configured to use Tor.

Your IP address appears to be: [xxxxxxxxx]

However, it does not appear to be Tor Browser.
Click here to go to the download page
 
Old 06-13-2018, 09:02 AM   #35
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
That's great to hear, Rosika, although it's not yet working in all the cases where you want it to.

Let me return to a previous topic if I may, i.e. Install-Recommends (*I'm* doing some housekeeping now ). It turns out that there is a good reason that 99synaptic exists - it's the configuration that Synaptic Package Manager uses to change's APT's behaviour and, lo and behold, Synaptic allows you to decide whether or not to treat recommended packages as dependencies (Settings->Preferences->Consider recommended packages as dependencies). I don't use Synaptic which is why I didn't know about this.

So, when you choose that option, Synaptic inserts APT::Install-Recommends "1"; into /etc/apt/apt.conf.d/99synaptic. At some point, you must have chosen this setting.

The upshot is that now you have 99znorecommend in place, this will always override the APT::Install-Recommends setting in 99synaptic (not the other settings as priority is given on a setting by setting basis). So, checking or unchecking this option in Synaptic will have no effect.

The solution is therefore to remove /etc/apt/apt.conf.d/99znorecommend as root and then control the Install-Recommends setting through Synaptic.

Does that make sense?
 
Old 06-13-2018, 09:49 AM   #36
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

Original Poster
Rep: Reputation: Disabled
Hi hydrurga,

thanks you so much for letting me be part of your insights. Thatīs very thoughtful of you.
As Iīm very keen on learning as much as possible about how Linux works Iīm very interested in this.

And yes, that makes perfect sense.

The thing is: in most cases I install packages via terminal-commands, too. Rather seldom do I use sysnaptic either.

Well, I removed the respective file with
Code:
sudo rm /etc/apt/apt.conf.d/99znorecommend
and
Quote:
ls -la /etc/apt/apt.conf.d
is back to the state of post #10.
Fine, now I understand how I can synaptic get to work the way I want. Tnx a lot.

---------------------------------------------------------------------------------------------

As far as torsocks is concerned: I did a bit of research again and stumbled upon https://stackoverflow.com/questions/...de-application .
The user had a similar problem there and could it solve:
Quote:
I got it. I checked the torsocks debug message, I see the following.
[listen] Non localhost inbound connection are not allowed. (in tsocks_listen() at listen.c:64)

And I changed my code to listen on localhost only, problem resolved.
Well, I wonder if thatīs the case with me, too.
Because when trying to open a file with audacious, vlc or rhythmbox I get

Code:
[Jun 13 13:46:57] WARNING torsocks[5]: [syscall] Unsupported syscall number 204. Denying the call (in tsocks_syscall() at syscall.c:465)
To be clear:
Rhythmbox now plays radio-stations. I.e. internet-connection is working.
But trying to play a locally installed musc-file results in that never-ending loop of error-messages.
Therefore I was thinking along the lines of localhost inbound connection

Greetings
Rosika
 
Old 06-13-2018, 10:15 AM   #37
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
See post #59 here:

https://bugs.debian.org/cgi-bin/bugr...cgi?bug=805741

Which version of torsocks are you running?
 
Old 06-13-2018, 10:32 AM   #38
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

Original Poster
Rep: Reputation: Disabled
Hi,
tnx for the link. I have to read it through first.

My torsoscks-version is: Torsocks 2.1.0
 
Old 06-13-2018, 11:00 AM   #39
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by Rosika View Post
Hi,
tnx for the link. I have to read it through first.

My torsoscks-version is: Torsocks 2.1.0
Ok. The thread indicates, I think, that a problem very similar to yours was resolved in v. 2.2.0.

Which, given that the latest version in Xenial's repos is 2.1.0, might lead you back to manually building the latest version of torsocks.
 
Old 06-13-2018, 11:13 AM   #40
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

Original Poster
Rep: Reputation: Disabled
Uff, yeah, well, I donīt know.....

Iīd rather not do that.
Remember what Turbocapitalist said in the beginning:
Quote:
If you use a bare 'make all && sudo make install' approach, you will eventually mess up your system enough that a fresh re-installatino of the whole OS is needed.
(post #4).

Iīm glad I could uninstall that one and replace it with the apt-installation.

Better safe than sorry.

Well, at least some things work.
So Iīd say letīs give up for now. I learned a lot and we achieved a lot, it has to be said.

I cannot thank you enough. Thinking of all the time and effort you spent helping me.

So thanks again.

Greetings
Rosika
 
Old 06-13-2018, 11:23 AM   #41
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by Rosika View Post
Uff, yeah, well, I donīt know.....

Iīd rather not do that.
Remember what Turbocapitalist said in the beginning:
(post #4).

Iīm glad I could uninstall that one and replace it with the apt-installation.

Better safe than sorry.

Well, at least some things work.
So Iīd say letīs give up for now. I learned a lot and we achieved a lot, it has to be said.

I cannot thank you enough. Thinking of all the time and effort you spent helping me.

So thanks again.

Greetings
Rosika

Ok, your decision. I think you're wrong about the manual installation though. Some people think that you should restrict yourself to software in the repos or in packages - I'm not one of them. And, if you're going to be one of them, I would highly recommend that you upgrade to Ubuntu 18.04 so that you can avail yourself of the more up-to-date software it provides, including one torsocks 2.2.0.

All the best.
 
Old 06-13-2018, 11:59 AM   #42
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

Original Poster
Rep: Reputation: Disabled
Hi again,

Quote:
I think you're wrong about the manual installation though.
I have to add: Prsonally I really donīt care much about how a package is installed. Be it manually, via apt, or if itīs a snap or an appimage.

Yet Turbocapitalistīs warning really frightened me.
Why on earth would I
Quote:
mess up your system enough that a fresh re-installatino of the whole OS is needed.
I mean the instruction
Code:
$ ./configure
$ make
$ sudo make install

If you are compiling it from the git repository, run ./autogen.sh before the
configure script.
was given in the readme-file. Running that sequence shouldnīt be dangerous.

That got me thinking.
 
Old 06-13-2018, 12:26 PM   #43
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,309
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Quote:
Originally Posted by Rosika View Post
If you are compiling it from the git repository, run ./autogen.sh before the
configure script.[/CODE]
was given in the readme-file. Running that sequence shouldnīt be dangerous.

That got me thinking.
I'd second the recommendation to try 18.04 if you want a newer version of torsocks because there is nothing in the backports repository for 16.04.

Again, if you do not use the repository's version, at least roll your own package so that the files involved can be tracked and removed or updated when needed. By not updating via the repository you are also committing to following the security announcements daily and re-compiling when alerts are published. It's more time effective, IMHO, to use the repositories. Usually the packagers get a heads up and the update is ready to go by the time the information embargo is lifted and the general public (that's us) finally get informed that it's time to update.
 
1 members found this post helpful.
Old 06-13-2018, 12:58 PM   #44
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by Rosika View Post
Hi again,

I have to add: Prsonally I really donīt care much about how a package is installed. Be it manually, via apt, or if itīs a snap or an appimage.

Yet Turbocapitalistīs warning really frightened me.
Why on earth would I

I mean the instruction
Code:
$ ./configure
$ make
$ sudo make install

If you are compiling it from the git repository, run ./autogen.sh before the
configure script.
was given in the readme-file. Running that sequence shouldnīt be dangerous.

That got me thinking.
Without wanting to get into a argument with TC, you shouldn't be frightened. All you need to do is exercise some common sense, as with everything in life, and it isn't dangerous. Especially if you make a system image/backup/snapshot before you do a significant amount of fiddling about, which I assume you're doing already (if not, do it). In the rare case that something goes wrong, you can just roll back to where you were beforehand.

My priority list for new software is as follows:

. Install from the repos.
. Install from a PPA.
. Install from a deb package.
. Run a portable program.
. Use an installer script.
. Build and install.

There is a place for all of these, and in fact if you run an LTS and you want to keep abreast of the game then you can't depend purely on software from the repos.
 
1 members found this post helpful.
Old 06-14-2018, 06:52 AM   #45
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

Original Poster
Rep: Reputation: Disabled
Hi again,

@ Turbocapitalist:

Thanks for your recommendations. Iīll look into the whole matter.

@ hydrurga:

Tnx.
Yes, I perform a backup on a regular basis. Once a month (mostly ) I make a system-backup using clonezilla.
Your priority list looks very reasonable.
As already said, Iīll look into the various ways of updating programmes.

Thank you all for yor help.

Greetings
Rosika
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] I using the torsocks with curl. P.G.Krish Linux - Security 4 07-11-2016 12:16 AM
Hibernate not working properly. hack3rcon Linux - Software 5 02-25-2016 03:35 AM
Using Torsocks to hide the i.p. address question(s) Michael Piziak Linux - Software 8 02-14-2016 01:20 PM
dhcpd not working properly bwarsh Linux - Networking 1 08-15-2005 04:24 PM
X not working properly. MylesCLin Linux - Software 1 09-15-2004 10:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration