LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-22-2012, 01:44 AM   #1
unclejed613
Member
 
Registered: Mar 2009
Posts: 352

Rep: Reputation: 32
having trouble "merging" TOR instances in wheezy-armhf


i'm running "raspbian" (debian wheezy arm) as a TOR node. the problem is that Vidalia runs an instance of TOR for things like web browsing, etc, and TorChat runs a "portable" instance of TOR, and while these two usually behave fine, there are times when one or the other instance of TOR for some unknown reason hammers the CPU. this doesn't seem to happen when they are not both running at the same time. does anybody have enough knowledge about TOR, and specifically TorChat (the stand alone version, not the pidgin plugin) to explain to me how to get TorChat to use the already running instance started by Vidalia?
 
Old 12-22-2012, 08:06 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by unclejed613 View Post
the problem is that Vidalia runs an instance of TOR for things like web browsing, etc, and TorChat runs a "portable" instance of TOR, and
I'd say that is a problem ;-p Unless Vidalia provides you with something crucial there is absolutely no need to have it run. The application combined with its dependencies has an enormous footprint compared to the TOR binary and TOR as a service runs perfectly on it's own.


Quote:
Originally Posted by unclejed613 View Post
while these two usually behave fine, there are times when one or the other instance of TOR for some unknown reason hammers the CPU. this doesn't seem to happen when they are not both running at the same time.
What do the instances Vidalia and TOR log files say when that happens? (The torrc man page lists debug options for logging which could be helpful.) Also: can you see the processes state when this happens? And is strace available should it be necessary?


Quote:
Originally Posted by unclejed613 View Post
does anybody have enough knowledge about TOR, and specifically TorChat (the stand alone version, not the pidgin plugin) to explain to me how to get TorChat to use the already running instance started by Vidalia?
You can send all sorts of diagnostics info to TOR itself with tor-ctrl.sh like "GETINFO status/reachability-succeeded" and get plain text back to parse (that's essentially how Vidalia communicates with TOR under the hood) and trigger some action. You could for example trigger an iptables rule that redirects traffic from one local port to another. But when you're in the middle of a conversation or browsing session switching may cause all sorts of "interesting" side effects like traffic drops and ultimately I'd say it's not TOR that is responsible for switching but the application using it. Before you ponder that let's first see what troubleshooting CPU load brings, OK?
 
Old 12-22-2012, 03:03 PM   #3
unclejed613
Member
 
Registered: Mar 2009
Posts: 352

Original Poster
Rep: Reputation: 32
after reading your post i had the idea of trying to torify the browser while just running the torchat tor instance to see what happens. it may be i was looking at the problem backwards



edit: no, that didn't work. for some reason, torifying the web browser doesn't work with the tor instance that belongs to torchat.

Last edited by unclejed613; 12-22-2012 at 03:06 PM.
 
  


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
LXer: Deploy your own "cloud" with Debian "Wheezy" LXer Syndicated Linux News 0 04-25-2012 06:50 PM
A "guide" to set NoMachine NX (3.5.x) up on Debian Wheezy (and possibly others) pusrob Linux - Software 1 12-09-2011 11:49 AM
Help "merging" two mercurial (hg) "branches" sohmc Linux - Software 1 03-09-2011 12:58 AM
sed - use sed to replace multiple instances from "x" to "y" in a line mrodmac Linux - General 4 02-02-2010 11:37 AM
LXer: Merging "Open Source" and "Free Software" LXer Syndicated Linux News 2 08-08-2007 04:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:29 AM.

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