Tor browser doesn' t start [SOLVED]

Kernels & Hardware, configuring network, installing services

Tor browser doesn' t start [SOLVED]

Postby Scorpion » 2020-03-22 14:43

I installed tor using "apt install tor".
I am using debian 10.
Also tor does not appear in the gnome's application menu, I must launch it from the cli:
Code: Select all
tor
Mar 21 22:10:24.019 [notice] Tor 0.3.5.10 running on Linux with Libevent 2.1.8-stable, OpenSSL 1.1.1d, Zlib 1.2.11, Liblzma 5.2.4, and Libzstd 1.3.8.
Mar 21 22:10:24.019 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Mar 21 22:10:24.019 [notice] Read configuration file "/etc/tor/torrc".
Mar 21 22:10:24.024 [notice] Opening Socks listener on 127.0.0.1:9050
Mar 21 22:10:24.025 [warn] Could not bind to 127.0.0.1:9050: Address already in use. Is Tor already running?
Mar 21 22:10:24.025 [warn] Failed to parse/validate config: Failed to bind one of the listener ports.
Mar 21 22:10:24.025 [err] Reading config failed--see warnings above.
Last edited by Scorpion on 2020-03-23 14:17, edited 1 time in total.
User avatar
Scorpion
 
Posts: 153
Joined: 2018-10-17 11:38

Re: Tor browser doesn' t start

Postby Head_on_a_Stick » 2020-03-22 19:03

There is no torbrowser-launcher package for buster, use the versions from buster-backports instead.

And tor is autostarted so you don't need to launch it manually or select it from a menu.
User avatar
Head_on_a_Stick
 
Posts: 11454
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Tor browser doesn' t start

Postby Scorpion » 2020-03-23 14:17

Indeed I did not found the torbrowser-launcher package, that I tried to install.
I installed it from backports as you suggested:
Code: Select all
apt install -t buster-backports  torbrowser-launcher

You need it to install tor.

And now it is fine, thanks.
User avatar
Scorpion
 
Posts: 153
Joined: 2018-10-17 11:38

Re: Tor browser doesn' t start [SOLVED]

Postby Scorpion » 2020-03-23 14:47

Where are saved the tor files? /etc?
I would like to see the script that launches tor.

Is the name start-tor-browser?

To allow to launch it as root I used to comment 3 lines, those lines check if the user is root and quit if it is so.
User avatar
Scorpion
 
Posts: 153
Joined: 2018-10-17 11:38

Re: Tor browser doesn' t start [SOLVED]

Postby reinob » 2020-03-23 16:31

Scorpion wrote:Where are saved the tor files? /etc?
I would like to see the script that launches tor.

Is the name start-tor-browser?

To allow to launch it as root I used to comment 3 lines, those lines check if the user is root and quit if it is so.


You don't want, and you probably can't, and in any case you should never, run the tor browser, or for that matter and graphical browser, as root.

Care to explain what you're trying to do?
reinob
 
Posts: 771
Joined: 2014-06-30 11:42

Re: Tor browser doesn' t start [SOLVED]

Postby Scorpion » 2020-03-23 18:17

To allow root to launch tor, graphically.

Message error:
The Tor Browser Bundle should not be run as root. Exiting.


I simply need to remove (comment or delete) 4 lines of the tor script.
I did it before on debian 9.
Code: Select all
if [ "`id -u`" -eq 0 ]; then
    complain "The Tor Browser Bundle should not be run as root.  Exiting."
    exit 1
fi
Last edited by Scorpion on 2020-03-28 14:40, edited 1 time in total.
User avatar
Scorpion
 
Posts: 153
Joined: 2018-10-17 11:38

Re: Tor browser doesn' t start [SOLVED]

Postby Head_on_a_Stick » 2020-03-23 18:19

reinob wrote:You don't want, and you probably can't, and in any case you should never, run the tor browser, or for that matter and graphical browser, as root.

^ This.

@OP: what the hell are you playing at? That's a ****** stupid idea.
User avatar
Head_on_a_Stick
 
Posts: 11454
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Tor browser doesn' t start [SOLVED]

Postby Scorpion » 2020-03-28 14:40

With:
Code: Select all
dpkg -L torbrowser-launcher

I found the files installed by the package, and after some researches I found the file to edit:
Code: Select all
gedit ~/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/Browser/TorBrowser

If you open the folder with the GUI the name is "start-tor-browser".

I commented the 4 lines and now I can launch tor as root.
Code: Select all
    #if [ "`id -u`" -eq 0 ]; then
    #   complain "The Tor Browser Bundle should not be run as root.  Exiting."
    #   exit 1
    #fi
User avatar
Scorpion
 
Posts: 153
Joined: 2018-10-17 11:38


Return to System configuration

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable